]> git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/Makefile.am
Makefile.am: use right .h file name for seccomp
[mirror_lxc.git] / src / lxc / Makefile.am
1 pkginclude_HEADERS = \
2 arguments.h \
3 start.h \
4 console.h \
5 error.h \
6 monitor.h \
7 utils.h \
8 namespace.h \
9 caps.h \
10 lxc.h \
11 cgroup.h \
12 conf.h \
13 list.h \
14 log.h \
15 state.h \
16 attach.h
17
18 sodir=$(libdir)
19 # use PROGRAMS to avoid complains from automake
20 so_PROGRAMS = liblxc.so
21
22 liblxc_so_SOURCES = \
23 arguments.c arguments.h \
24 commands.c commands.h \
25 start.c start.h \
26 stop.c \
27 execute.c \
28 monitor.c monitor.h \
29 console.c \
30 freezer.c \
31 checkpoint.c \
32 restart.c \
33 error.h error.c \
34 parse.c parse.h \
35 cgroup.c cgroup.h \
36 lxc.h \
37 utils.c utils.h \
38 sync.c sync.h \
39 namespace.h namespace.c \
40 conf.c conf.h \
41 confile.c confile.h \
42 list.h \
43 state.c state.h \
44 log.c log.h \
45 attach.c attach.h \
46 \
47 network.c network.h \
48 nl.c nl.h \
49 rtnl.c rtnl.h \
50 genl.c genl.h \
51 \
52 caps.c caps.h \
53 lxcseccomp.h \
54 mainloop.c mainloop.h \
55 af_unix.c af_unix.h \
56 \
57 utmp.c utmp.h \
58 apparmor.c apparmor.h
59
60 AM_CFLAGS=-I$(top_srcdir)/src \
61 -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
62 -DLXCPATH=\"$(LXCPATH)\" \
63 -DLXCINITDIR=\"$(LXCINITDIR)\"
64
65 if ENABLE_APPARMOR
66 AM_CFLAGS += -DHAVE_APPARMOR
67 endif
68
69 if ENABLE_SECCOMP
70 AM_CFLAGS += -DHAVE_SECCOMP
71 liblxc_so_SOURCES += seccomp.c
72 endif
73
74 liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
75
76 liblxc_so_LDFLAGS = \
77 -shared \
78 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
79
80 liblxc_so_LDADD = -lutil $(CAP_LIBS) $(APPARMOR_LIBS) $(SECCOMP_LIBS)
81
82 bin_SCRIPTS = \
83 lxc-ps \
84 lxc-netstat \
85 lxc-ls \
86 lxc-checkconfig \
87 lxc-setcap \
88 lxc-setuid \
89 lxc-version \
90 lxc-create \
91 lxc-clone \
92 lxc-shutdown \
93 lxc-destroy
94
95 bin_PROGRAMS = \
96 lxc-attach \
97 lxc-unshare \
98 lxc-stop \
99 lxc-start \
100 lxc-execute \
101 lxc-monitor \
102 lxc-wait \
103 lxc-console \
104 lxc-freeze \
105 lxc-info \
106 lxc-cgroup \
107 lxc-unfreeze \
108 lxc-checkpoint \
109 lxc-restart \
110 lxc-kill
111
112 pkglibexec_PROGRAMS = \
113 lxc-init
114
115 AM_LDFLAGS = -Wl,-E
116 if ENABLE_RPATH
117 AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
118 endif
119 LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@
120
121 lxc_attach_SOURCES = lxc_attach.c
122 lxc_cgroup_SOURCES = lxc_cgroup.c
123 lxc_checkpoint_SOURCES = lxc_checkpoint.c
124 lxc_console_SOURCES = lxc_console.c
125 lxc_execute_SOURCES = lxc_execute.c
126 lxc_freeze_SOURCES = lxc_freeze.c
127 lxc_info_SOURCES = lxc_info.c
128 lxc_init_SOURCES = lxc_init.c
129 lxc_monitor_SOURCES = lxc_monitor.c
130 lxc_restart_SOURCES = lxc_restart.c
131 lxc_start_SOURCES = lxc_start.c
132 lxc_stop_SOURCES = lxc_stop.c
133 lxc_unfreeze_SOURCES = lxc_unfreeze.c
134 lxc_unshare_SOURCES = lxc_unshare.c
135 lxc_wait_SOURCES = lxc_wait.c
136 lxc_kill_SOURCES = lxc_kill.c
137
138 install-exec-local: install-soPROGRAMS
139 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
140 /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
141 cd $(DESTDIR)$(libdir); \
142 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
143
144 uninstall-local:
145 $(RM) $(DESTDIR)$(libdir)/liblxc.so*