1## Makefile for the toplevel directory of the libssp library. 2## 3## Copyright (C) 2005 4## Free Software Foundation, Inc. 5## 6 7AUTOMAKE_OPTIONS = 1.9.5 foreign 8ACLOCAL_AMFLAGS = -I .. -I ../config 9MAINT_CHARSET = latin1 10 11# May be used by various substitution variables. 12gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) 13 14if LIBSSP_USE_SYMVER 15version_arg = -Wl,--version-script=$(srcdir)/ssp.map 16version_dep = $(srcdir)/ssp.map 17else 18version_arg = 19version_dep = 20endif 21 22AM_CFLAGS = -Wall 23 24toolexeclib_LTLIBRARIES = libssp.la libssp_nonshared.la 25 26target_noncanonical = @target_noncanonical@ 27libsubincludedir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include 28nobase_libsubinclude_HEADERS = ssp/ssp.h ssp/string.h ssp/stdio.h ssp/unistd.h 29 30libssp_la_SOURCES = \ 31 ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \ 32 memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \ 33 strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \ 34 vsnprintf-chk.c vsprintf-chk.c 35libssp_la_LIBADD = 36libssp_la_DEPENDENCIES = $(version_dep) $(libssp_la_LIBADD) 37libssp_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \ 38 $(version_arg) 39 40libssp_nonshared_la_SOURCES = \ 41 ssp-local.c 42libssp_nonshared_la_CFLAGS = -prefer-pic 43libssp_nonshared_la_LIBADD = 44libssp_nonshared_la_DEPENDENCIES = $(libssp_nonshared_la_LIBADD) 45libssp_nonshared_la_LDFLAGS = -static 46 47 48# XXX hack alert 49# From libffi/Makefile.am 50 51# Work around what appears to be a GNU make bug handling MAKEFLAGS 52# values defined in terms of make variables, as is the case for CC and 53# friends when we are called from the top level Makefile. 54AM_MAKEFLAGS = \ 55 "AR_FLAGS=$(AR_FLAGS)" \ 56 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ 57 "CFLAGS=$(CFLAGS)" \ 58 "CXXFLAGS=$(CXXFLAGS)" \ 59 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ 60 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ 61 "INSTALL=$(INSTALL)" \ 62 "INSTALL_DATA=$(INSTALL_DATA)" \ 63 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ 64 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ 65 "JC1FLAGS=$(JC1FLAGS)" \ 66 "LDFLAGS=$(LDFLAGS)" \ 67 "LIBCFLAGS=$(LIBCFLAGS)" \ 68 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ 69 "MAKE=$(MAKE)" \ 70 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ 71 "PICFLAG=$(PICFLAG)" \ 72 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ 73 "SHELL=$(SHELL)" \ 74 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ 75 "exec_prefix=$(exec_prefix)" \ 76 "infodir=$(infodir)" \ 77 "libdir=$(libdir)" \ 78 "prefix=$(prefix)" \ 79 "includedir=$(includedir)" \ 80 "AR=$(AR)" \ 81 "AS=$(AS)" \ 82 "CC=$(CC)" \ 83 "CXX=$(CXX)" \ 84 "LD=$(LD)" \ 85 "LIBCFLAGS=$(LIBCFLAGS)" \ 86 "NM=$(NM)" \ 87 "PICFLAG=$(PICFLAG)" \ 88 "RANLIB=$(RANLIB)" \ 89 "DESTDIR=$(DESTDIR)" 90 91MAKEOVERRIDES= 92 93## ################################################################ 94 95