]> git.proxmox.com Git - mirror_lxcfs.git/blame - Makefile.am
Fix test_proc on s390x
[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
17e0e368 14liblxcfs_la_SOURCES = macro.h bindings.c cpuset.c bindings.h
237e200e 15liblxcfs_la_CFLAGS = $(AM_CFLAGS)
25f141a4 16liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
237e200e 17
17e0e368 18liblxcfstest_la_SOURCES = bindings.c cpuset.c bindings.h macro.h
237e200e 19liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST
25f141a4 20liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
237e200e 21
17e0e368 22noinst_HEADERS = bindings.h macro.h
3e13a059 23
237e200e 24sodir=$(libdir)
369154d6 25lxcfs_LTLIBRARIES = liblxcfs.la
2e7cd294 26EXTRA_LTLIBRARIES = liblxcfstest.la
237e200e
SH
27
28lxcfs_SOURCES = lxcfs.c
23748216 29lxcfs_LDADD = -ldl
237e200e
SH
30lxcfs_CFLAGS = $(AM_CFLAGS)
31lxcfs_LDFLAGS = $(AM_LDFLAGS)
32bin_PROGRAMS = lxcfs
c1f9bbee
SG
33
34EXTRA_DIST = \
35 lxcfs.man.add
758ad80c 36
d85bd3de 37if HAVE_HELP2MAN
758ad80c
SH
38man_MANS = lxcfs.1
39
40lxcfs.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
d85bd3de 42endif
758ad80c 43
97f1f27b
YY
44TEST_READ: tests/test-read.c
45 $(CC) -o tests/test-read tests/test-read.c
fa47bb52
SH
46TEST_CPUSET: tests/cpusetrange.c cpuset.c
47 $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c
a8b6c3e0
SH
48TEST_SYSCALLS: tests/test_syscalls.c
49 $(CC) -o tests/test_syscalls tests/test_syscalls.c
fa47bb52 50
a8b6c3e0 51tests: TEST_READ TEST_CPUSET TEST_SYSCALLS
97f1f27b 52
758ad80c
SH
53distclean:
54 rm -rf .deps/ \
55 INSTALL \
56 Makefile \
57 Makefile.in \
58 aclocal.m4 \
59 autom4te.cache/ \
758ad80c
SH
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 \
a8b6c3e0 77 stamp-h1 \
237e200e
SH
78 tests/test_syscalls \
79 *.lo *.la