19 # use PROGRAMS to avoid complains from automake
20 so_PROGRAMS = liblxc.so
23 arguments.c arguments.h \
24 commands.c commands.h \
39 namespace.h namespace.c \
54 mainloop.c mainloop.h \
60 AM_CFLAGS=-I$(top_srcdir)/src \
61 -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
62 -DLXCPATH=\"$(LXCPATH)\" \
63 -DLXCINITDIR=\"$(LXCINITDIR)\"
66 AM_CFLAGS += -DHAVE_APPARMOR
70 AM_CFLAGS += -DHAVE_SECCOMP
71 liblxc_so_SOURCES += seccomp.c
74 liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
78 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
80 liblxc_so_LDADD = -lutil $(CAP_LIBS) $(APPARMOR_LIBS) $(SECCOMP_LIBS)
112 pkglibexec_PROGRAMS = \
117 AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
119 LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@
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
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
145 $(RM) $(DESTDIR)$(libdir)/liblxc.so*