]> git.proxmox.com Git - mirror_lxcfs.git/blob - Makefile.am
Revert "Revert "cpu: improve cpu info virtualization""
[mirror_lxcfs.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = tests share config
4 DIST_SUBDIRS = tests share config
5
6 AM_CFLAGS = -Wall -ggdb -D_GNU_SOURCE -DSBINDIR=\"$(SBINDIR)\" -pthread
7 AM_CFLAGS += $(FUSE_CFLAGS)
8 AM_CFLAGS += -DLIBDIR=\"$(LIBDIR)\"
9 AM_LDFLAGS = $(FUSE_LIBS) -pthread
10 #AM_CFLAGS += -DDEBUG
11 #AM_CFLAGS += -DVERBOSE
12
13 AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\"
14
15 liblxcfs_la_SOURCES = bindings.c bindings.h \
16 cpuset.c \
17 sysfs_fuse.c sysfs_fuse.h
18 liblxcfs_la_CFLAGS = $(AM_CFLAGS)
19 liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
20
21 liblxcfstest_la_SOURCES = bindings.c bindings.h \
22 cpuset.c \
23 sysfs_fuse.c sysfs_fuse.h
24 liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST
25 liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
26
27 noinst_HEADERS = bindings.h macro.h sysfs_fuse.h
28
29 sodir=$(libdir)
30 lxcfs_LTLIBRARIES = liblxcfs.la
31 EXTRA_LTLIBRARIES = liblxcfstest.la
32
33 lxcfs_SOURCES = lxcfs.c
34 lxcfs_LDADD = -ldl
35 lxcfs_CFLAGS = $(AM_CFLAGS)
36 lxcfs_LDFLAGS = $(AM_LDFLAGS)
37 bin_PROGRAMS = lxcfs
38
39 EXTRA_DIST = \
40 lxcfs.man.add
41 lxcfs.spec
42
43 if HAVE_HELP2MAN
44 man_MANS = lxcfs.1
45
46 lxcfs.1: lxcfs lxcfs.man.add
47 $(HELP2MAN) -n "Set up cgroup fs for containers" --no-discard-stderr -s 1 -I lxcfs.man.add -N ./lxcfs > lxcfs.1
48 endif
49
50 TEST_READ: tests/test-read.c
51 $(CC) -o tests/test-read tests/test-read.c
52 TEST_CPUSET: tests/cpusetrange.c cpuset.c
53 $(CC) -o tests/cpusetrange tests/cpusetrange.c cpuset.c
54 TEST_SYSCALLS: tests/test_syscalls.c
55 $(CC) -o tests/test_syscalls tests/test_syscalls.c
56
57 tests: TEST_READ TEST_CPUSET TEST_SYSCALLS
58
59 distclean:
60 rm -rf .deps/ \
61 INSTALL \
62 Makefile \
63 Makefile.in \
64 aclocal.m4 \
65 autom4te.cache/ \
66 compile \
67 config.guess \
68 config.h \
69 config.h.in \
70 config.log \
71 config.status \
72 config.sub \
73 configure \
74 depcomp \
75 install-sh \
76 libtool \
77 ltmain.sh \
78 lxcfs \
79 lxcfs.1 \
80 lxcfs.o \
81 m4/ \
82 missing \
83 stamp-h1 \
84 tests/test_syscalls \
85 *.lo *.la