]> git.proxmox.com Git - mirror_lxcfs.git/blame - Makefile.am
bindings: avoid allocating an unused buffer
[mirror_lxcfs.git] / Makefile.am
CommitLineData
2183082c
SH
1ACLOCAL_AMFLAGS = -I m4
2
7456f3b5
SG
3SUBDIRS = tests share
4DIST_SUBDIRS = tests share
c1f9bbee 5
2183082c
SH
6VERSION_CURRENT = 0
7VERSION_REVISION = 0
8VERSION_AGE = 0
9
2c51f8dd 10AM_CFLAGS = -Wall -ggdb -D_GNU_SOURCE -DSBINDIR=\"$(SBINDIR)\" -pthread
237e200e
SH
11AM_CFLAGS += $(FUSE_CFLAGS)
12AM_LDFLAGS = $(FUSE_LIBS) -pthread
b11c6ec0 13#AM_CFLAGS += -DDEBUG
2183082c 14
35482f91 15AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\"
3e13a059 16
237e200e
SH
17liblxcfs_la_SOURCES = bindings.c cpuset.c bindings.h
18liblxcfs_la_CFLAGS = $(AM_CFLAGS)
19liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -shared \
20 -Wl,-soname,liblxcfs.so.$(firstword $(subst ., ,@LXCFS_VERSION_ABI@))
21
22liblxcfstest_la_SOURCES = bindings.c cpuset.c bindings.h
23liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST
24liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -shared \
25 -Wl,-soname,liblxcfs.so.$(firstword $(subst ., ,@LXCFS_VERSION_ABI@))
26
27noinst_HEADERS = bindings.h
3e13a059 28
237e200e
SH
29sodir=$(libdir)
30lib_LTLIBRARIES = liblxcfs.la liblxcfstest.la
31
32lxcfs_SOURCES = lxcfs.c
33lxcfs_LDADD = liblxcfs.la -ldl
34lxcfs_CFLAGS = $(AM_CFLAGS)
35lxcfs_LDFLAGS = $(AM_LDFLAGS)
36bin_PROGRAMS = lxcfs
c1f9bbee
SG
37
38EXTRA_DIST = \
39 lxcfs.man.add
758ad80c 40
d85bd3de 41if HAVE_HELP2MAN
758ad80c
SH
42man_MANS = lxcfs.1
43
44lxcfs.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 46endif
758ad80c 47
97f1f27b
YY
48TEST_READ: tests/test-read.c
49 $(CC) -o tests/test-read tests/test-read.c
fa47bb52
SH
50TEST_CPUSET: tests/cpusetrange.c cpuset.c
51 $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c
a8b6c3e0
SH
52TEST_SYSCALLS: tests/test_syscalls.c
53 $(CC) -o tests/test_syscalls tests/test_syscalls.c
fa47bb52 54
df54106a
SH
55pam_LTLIBRARIES = pam_cgfs.la
56pam_cgfs_la_SOURCES = pam/pam_cgfs.c
57pam_cgfs_la_CFLAGS = $(AM_CFLAGS)
58pam_cgfs_la_LIBADD = $(AM_LIBS) $(PAM_LIBS) -L$(top_srcdir)
59pam_cgfs_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version -shared
b11c6ec0 60#pam_cgfs_la_CFLAGS += -DDEBUG
df54106a
SH
61
62install-data-hook: install-pamLTLIBRARIES
63 rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.la"
64 rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.a"
65uninstall-local:
66 rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.so"
67
68
a8b6c3e0 69tests: TEST_READ TEST_CPUSET TEST_SYSCALLS
97f1f27b 70
758ad80c
SH
71distclean:
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