23 pkginclude_HEADERS += \
24 ../include/openpty.h \
25 ../include/lxcmntent.h
30 pkginclude_HEADERS += ../include/getline.h
35 # use PROGRAMS to avoid complains from automake
36 so_PROGRAMS = liblxc.so
39 arguments.c arguments.h \
41 commands.c commands.h \
55 namespace.h namespace.c \
70 mainloop.c mainloop.h \
74 apparmor.c apparmor.h \
76 lxccontainer.c lxccontainer.h \
80 liblxc_so_SOURCES += \
81 ../include/openpty.c ../include/openpty.h \
82 ../include/lxcmntent.c ../include/lxcmntent.h
87 liblxc_so_SOURCES += ../include/getline.c ../include/getline.h
91 AM_CFLAGS=-I$(top_srcdir)/src \
92 -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
93 -DLXCPATH=\"$(LXCPATH)\" \
94 -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
95 -DLXCINITDIR=\"$(LXCINITDIR)\" \
96 -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\" \
97 -DLOGPATH=\"$(LOGPATH)\" \
98 -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\"
101 AM_CFLAGS += -DHAVE_APPARMOR
104 if USE_CONFIGPATH_LOGS
105 AM_CFLAGS += -DUSE_CONFIGPATH_LOGS
109 AM_CFLAGS += -DHAVE_SECCOMP
110 liblxc_so_SOURCES += seccomp.c
113 liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
115 liblxc_so_LDFLAGS = \
117 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
119 liblxc_so_LDADD = $(CAP_LIBS) $(APPARMOR_LIBS) $(SECCOMP_LIBS)
133 bin_SCRIPTS += lxc-device
134 bin_SCRIPTS += lxc-ls
135 bin_SCRIPTS += lxc-start-ephemeral
137 bin_SCRIPTS += legacy/lxc-ls
141 bin_SCRIPTS += lxc-top
166 pkglibexec_PROGRAMS = \
169 #pkglibexec_SCRIPTS = \
174 AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
176 LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@
178 lxc_attach_SOURCES = lxc_attach.c
179 lxc_cgroup_SOURCES = lxc_cgroup.c
180 lxc_checkpoint_SOURCES = lxc_checkpoint.c
181 lxc_config_SOURCES = lxc_config.c
182 lxc_console_SOURCES = lxc_console.c
183 lxc_destroy_SOURCES = lxc_destroy.c
184 lxc_execute_SOURCES = lxc_execute.c
185 lxc_freeze_SOURCES = lxc_freeze.c
186 lxc_info_SOURCES = lxc_info.c
187 lxc_init_SOURCES = lxc_init.c
188 lxc_monitor_SOURCES = lxc_monitor.c
189 lxc_monitord_SOURCES = lxc_monitord.c
190 lxc_restart_SOURCES = lxc_restart.c
191 lxc_clone_SOURCES = lxc_clone.c
192 lxc_start_SOURCES = lxc_start.c
193 lxc_stop_SOURCES = lxc_stop.c
194 lxc_unfreeze_SOURCES = lxc_unfreeze.c
195 lxc_unshare_SOURCES = lxc_unshare.c
196 lxc_wait_SOURCES = lxc_wait.c
197 lxc_kill_SOURCES = lxc_kill.c
198 lxc_create_SOURCES = lxc_create.c
200 install-exec-local: install-soPROGRAMS
201 mkdir -p $(DESTDIR)$(datadir)/lxc
202 install -c -m 644 lxc.functions $(DESTDIR)$(datadir)/lxc
203 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
204 /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
205 cd $(DESTDIR)$(libdir); \
206 ln -sf liblxc.so.$(VERSION) liblxc.so.$(firstword $(subst ., ,$(VERSION))); \
207 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
210 $(RM) $(DESTDIR)$(libdir)/liblxc.so*