]>
Commit | Line | Data |
---|---|---|
2183082c SH |
1 | ACLOCAL_AMFLAGS = -I m4 |
2 | ||
7456f3b5 SG |
3 | SUBDIRS = tests share |
4 | DIST_SUBDIRS = tests share | |
c1f9bbee | 5 | |
2183082c SH |
6 | VERSION_CURRENT = 0 |
7 | VERSION_REVISION = 0 | |
8 | VERSION_AGE = 0 | |
9 | ||
2c51f8dd | 10 | AM_CFLAGS = -Wall -ggdb -D_GNU_SOURCE -DSBINDIR=\"$(SBINDIR)\" -pthread |
237e200e SH |
11 | AM_CFLAGS += $(FUSE_CFLAGS) |
12 | AM_LDFLAGS = $(FUSE_LIBS) -pthread | |
b11c6ec0 | 13 | #AM_CFLAGS += -DDEBUG |
2183082c | 14 | |
35482f91 | 15 | AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" |
3e13a059 | 16 | |
237e200e SH |
17 | liblxcfs_la_SOURCES = bindings.c cpuset.c bindings.h |
18 | liblxcfs_la_CFLAGS = $(AM_CFLAGS) | |
19 | liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -shared \ | |
20 | -Wl,-soname,liblxcfs.so.$(firstword $(subst ., ,@LXCFS_VERSION_ABI@)) | |
21 | ||
22 | liblxcfstest_la_SOURCES = bindings.c cpuset.c bindings.h | |
23 | liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST | |
24 | liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -shared \ | |
25 | -Wl,-soname,liblxcfs.so.$(firstword $(subst ., ,@LXCFS_VERSION_ABI@)) | |
26 | ||
27 | noinst_HEADERS = bindings.h | |
3e13a059 | 28 | |
237e200e SH |
29 | sodir=$(libdir) |
30 | lib_LTLIBRARIES = liblxcfs.la liblxcfstest.la | |
31 | ||
32 | lxcfs_SOURCES = lxcfs.c | |
33 | lxcfs_LDADD = liblxcfs.la -ldl | |
34 | lxcfs_CFLAGS = $(AM_CFLAGS) | |
35 | lxcfs_LDFLAGS = $(AM_LDFLAGS) | |
36 | bin_PROGRAMS = lxcfs | |
c1f9bbee SG |
37 | |
38 | EXTRA_DIST = \ | |
39 | lxcfs.man.add | |
758ad80c | 40 | |
d85bd3de | 41 | if HAVE_HELP2MAN |
758ad80c SH |
42 | man_MANS = lxcfs.1 |
43 | ||
44 | lxcfs.1: lxcfs lxcfs.man.add | |
45 | $(HELP2MAN) -n "Set up cgroup fs for containers" --no-discard-stderr -s 1 -I lxcfs.man.add -N ./lxcfs > lxcfs.1 | |
d85bd3de | 46 | endif |
758ad80c | 47 | |
97f1f27b YY |
48 | TEST_READ: tests/test-read.c |
49 | $(CC) -o tests/test-read tests/test-read.c | |
fa47bb52 SH |
50 | TEST_CPUSET: tests/cpusetrange.c cpuset.c |
51 | $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c | |
a8b6c3e0 SH |
52 | TEST_SYSCALLS: tests/test_syscalls.c |
53 | $(CC) -o tests/test_syscalls tests/test_syscalls.c | |
fa47bb52 | 54 | |
df54106a SH |
55 | pam_LTLIBRARIES = pam_cgfs.la |
56 | pam_cgfs_la_SOURCES = pam/pam_cgfs.c | |
57 | pam_cgfs_la_CFLAGS = $(AM_CFLAGS) | |
58 | pam_cgfs_la_LIBADD = $(AM_LIBS) $(PAM_LIBS) -L$(top_srcdir) | |
59 | pam_cgfs_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version -shared | |
b11c6ec0 | 60 | #pam_cgfs_la_CFLAGS += -DDEBUG |
df54106a SH |
61 | |
62 | install-data-hook: install-pamLTLIBRARIES | |
63 | rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.la" | |
64 | rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.a" | |
65 | uninstall-local: | |
66 | rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.so" | |
67 | ||
68 | ||
a8b6c3e0 | 69 | tests: TEST_READ TEST_CPUSET TEST_SYSCALLS |
97f1f27b | 70 | |
758ad80c SH |
71 | distclean: |
72 | rm -rf .deps/ \ | |
73 | INSTALL \ | |
74 | Makefile \ | |
75 | Makefile.in \ | |
76 | aclocal.m4 \ | |
77 | autom4te.cache/ \ | |
758ad80c SH |
78 | compile \ |
79 | config.guess \ | |
80 | config.h \ | |
81 | config.h.in \ | |
82 | config.log \ | |
83 | config.status \ | |
84 | config.sub \ | |
85 | configure \ | |
86 | depcomp \ | |
87 | install-sh \ | |
88 | libtool \ | |
89 | ltmain.sh \ | |
90 | lxcfs \ | |
91 | lxcfs.1 \ | |
92 | lxcfs.o \ | |
93 | m4/ \ | |
94 | missing \ | |
a8b6c3e0 | 95 | stamp-h1 \ |
237e200e SH |
96 | tests/test_syscalls \ |
97 | *.lo *.la |