forked from containers/crun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
86 lines (67 loc) · 3.13 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
DIST_SUBDIRS = libocispec
SUBDIRS = libocispec
WD := $(shell pwd)
crun.spec: $(srcdir)/rpm/crun.spec.template
sed -e 's|#VERSION#|$(VERSION)|g' < $< > $@
rpm: dist-gzip crun.spec
echo $(VERSION)
$(MAKE) -C $(WD) dist-xz
rpmbuild -ba --define "_sourcedir $(WD)" --define "_specdir $(WD)" --define "_builddir $(WD)" --define "_srcrpmdir $(WD)" --define "_rpmdir $(WD)" --define "_buildrootdir $(WD)/.build" crun.spec
srpm: dist-gzip crun.spec
echo $(VERSION)
$(MAKE) -C $(WD) dist-xz
rpmbuild -bs --define "_sourcedir $(WD)" --define "_specdir $(WD)" --define "_builddir $(WD)" --define "_srcrpmdir $(WD)" --define "_rpmdir $(WD)" --define "_buildrootdir $(WD)/.build" crun.spec
CLEANFILES = crun.spec
libcrun_a_SOURCES = src/libcrun/utils.c \
src/libcrun/container.c \
src/libcrun/cgroup.c \
src/libcrun/linux.c \
src/libcrun/seccomp.c \
src/libcrun/error.c \
src/libcrun/status.c \
src/libcrun/terminal.c \
src/libcrun/sig2str.c
libcrun_a_CFLAGS = -I $(abs_top_builddir)/libocispec/src -I $(abs_top_srcdir)/libocispec/src
crun_CFLAGS = -I $(abs_top_builddir)/libocispec/src -I $(abs_top_srcdir)/libocispec/src
crun_SOURCES = src/crun.c src/run.c src/delete.c src/kill.c src/spec.c \
src/exec.c src/list.c src/create.c src/start.c src/state.c
crun_LDADD = libcrun.a libocispec/libocispec.a $(SELINUX_LIBS) $(YAJL_LIBS) -lcap -lseccomp $(SYSTEMD_LIBS)
EXTRA_DIST = COPYING COPYING.libcrun README.md rpm/crun.spec.template autogen.sh \
src/crun.h src/list.h src/run.h src/delete.h src/kill.h \
src/create.h src/start.h src/state.h src/exec.h src/spec.h \
src/libcrun/container.h src/libcrun/seccomp.h src/libcrun/cgroup.h \
src/libcrun/linux.h src/libcrun/utils.h src/libcrun/error.h \
src/libcrun/status.h src/libcrun/terminal.h src/libcrun/sig2str.h \
src/libcrun/intprops.h
noinst_LIBRARIES = libcrun.a
UNIT_TESTS = tests/tests_libcrun_utils tests/tests_libcrun_errors
bin_PROGRAMS = crun
noinst_PROGRAMS = tests/init $(UNIT_TESTS)
tests_init_LDFLAGS = -static-libgcc -static
tests_init_SOURCES = tests/init.c $(UNIT_TESTS)
tests_tests_libcrun_utils_CFLAGS = -I $(abs_top_builddir)/libocispec/src -I $(abs_top_srcdir)/libocispec/src -I $(abs_top_srcdir)/src
tests_tests_libcrun_utils_SOURCES = tests/tests_libcrun_utils.c
tests_tests_libcrun_utils_LDADD = $(crun_LDADD)
tests_tests_libcrun_errors_CFLAGS = -I $(abs_top_builddir)/libocispec/src -I $(abs_top_srcdir)/libocispec/src -I $(abs_top_srcdir)/src
tests_tests_libcrun_errors_SOURCES = tests/tests_libcrun_errors.c
tests_tests_libcrun_errors_LDADD = $(crun_LDADD)
TEST_EXTENSIONS = .py
PY_LOG_COMPILER = $(PYTHON)
PY_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh
TESTS = tests/test_capabilities.py \
tests/test_cwd.py \
tests/test_devices.py \
tests/test_hostname.py \
tests/test_limits.py \
tests/test_mounts.py \
tests/test_paths.py \
tests/test_pid.py \
tests/test_pid_file.py \
tests/test_preserve_fds.py \
tests/test_uid_gid.py \
tests/test_rlimits.py \
tests/test_tty.py \
tests/test_hooks.py \
$(UNIT_TESTS)
EXTRA_DIST += $(TESTS) tests/tests_utils.py