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)\"
100 AM_CFLAGS += -DHAVE_APPARMOR
103 if USE_CONFIGPATH_LOGS
104 AM_CFLAGS += -DUSE_CONFIGPATH_LOGS
108 AM_CFLAGS += -DHAVE_SECCOMP
109 liblxc_so_SOURCES += seccomp.c
112 liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
114 liblxc_so_LDFLAGS = \
116 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
118 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
165 pkglibexec_PROGRAMS = \
168 #pkglibexec_SCRIPTS = \
173 AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
175 LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@
177 lxc_attach_SOURCES = lxc_attach.c
178 lxc_cgroup_SOURCES = lxc_cgroup.c
179 lxc_checkpoint_SOURCES = lxc_checkpoint.c
180 lxc_config_SOURCES = lxc_config.c
181 lxc_console_SOURCES = lxc_console.c
182 lxc_destroy_SOURCES = lxc_destroy.c
183 lxc_execute_SOURCES = lxc_execute.c
184 lxc_freeze_SOURCES = lxc_freeze.c
185 lxc_info_SOURCES = lxc_info.c
186 lxc_init_SOURCES = lxc_init.c
187 lxc_monitor_SOURCES = lxc_monitor.c
188 lxc_monitord_SOURCES = lxc_monitord.c
189 lxc_restart_SOURCES = lxc_restart.c
190 lxc_clone_SOURCES = lxc_clone.c
191 lxc_start_SOURCES = lxc_start.c
192 lxc_stop_SOURCES = lxc_stop.c
193 lxc_unfreeze_SOURCES = lxc_unfreeze.c
194 lxc_unshare_SOURCES = lxc_unshare.c
195 lxc_wait_SOURCES = lxc_wait.c
196 lxc_kill_SOURCES = lxc_kill.c
198 install-exec-local: install-soPROGRAMS
199 mkdir -p $(DESTDIR)$(datadir)/lxc
200 install -c -m 644 lxc.functions $(DESTDIR)$(datadir)/lxc
201 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
202 /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
203 cd $(DESTDIR)$(libdir); \
204 ln -sf liblxc.so.$(VERSION) liblxc.so.$(firstword $(subst ., ,$(VERSION))); \
205 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
208 $(RM) $(DESTDIR)$(libdir)/liblxc.so*