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 \
56 namespace.h namespace.c \
71 mainloop.c mainloop.h \
75 apparmor.c apparmor.h \
77 lxccontainer.c lxccontainer.h \
81 liblxc_so_SOURCES += \
82 ../include/openpty.c ../include/openpty.h \
83 ../include/lxcmntent.c ../include/lxcmntent.h
88 liblxc_so_SOURCES += ../include/getline.c ../include/getline.h
92 AM_CFLAGS=-I$(top_srcdir)/src \
93 -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
94 -DLXCPATH=\"$(LXCPATH)\" \
95 -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
96 -DLXCINITDIR=\"$(LXCINITDIR)\" \
97 -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\" \
98 -DLOGPATH=\"$(LOGPATH)\"
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)
136 bin_SCRIPTS += lxc-device
137 bin_SCRIPTS += lxc-ls
138 bin_SCRIPTS += lxc-start-ephemeral
140 bin_SCRIPTS += legacy/lxc-ls
144 bin_SCRIPTS += lxc-top
167 pkglibexec_PROGRAMS = \
170 #pkglibexec_SCRIPTS = \
175 AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
177 LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@
179 lxc_attach_SOURCES = lxc_attach.c
180 lxc_cgroup_SOURCES = lxc_cgroup.c
181 lxc_checkpoint_SOURCES = lxc_checkpoint.c
182 lxc_config_SOURCES = lxc_config.c
183 lxc_console_SOURCES = lxc_console.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
199 install-exec-local: install-soPROGRAMS
200 mkdir -p $(DESTDIR)$(datadir)/lxc
201 install -c -m 644 lxc.functions $(DESTDIR)$(datadir)/lxc
202 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
203 /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
204 cd $(DESTDIR)$(libdir); \
205 ln -sf liblxc.so.$(VERSION) liblxc.so.$(firstword $(subst ., ,$(VERSION))); \
206 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
209 $(RM) $(DESTDIR)$(libdir)/liblxc.so*