]>
Commit | Line | Data |
---|---|---|
2183082c SH |
1 | ACLOCAL_AMFLAGS = -I m4 |
2 | ||
6cb7f996 | 3 | SUBDIRS = tests share config |
c1f44f26 | 4 | DIST_SUBDIRS = tests share config |
c1f9bbee | 5 | |
2c51f8dd | 6 | AM_CFLAGS = -Wall -ggdb -D_GNU_SOURCE -DSBINDIR=\"$(SBINDIR)\" -pthread |
237e200e | 7 | AM_CFLAGS += $(FUSE_CFLAGS) |
59120f04 | 8 | AM_CFLAGS += -DLIBDIR=\"$(LIBDIR)\" |
237e200e | 9 | AM_LDFLAGS = $(FUSE_LIBS) -pthread |
b11c6ec0 | 10 | #AM_CFLAGS += -DDEBUG |
2183082c | 11 | |
23748216 | 12 | AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" |
3e13a059 | 13 | |
71f17cd2 YB |
14 | liblxcfs_la_SOURCES = bindings.c bindings.h \ |
15 | cpuset.c \ | |
16 | sysfs_fuse.c syfs_fuse.h | |
237e200e | 17 | liblxcfs_la_CFLAGS = $(AM_CFLAGS) |
25f141a4 | 18 | liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared |
237e200e | 19 | |
71f17cd2 YB |
20 | liblxcfstest_la_SOURCES = bindings.c bindings.h \ |
21 | cpuset.c \ | |
22 | sysfs_fuse.c syfs_fuse.h | |
237e200e | 23 | liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST |
25f141a4 | 24 | liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared |
237e200e | 25 | |
71f17cd2 | 26 | noinst_HEADERS = bindings.h macro.h sysfs_fuse.h |
3e13a059 | 27 | |
237e200e | 28 | sodir=$(libdir) |
369154d6 | 29 | lxcfs_LTLIBRARIES = liblxcfs.la |
2e7cd294 | 30 | EXTRA_LTLIBRARIES = liblxcfstest.la |
237e200e SH |
31 | |
32 | lxcfs_SOURCES = lxcfs.c | |
23748216 | 33 | lxcfs_LDADD = -ldl |
237e200e SH |
34 | lxcfs_CFLAGS = $(AM_CFLAGS) |
35 | lxcfs_LDFLAGS = $(AM_LDFLAGS) | |
36 | bin_PROGRAMS = lxcfs | |
c1f9bbee SG |
37 | |
38 | EXTRA_DIST = \ | |
39 | lxcfs.man.add | |
3cd4195e | 40 | lxcfs.spec |
758ad80c | 41 | |
d85bd3de | 42 | if HAVE_HELP2MAN |
758ad80c SH |
43 | man_MANS = lxcfs.1 |
44 | ||
45 | lxcfs.1: lxcfs lxcfs.man.add | |
46 | $(HELP2MAN) -n "Set up cgroup fs for containers" --no-discard-stderr -s 1 -I lxcfs.man.add -N ./lxcfs > lxcfs.1 | |
d85bd3de | 47 | endif |
758ad80c | 48 | |
97f1f27b YY |
49 | TEST_READ: tests/test-read.c |
50 | $(CC) -o tests/test-read tests/test-read.c | |
fa47bb52 SH |
51 | TEST_CPUSET: tests/cpusetrange.c cpuset.c |
52 | $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c | |
a8b6c3e0 SH |
53 | TEST_SYSCALLS: tests/test_syscalls.c |
54 | $(CC) -o tests/test_syscalls tests/test_syscalls.c | |
fa47bb52 | 55 | |
a8b6c3e0 | 56 | tests: TEST_READ TEST_CPUSET TEST_SYSCALLS |
97f1f27b | 57 | |
758ad80c SH |
58 | distclean: |
59 | rm -rf .deps/ \ | |
60 | INSTALL \ | |
61 | Makefile \ | |
62 | Makefile.in \ | |
63 | aclocal.m4 \ | |
64 | autom4te.cache/ \ | |
758ad80c SH |
65 | compile \ |
66 | config.guess \ | |
67 | config.h \ | |
68 | config.h.in \ | |
69 | config.log \ | |
70 | config.status \ | |
71 | config.sub \ | |
72 | configure \ | |
73 | depcomp \ | |
74 | install-sh \ | |
75 | libtool \ | |
76 | ltmain.sh \ | |
77 | lxcfs \ | |
78 | lxcfs.1 \ | |
79 | lxcfs.o \ | |
80 | m4/ \ | |
81 | missing \ | |
a8b6c3e0 | 82 | stamp-h1 \ |
237e200e SH |
83 | tests/test_syscalls \ |
84 | *.lo *.la |