21 pkginclude_HEADERS += \
22 ../include/openpty.h \
23 ../include/lxcmntent.h
28 pkginclude_HEADERS += ../include/getline.h
33 # use PROGRAMS to avoid complains from automake
34 so_PROGRAMS = liblxc.so
37 arguments.c arguments.h \
38 commands.c commands.h \
53 namespace.h namespace.c \
68 mainloop.c mainloop.h \
72 apparmor.c apparmor.h \
74 lxccontainer.c lxccontainer.h
77 liblxc_so_SOURCES += \
78 ../include/openpty.c ../include/openpty.h \
79 ../include/lxcmntent.c ../include/lxcmntent.h
84 liblxc_so_SOURCES += ../include/getline.c ../include/getline.h
88 AM_CFLAGS=-I$(top_srcdir)/src \
89 -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
90 -DLXCPATH=\"$(LXCPATH)\" \
91 -DLXCINITDIR=\"$(LXCINITDIR)\" \
92 -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\"
95 AM_CFLAGS += -DHAVE_APPARMOR
99 AM_CFLAGS += -DHAVE_SECCOMP
100 liblxc_so_SOURCES += seccomp.c
103 liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
105 liblxc_so_LDFLAGS = \
107 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
109 liblxc_so_LDADD = $(CAP_LIBS) $(APPARMOR_LIBS) $(SECCOMP_LIBS)
112 liblxc_so_LDADD += -lutil -lrt
128 EXTRA_DIST = lxc-device lxc-ls
129 bin_SCRIPTS += lxc-device
130 bin_SCRIPTS += lxc-ls
131 bin_SCRIPTS += lxc-start-ephemeral
133 bin_SCRIPTS += legacy/lxc-ls
153 pkglibexec_PROGRAMS = \
158 AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
160 LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@
166 lxc_attach_SOURCES = lxc_attach.c
167 lxc_cgroup_SOURCES = lxc_cgroup.c
168 lxc_checkpoint_SOURCES = lxc_checkpoint.c
169 lxc_console_SOURCES = lxc_console.c
170 lxc_execute_SOURCES = lxc_execute.c
171 lxc_freeze_SOURCES = lxc_freeze.c
172 lxc_info_SOURCES = lxc_info.c
173 lxc_init_SOURCES = lxc_init.c
174 lxc_monitor_SOURCES = lxc_monitor.c
175 lxc_restart_SOURCES = lxc_restart.c
176 lxc_start_SOURCES = lxc_start.c
177 lxc_stop_SOURCES = lxc_stop.c
178 lxc_unfreeze_SOURCES = lxc_unfreeze.c
179 lxc_unshare_SOURCES = lxc_unshare.c
180 lxc_wait_SOURCES = lxc_wait.c
181 lxc_kill_SOURCES = lxc_kill.c
183 install-exec-local: install-soPROGRAMS
184 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
185 /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
186 cd $(DESTDIR)$(libdir); \
187 ln -sf liblxc.so.$(VERSION) liblxc.so.$(firstword $(subst ., ,$(VERSION))); \
188 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
191 $(RM) $(DESTDIR)$(libdir)/liblxc.so*