0
|
1 ## Makefile for the toplevel directory of the libssp library.
|
|
2 ##
|
|
3 ## Copyright (C) 2005
|
|
4 ## Free Software Foundation, Inc.
|
|
5 ##
|
|
6
|
|
7 AUTOMAKE_OPTIONS = 1.9.5 foreign
|
|
8 ACLOCAL_AMFLAGS = -I .. -I ../config
|
|
9 MAINT_CHARSET = latin1
|
|
10
|
|
11 # May be used by various substitution variables.
|
|
12 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
|
|
13
|
|
14 if LIBSSP_USE_SYMVER
|
|
15 version_arg = -Wl,--version-script=$(srcdir)/ssp.map
|
|
16 version_dep = $(srcdir)/ssp.map
|
|
17 else
|
|
18 version_arg =
|
|
19 version_dep =
|
|
20 endif
|
|
21
|
|
22 AM_CFLAGS = -Wall
|
|
23
|
|
24 toolexeclib_LTLIBRARIES = libssp.la libssp_nonshared.la
|
|
25
|
|
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
|
|
29
|
|
30 libssp_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
|
|
35 libssp_la_LIBADD =
|
|
36 libssp_la_DEPENDENCIES = $(version_dep) $(libssp_la_LIBADD)
|
|
37 libssp_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
|
|
38 $(version_arg) -no-undefined
|
|
39
|
|
40 libssp_nonshared_la_SOURCES = \
|
|
41 ssp-local.c
|
|
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
|
|
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.
|
|
54 AM_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
|
|
91 MAKEOVERRIDES=
|
|
92
|
|
93 # No install-html or install-pdf support in automake yet
|
|
94 .PHONY: install-html install-pdf
|
|
95 install-html:
|
|
96 install-pdf:
|
|
97
|
|
98 ## ################################################################
|
|
99
|