| … | |
… | |
| 5 | |
5 | |
| 6 | AM_CPPFLAGS = \ |
6 | AM_CPPFLAGS = \ |
| 7 | -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT \ |
7 | -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT \ |
| 8 | -DLIBSANDBOX_PATH=\"$(libdir)\" \ |
8 | -DLIBSANDBOX_PATH=\"$(libdir)\" \ |
| 9 | -DSANDBOX_BASHRC_PATH=\"$(pkgdatadir)\" \ |
9 | -DSANDBOX_BASHRC_PATH=\"$(pkgdatadir)\" \ |
| 10 | -I$(top_srcdir) |
10 | -I$(top_srcdir) -Wall |
| 11 | |
11 | |
| 12 | LOCAL_INCLUDES = $(top_srcdir)/localdecls.h |
12 | LOCAL_INCLUDES = $(top_srcdir)/localdecls.h |
| 13 | |
13 | |
| 14 | # We need -fexceptions here, else we do not catch exceptions |
14 | # We need -fexceptions here, else we do not catch exceptions |
| 15 | # (nptl/tst-cancelx4.c in glibc among others fails for wrapped functions). |
15 | # (nptl/tst-cancelx4.c in glibc among others fails for wrapped functions). |
| … | |
… | |
| 19 | libsandbox_la_LIBADD = -lc -ldl |
19 | libsandbox_la_LIBADD = -lc -ldl |
| 20 | libsandbox_la_LDFLAGS = \ |
20 | libsandbox_la_LDFLAGS = \ |
| 21 | -nodefaultlibs \ |
21 | -nodefaultlibs \ |
| 22 | -Wl,--version-script,libsandbox.map |
22 | -Wl,--version-script,libsandbox.map |
| 23 | libsandbox_la_SOURCES = \ |
23 | libsandbox_la_SOURCES = \ |
| 24 | libsandbox.c \ |
24 | libsandbox.c \ |
|
|
25 | getcwd.c \ |
|
|
26 | canonicalize.c \ |
|
|
27 | sandbox_futils.c \ |
| 25 | $(LOCAL_INCLUDES) |
28 | $(LOCAL_INCLUDES) |
| 26 | |
29 | |
| 27 | sandbox_CFLAGS = -DOUTSIDE_LIBSANDBOX |
30 | sandbox_CFLAGS = -DOUTSIDE_LIBSANDBOX |
| 28 | sandbox_SOURCES = \ |
31 | sandbox_SOURCES = \ |
| 29 | sandbox.c \ |
32 | sandbox.c \ |
| … | |
… | |
| 65 | then \ |
68 | then \ |
| 66 | echo "\n*** Failed to generate '$@' !\n"; \ |
69 | echo "\n*** Failed to generate '$@' !\n"; \ |
| 67 | exit 1; \ |
70 | exit 1; \ |
| 68 | fi |
71 | fi |
| 69 | |
72 | |
| 70 | EXTRA_DIST = canonicalize.c $(SYMBOLS_FILE) |
73 | EXTRA_DIST = $(SYMBOLS_FILE) |
| 71 | |
74 | |
| 72 | CLEANFILES = libsandbox.map symbols.h |
75 | CLEANFILES = libsandbox.map symbols.h |
| 73 | DISTCLEANFILES = $(CLEANFILES) |
76 | DISTCLEANFILES = $(CLEANFILES) |