]>
Commit | Line | Data |
---|---|---|
1 | ACLOCAL_AMFLAGS = -I m4 | |
2 | ||
3 | SUBDIRS = tests share config | |
4 | DIST_SUBDIRS = tests share config | |
5 | ||
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 | |
10 | #AM_CFLAGS += -DDEBUG | |
11 | ||
12 | AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" | |
13 | ||
14 | liblxcfs_la_SOURCES = macro.h bindings.c cpuset.c bindings.h | |
15 | liblxcfs_la_CFLAGS = $(AM_CFLAGS) | |
16 | liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared | |
17 | ||
18 | liblxcfstest_la_SOURCES = bindings.c cpuset.c bindings.h macro.h | |
19 | liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST | |
20 | liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared | |
21 | ||
22 | noinst_HEADERS = bindings.h macro.h | |
23 | ||
24 | sodir=$(libdir) | |
25 | lxcfs_LTLIBRARIES = liblxcfs.la | |
26 | EXTRA_LTLIBRARIES = liblxcfstest.la | |
27 | ||
28 | lxcfs_SOURCES = lxcfs.c | |
29 | lxcfs_LDADD = -ldl | |
30 | lxcfs_CFLAGS = $(AM_CFLAGS) | |
31 | lxcfs_LDFLAGS = $(AM_LDFLAGS) | |
32 | bin_PROGRAMS = lxcfs | |
33 | ||
34 | EXTRA_DIST = \ | |
35 | lxcfs.man.add | |
36 | ||
37 | if HAVE_HELP2MAN | |
38 | man_MANS = lxcfs.1 | |
39 | ||
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 | |
42 | endif | |
43 | ||
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 | |
50 | ||
51 | tests: TEST_READ TEST_CPUSET TEST_SYSCALLS | |
52 | ||
53 | distclean: | |
54 | rm -rf .deps/ \ | |
55 | INSTALL \ | |
56 | Makefile \ | |
57 | Makefile.in \ | |
58 | aclocal.m4 \ | |
59 | autom4te.cache/ \ | |
60 | compile \ | |
61 | config.guess \ | |
62 | config.h \ | |
63 | config.h.in \ | |
64 | config.log \ | |
65 | config.status \ | |
66 | config.sub \ | |
67 | configure \ | |
68 | depcomp \ | |
69 | install-sh \ | |
70 | libtool \ | |
71 | ltmain.sh \ | |
72 | lxcfs \ | |
73 | lxcfs.1 \ | |
74 | lxcfs.o \ | |
75 | m4/ \ | |
76 | missing \ | |
77 | stamp-h1 \ | |
78 | tests/test_syscalls \ | |
79 | *.lo *.la |