]> git.proxmox.com Git - mirror_lxcfs.git/blame - Makefile.am
config: Adds RPM spec file.
[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
3cd4195e 36 lxcfs.spec
758ad80c 37
d85bd3de 38if HAVE_HELP2MAN
758ad80c
SH
39man_MANS = lxcfs.1
40
41lxcfs.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 43endif
758ad80c 44
97f1f27b
YY
45TEST_READ: tests/test-read.c
46 $(CC) -o tests/test-read tests/test-read.c
fa47bb52
SH
47TEST_CPUSET: tests/cpusetrange.c cpuset.c
48 $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c
a8b6c3e0
SH
49TEST_SYSCALLS: tests/test_syscalls.c
50 $(CC) -o tests/test_syscalls tests/test_syscalls.c
fa47bb52 51
a8b6c3e0 52tests: TEST_READ TEST_CPUSET TEST_SYSCALLS
97f1f27b 53
758ad80c
SH
54distclean:
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