]> git.proxmox.com Git - mirror_lxcfs.git/blame - Makefile.am
support /sys/devices/system/cpu/online
[mirror_lxcfs.git] / Makefile.am
CommitLineData
2183082c
SH
1ACLOCAL_AMFLAGS = -I m4
2
6cb7f996 3SUBDIRS = tests share config
c1f44f26 4DIST_SUBDIRS = tests share config
c1f9bbee 5
2c51f8dd 6AM_CFLAGS = -Wall -ggdb -D_GNU_SOURCE -DSBINDIR=\"$(SBINDIR)\" -pthread
237e200e 7AM_CFLAGS += $(FUSE_CFLAGS)
59120f04 8AM_CFLAGS += -DLIBDIR=\"$(LIBDIR)\"
237e200e 9AM_LDFLAGS = $(FUSE_LIBS) -pthread
b11c6ec0 10#AM_CFLAGS += -DDEBUG
2183082c 11
23748216 12AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\"
3e13a059 13
71f17cd2
YB
14liblxcfs_la_SOURCES = bindings.c bindings.h \
15 cpuset.c \
16 sysfs_fuse.c syfs_fuse.h
237e200e 17liblxcfs_la_CFLAGS = $(AM_CFLAGS)
25f141a4 18liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
237e200e 19
71f17cd2
YB
20liblxcfstest_la_SOURCES = bindings.c bindings.h \
21 cpuset.c \
22 sysfs_fuse.c syfs_fuse.h
237e200e 23liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST
25f141a4 24liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
237e200e 25
71f17cd2 26noinst_HEADERS = bindings.h macro.h sysfs_fuse.h
3e13a059 27
237e200e 28sodir=$(libdir)
369154d6 29lxcfs_LTLIBRARIES = liblxcfs.la
2e7cd294 30EXTRA_LTLIBRARIES = liblxcfstest.la
237e200e
SH
31
32lxcfs_SOURCES = lxcfs.c
23748216 33lxcfs_LDADD = -ldl
237e200e
SH
34lxcfs_CFLAGS = $(AM_CFLAGS)
35lxcfs_LDFLAGS = $(AM_LDFLAGS)
36bin_PROGRAMS = lxcfs
c1f9bbee
SG
37
38EXTRA_DIST = \
39 lxcfs.man.add
3cd4195e 40 lxcfs.spec
758ad80c 41
d85bd3de 42if HAVE_HELP2MAN
758ad80c
SH
43man_MANS = lxcfs.1
44
45lxcfs.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 47endif
758ad80c 48
97f1f27b
YY
49TEST_READ: tests/test-read.c
50 $(CC) -o tests/test-read tests/test-read.c
fa47bb52
SH
51TEST_CPUSET: tests/cpusetrange.c cpuset.c
52 $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c
a8b6c3e0
SH
53TEST_SYSCALLS: tests/test_syscalls.c
54 $(CC) -o tests/test_syscalls tests/test_syscalls.c
fa47bb52 55
a8b6c3e0 56tests: TEST_READ TEST_CPUSET TEST_SYSCALLS
97f1f27b 57
758ad80c
SH
58distclean:
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