1 AM_CFLAGS = -Wall -ggdb -D_GNU_SOURCE -DSBINDIR=\"$(SBINDIR)\" -pthread
2 AM_CFLAGS += $(FUSE_CFLAGS)
3 AM_CFLAGS += -DLIBDIR=\"$(LIBDIR)\"
4 AM_LDFLAGS = $(FUSE_LIBS) -pthread
6 #AM_CFLAGS += -DVERBOSE
8 AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\"
10 liblxcfs_la_SOURCES = api_extensions.h \
11 bindings.c bindings.h \
12 cgroup_fuse.c cgroup_fuse.h \
14 cgroups/cgroup.c cgroups/cgroup.h \
15 cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
16 cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
17 cpuset_parse.c cpuset_parse.h \
21 proc_cpuview.c proc_cpuview.h \
22 proc_fuse.c proc_fuse.h \
23 proc_loadavg.c proc_loadavg.h \
25 sysfs_fuse.c sysfs_fuse.h \
27 liblxcfs_la_CFLAGS = $(AM_CFLAGS)
30 liblxcfs_la_CFLAGS += -fsanitize=address \
31 -fno-omit-frame-pointer
35 liblxcfs_la_CFLAGS += -fsanitize=undefined
38 liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
40 liblxcfstest_la_SOURCES = api_extensions.h \
41 bindings.c bindings.h \
42 cgroup_fuse.c cgroup_fuse.h \
44 cgroups/cgroup.c cgroups/cgroup.h \
45 cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
46 cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
47 cpuset_parse.c cpuset_parse.h \
51 proc_cpuview.c proc_cpuview.h \
52 proc_fuse.c proc_fuse.h \
53 proc_loadavg.c proc_loadavg.h \
55 sysfs_fuse.c sysfs_fuse.h \
57 liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST
60 liblxcfstest_la_CFLAGS += -fsanitize=address \
61 -fno-omit-frame-pointer
65 liblxcfstest_la_CFLAGS += -fsanitize=undefined
68 liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared
70 noinst_HEADERS = api_extensions.h \
74 cgroups/cgroup2_devices.h \
75 cgroups/cgroup_utils.h \
88 lxcfs_LTLIBRARIES = liblxcfs.la
89 EXTRA_LTLIBRARIES = liblxcfstest.la
91 lxcfs_SOURCES = lxcfs.c
93 lxcfs_CFLAGS = $(AM_CFLAGS)
94 lxcfs_LDFLAGS = $(AM_LDFLAGS)
97 TEST_READ: tests/test-read.c
98 $(CC) -o tests/test-read \
100 TEST_CPUSET: tests/cpusetrange.c cpuset_parse.c
101 $(CC) -o tests/cpusetrange \
102 tests/cpusetrange.c \
104 TEST_SYSCALLS: tests/test_syscalls.c
105 $(CC) -o tests/test_syscalls \
106 tests/test_syscalls.c
107 tests: TEST_READ TEST_CPUSET TEST_SYSCALLS