1 ## Makefile for the toplevel directory of the libssp library.
4 ## Free Software Foundation, Inc.
7 AUTOMAKE_OPTIONS = 1.9.5 foreign
8 ACLOCAL_AMFLAGS = -I .. -I ../config
11 # May be used by various substitution variables.
12 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
15 version_arg = -Wl,--version-script=$(srcdir)/ssp.map
16 version_dep = $(srcdir)/ssp.map
24 toolexeclib_LTLIBRARIES = libssp.la libssp_nonshared.la
26 target_noncanonical = @target_noncanonical@
27 libsubincludedir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include
28 nobase_libsubinclude_HEADERS = ssp/ssp.h ssp/string.h ssp/stdio.h ssp/unistd.h
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
36 libssp_la_DEPENDENCIES = $(version_dep) $(libssp_la_LIBADD)
37 libssp_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
40 libssp_nonshared_la_SOURCES = \
42 libssp_nonshared_la_CFLAGS = -prefer-pic
43 libssp_nonshared_la_LIBADD =
44 libssp_nonshared_la_DEPENDENCIES = $(libssp_nonshared_la_LIBADD)
45 libssp_nonshared_la_LDFLAGS = -static
49 # From libffi/Makefile.am
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.
55 "AR_FLAGS=$(AR_FLAGS)" \
56 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
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)" \
70 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
71 "PICFLAG=$(PICFLAG)" \
72 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
74 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
75 "exec_prefix=$(exec_prefix)" \
76 "infodir=$(infodir)" \
79 "includedir=$(includedir)" \
85 "LIBCFLAGS=$(LIBCFLAGS)" \
87 "PICFLAG=$(PICFLAG)" \
93 # No install-html or install-pdf support in automake yet
94 .PHONY: install-html install-pdf
98 ## ################################################################