/[path-sandbox]/trunk/src/Makefile.am
Gentoo

Contents of /trunk/src/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 185 - (hide annotations) (download)
Wed Nov 30 23:21:55 2005 UTC (12 years, 8 months ago) by azarah
File size: 2074 byte(s)
Small syntax cleanup.
1 azarah 183 AUTOMAKE_OPTIONS = foreign
2 ferringb 2
3 azarah 183 lib_LTLIBRARIES = libsandbox.la
4     bin_PROGRAMS = sandbox
5 azarah 29
6 azarah 183 AM_CPPFLAGS = \
7     -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT \
8     -DLIBSANDBOX_PATH=\"$(libdir)\" \
9     -DSANDBOX_BASHRC_PATH=\"$(pkgdatadir)\" \
10     -I$(top_srcdir)
11    
12     LOCAL_INCLUDES = $(top_srcdir)/localdecls.h
13    
14     # We need -fexceptions here, else we do not catch exceptions
15     # (nptl/tst-cancelx4.c in glibc among others fails for wrapped functions).
16     libsandbox_la_CFLAGS = -fexceptions
17 azarah 37 # Do not add -nostdlib or -nostartfiles, as then our constructor
18     # and destructor will not be executed ...
19 azarah 183 libsandbox_la_LIBADD = -lc -ldl
20     libsandbox_la_LDFLAGS = \
21 azarah 185 -nodefaultlibs \
22 azarah 183 -Wl,--version-script,libsandbox.map
23     libsandbox_la_SOURCES = \
24     libsandbox.c \
25     $(LOCAL_INCLUDES)
26 ferringb 2
27 azarah 183 sandbox_CFLAGS = -DOUTSIDE_LIBSANDBOX
28     sandbox_SOURCES = \
29     sandbox.c \
30     sandbox.h \
31     sandbox_futils.c \
32     getcwd.c \
33     $(LOCAL_INCLUDES)
34 azarah 29
35 azarah 183 libsandbox.c: libsandbox.map symbols.h
36 azarah 29
37 azarah 183 SYMBOLS_FILE = $(srcdir)/symbols.in
38     SYMBOLS_LIST = $(shell $(EGREP) -v '^\#' $(SYMBOLS_FILE))
39     GEN_VERSION_MAP_SCRIPT = $(top_srcdir)/scripts/gen_symbol_version_map.awk
40     GEN_HEADER_SCRIPT = $(top_srcdir)/scripts/gen_symbol_header.awk
41    
42     libsandbox.map: $(SYMBOLS_FILE) $(GEN_VERSION_MAP_SCRIPT)
43 azarah 29 @echo "Generating $@"; \
44 ferringb 33 if [ ! -e "$(LIBC_PATH)" ]; then\
45 vapier 52 echo -e "\n*** Cannot find LIBC_PATH '$(LIBC_PATH)' !\n"; \
46 azarah 29 exit 1; \
47     fi; \
48 azarah 183 export SYMBOLS="$(SYMBOLS_LIST)"; \
49     if ! $(READELF) -s $(LIBC_PATH) | \
50     $(AWK) -f $(GEN_VERSION_MAP_SCRIPT) > $@ ; \
51     then \
52     echo "\n*** Failed to generate '$@' !\n"; \
53     exit 1; \
54     fi
55    
56     symbols.h: $(SYMBOLS_FILE) $(GEN_HEADER_SCRIPT)
57     @echo "Generating $@"; \
58     if [ ! -e "$(LIBC_PATH)" ]; then\
59     echo -e "\n*** Cannot find LIBC_PATH '$(LIBC_PATH)' !\n"; \
60     exit 1; \
61     fi; \
62     export SYMBOLS="$(SYMBOLS_LIST)"; \
63     if ! $(READELF) -s $(LIBC_PATH) | \
64     $(AWK) -f $(GEN_HEADER_SCRIPT) > $@ ; \
65     then \
66     echo "\n*** Failed to generate '$@' !\n"; \
67     exit 1; \
68     fi
69    
70     EXTRA_DIST = canonicalize.c $(SYMBOLS_FILE)
71    
72     CLEANFILES = libsandbox.map symbols.h
73     DISTCLEANFILES = $(CLEANFILES)

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20