]>
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 | |
17e0e368 | 14 | liblxcfs_la_SOURCES = macro.h bindings.c cpuset.c bindings.h |
237e200e | 15 | liblxcfs_la_CFLAGS = $(AM_CFLAGS) |
25f141a4 | 16 | liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared |
237e200e | 17 | |
17e0e368 | 18 | liblxcfstest_la_SOURCES = bindings.c cpuset.c bindings.h macro.h |
237e200e | 19 | liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST |
25f141a4 | 20 | liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared |
237e200e | 21 | |
17e0e368 | 22 | noinst_HEADERS = bindings.h macro.h |
3e13a059 | 23 | |
237e200e | 24 | sodir=$(libdir) |
369154d6 | 25 | lxcfs_LTLIBRARIES = liblxcfs.la |
2e7cd294 | 26 | EXTRA_LTLIBRARIES = liblxcfstest.la |
237e200e SH |
27 | |
28 | lxcfs_SOURCES = lxcfs.c | |
23748216 | 29 | lxcfs_LDADD = -ldl |
237e200e SH |
30 | lxcfs_CFLAGS = $(AM_CFLAGS) |
31 | lxcfs_LDFLAGS = $(AM_LDFLAGS) | |
32 | bin_PROGRAMS = lxcfs | |
c1f9bbee SG |
33 | |
34 | EXTRA_DIST = \ | |
35 | lxcfs.man.add | |
3cd4195e | 36 | lxcfs.spec |
758ad80c | 37 | |
d85bd3de | 38 | if HAVE_HELP2MAN |
758ad80c SH |
39 | man_MANS = lxcfs.1 |
40 | ||
41 | lxcfs.1: lxcfs lxcfs.man.add | |
42 | $(HELP2MAN) -n "Set up cgroup fs for containers" --no-discard-stderr -s 1 -I lxcfs.man.add -N ./lxcfs > lxcfs.1 | |
d85bd3de | 43 | endif |
758ad80c | 44 | |
97f1f27b YY |
45 | TEST_READ: tests/test-read.c |
46 | $(CC) -o tests/test-read tests/test-read.c | |
fa47bb52 SH |
47 | TEST_CPUSET: tests/cpusetrange.c cpuset.c |
48 | $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c | |
a8b6c3e0 SH |
49 | TEST_SYSCALLS: tests/test_syscalls.c |
50 | $(CC) -o tests/test_syscalls tests/test_syscalls.c | |
fa47bb52 | 51 | |
a8b6c3e0 | 52 | tests: TEST_READ TEST_CPUSET TEST_SYSCALLS |
97f1f27b | 53 | |
758ad80c SH |
54 | distclean: |
55 | rm -rf .deps/ \ | |
56 | INSTALL \ | |
57 | Makefile \ | |
58 | Makefile.in \ | |
59 | aclocal.m4 \ | |
60 | autom4te.cache/ \ | |
758ad80c SH |
61 | compile \ |
62 | config.guess \ | |
63 | config.h \ | |
64 | config.h.in \ | |
65 | config.log \ | |
66 | config.status \ | |
67 | config.sub \ | |
68 | configure \ | |
69 | depcomp \ | |
70 | install-sh \ | |
71 | libtool \ | |
72 | ltmain.sh \ | |
73 | lxcfs \ | |
74 | lxcfs.1 \ | |
75 | lxcfs.o \ | |
76 | m4/ \ | |
77 | missing \ | |
a8b6c3e0 | 78 | stamp-h1 \ |
237e200e SH |
79 | tests/test_syscalls \ |
80 | *.lo *.la |