aboutsummaryrefslogtreecommitdiff
blob: 3460530e4766a47d4bc68c7ee733656d20e3c138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
bin_PROGRAMS		= sandbox
lib_LTLIBRARIES 	= libsandbox.la
datadir			= @datadir@
AM_CFLAGS		= -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT

libsandbox_la_SOURCES 	= libsandbox.c sandbox_futils.c localdecls.h
libsandbox_la_LDFLAGS 	= -Wc,-nostdlib -lc -ldl
libsandbox_la_CFLAGS	= -Wc,-nostdlib -D_REENTRANT -D_GNU_SOURCE \
	-DSANDBOX_BASHRC_PATH=\"$(pkgdatadir)\" \
	-DLIBSANDBOX_PATH=\"$(libdir)\"


sandbox_SOURCES		= sandbox.c sandbox.h sandbox_futils.c getcwd.c
sandbox_CFLAGS		= -DSANDBOX_BASHRC_PATH=\"$(pkgdatadir)\"	\
			-DLIBSANDBOX_PATH=\"$(libdir)\"

BUILT_SOURCES		= localdecls.h

dist_data_DATA		= canonicalize.c create-localdecls libctest.c
dist_pkgdata_DATA	= sandbox.bashrc

localdecls.h:	Makefile
	./create-localdecls

AUTOMAKE_OPTIONS	= dist-bzip2 no-dist-gzip
EXTRA_DIST		= sandbox.bashrc