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
11 #AM_CFLAGS += -DVERBOSE
13 AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\"
15 liblxcfs_la_SOURCES = bindings.c bindings.h \
17 sysfs_fuse.c sysfs_fuse.h
18 liblxcfs_la_CFLAGS = $(AM_CFLAGS)
19 liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
21 liblxcfstest_la_SOURCES = bindings.c bindings.h \
23 sysfs_fuse.c sysfs_fuse.h
24 liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST
25 liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
27 noinst_HEADERS = bindings.h macro.h sysfs_fuse.h
30 lxcfs_LTLIBRARIES = liblxcfs.la
31 EXTRA_LTLIBRARIES = liblxcfstest.la
33 lxcfs_SOURCES = lxcfs.c
35 lxcfs_CFLAGS = $(AM_CFLAGS)
36 lxcfs_LDFLAGS = $(AM_LDFLAGS)
46 lxcfs.1: lxcfs lxcfs.man.add
47 $(HELP2MAN) -n "Set up cgroup fs for containers" --no-discard-stderr -s 1 -I lxcfs.man.add -N ./lxcfs > lxcfs.1
50 TEST_READ: tests/test-read.c
51 $(CC) -o tests/test-read tests/test-read.c
52 TEST_CPUSET: tests/cpusetrange.c cpuset.c
53 $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c
54 TEST_SYSCALLS: tests/test_syscalls.c
55 $(CC) -o tests/test_syscalls tests/test_syscalls.c
57 tests: TEST_READ TEST_CPUSET TEST_SYSCALLS