1 ACLOCAL_AMFLAGS = -I m4
3 SUBDIRS = tests share config
4 DIST_SUBDIRS = tests share config
6 AM_CFLAGS = -Wall -ggdb -D_GNU_SOURCE -DSBINDIR=\"$(SBINDIR)\" -pthread
7 AM_CFLAGS += $(FUSE_CFLAGS)
8 AM_CFLAGS += -DLIBDIR=\"$(LIBDIR)\"
9 AM_LDFLAGS = $(FUSE_LIBS) -pthread
12 AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\"
14 liblxcfs_la_SOURCES = bindings.c cpuset.c bindings.h
15 liblxcfs_la_CFLAGS = $(AM_CFLAGS)
16 liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -shared
18 liblxcfstest_la_SOURCES = bindings.c cpuset.c bindings.h
19 liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST
20 liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -shared
22 noinst_HEADERS = bindings.h
25 lib_LTLIBRARIES = liblxcfs.la
26 EXTRA_LTLIBRARIES = liblxcfstest.la
28 lxcfs_SOURCES = lxcfs.c
30 lxcfs_CFLAGS = $(AM_CFLAGS)
31 lxcfs_LDFLAGS = $(AM_LDFLAGS)
40 lxcfs.1: lxcfs lxcfs.man.add
41 $(HELP2MAN) -n "Set up cgroup fs for containers" --no-discard-stderr -s 1 -I lxcfs.man.add -N ./lxcfs > lxcfs.1
44 TEST_READ: tests/test-read.c
45 $(CC) -o tests/test-read tests/test-read.c
46 TEST_CPUSET: tests/cpusetrange.c cpuset.c
47 $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c
48 TEST_SYSCALLS: tests/test_syscalls.c
49 $(CC) -o tests/test_syscalls tests/test_syscalls.c
52 pam_LTLIBRARIES = pam_cgfs.la
53 pam_cgfs_la_SOURCES = pam/pam_cgfs.c
54 pam_cgfs_la_CFLAGS = $(AM_CFLAGS)
55 pam_cgfs_la_LIBADD = $(AM_LIBS) $(PAM_LIBS) -L$(top_srcdir)
56 pam_cgfs_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version -shared
57 #pam_cgfs_la_CFLAGS += -DDEBUG
59 install-data-hook: install-pamLTLIBRARIES
60 rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.la"
61 rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.a"
63 rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.so"
67 tests: TEST_READ TEST_CPUSET TEST_SYSCALLS