OSDN Git Service

* Makefile.def (target_modules): Add libssp.
[pf3gnuchains/gcc-fork.git] / libssp / Makefile.am
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 nobase_include_HEADERS = ssp/ssp.h ssp/string.h ssp/stdio.h ssp/unistd.h
27
28 libssp_la_SOURCES = \
29         ssp.c gets-chk.c memcpy-chk.c memmove-chk.c mempcpy-chk.c \
30         memset-chk.c snprintf-chk.c sprintf-chk.c stpcpy-chk.c \
31         strcat-chk.c strcpy-chk.c strncat-chk.c strncpy-chk.c \
32         vsnprintf-chk.c vsprintf-chk.c
33 libssp_la_LIBADD = 
34 libssp_la_DEPENDENCIES = $(version_dep) $(libssp_la_LIBADD)
35 libssp_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
36                     $(version_arg)
37
38 libssp_nonshared_la_SOURCES = \
39         ssp-local.c
40 libssp_nonshared_la_CFLAGS = -prefer-pic
41 libssp_nonshared_la_LIBADD = 
42 libssp_nonshared_la_DEPENDENCIES = $(libssp_nonshared_la_LIBADD)
43 libssp_nonshared_la_LDFLAGS = -static
44
45
46 # XXX hack alert
47 # From libffi/Makefile.am
48
49 # Work around what appears to be a GNU make bug handling MAKEFLAGS
50 # values defined in terms of make variables, as is the case for CC and
51 # friends when we are called from the top level Makefile.
52 AM_MAKEFLAGS = \
53         "AR_FLAGS=$(AR_FLAGS)" \
54         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
55         "CFLAGS=$(CFLAGS)" \
56         "CXXFLAGS=$(CXXFLAGS)" \
57         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
58         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
59         "INSTALL=$(INSTALL)" \
60         "INSTALL_DATA=$(INSTALL_DATA)" \
61         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
62         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
63         "JC1FLAGS=$(JC1FLAGS)" \
64         "LDFLAGS=$(LDFLAGS)" \
65         "LIBCFLAGS=$(LIBCFLAGS)" \
66         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
67         "MAKE=$(MAKE)" \
68         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
69         "PICFLAG=$(PICFLAG)" \
70         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
71         "SHELL=$(SHELL)" \
72         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
73         "exec_prefix=$(exec_prefix)" \
74         "infodir=$(infodir)" \
75         "libdir=$(libdir)" \
76         "prefix=$(prefix)" \
77         "includedir=$(includedir)" \
78         "AR=$(AR)" \
79         "AS=$(AS)" \
80         "CC=$(CC)" \
81         "CXX=$(CXX)" \
82         "LD=$(LD)" \
83         "LIBCFLAGS=$(LIBCFLAGS)" \
84         "NM=$(NM)" \
85         "PICFLAG=$(PICFLAG)" \
86         "RANLIB=$(RANLIB)" \
87         "DESTDIR=$(DESTDIR)"
88
89 MAKEOVERRIDES=
90
91 ## ################################################################
92