17 # use PROGRAMS to avoid complains from automake
18 so_PROGRAMS = liblxc.so
21 arguments.c arguments.h \
22 commands.c commands.h \
36 namespace.h namespace.c \
49 mainloop.c mainloop.h \
54 AM_CFLAGS=-I$(top_srcdir)/src
56 liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
60 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
62 liblxc_so_LDADD = -lutil $(CAP_LIBS)
96 AM_LDFLAGS=-Wl,-E -Wl,-rpath -Wl,$(libdir)
97 LDADD=liblxc.so @CAP_LIBS@
99 lxc_attach_SOURCES = lxc_attach.c
100 lxc_cgroup_SOURCES = lxc_cgroup.c
101 lxc_checkpoint_SOURCES = lxc_checkpoint.c
102 lxc_console_SOURCES = lxc_console.c
103 lxc_execute_SOURCES = lxc_execute.c
104 lxc_freeze_SOURCES = lxc_freeze.c
105 lxc_info_SOURCES = lxc_info.c
106 lxc_init_SOURCES = lxc_init.c
107 lxc_monitor_SOURCES = lxc_monitor.c
108 lxc_restart_SOURCES = lxc_restart.c
109 lxc_start_SOURCES = lxc_start.c
110 lxc_stop_SOURCES = lxc_stop.c
111 lxc_unfreeze_SOURCES = lxc_unfreeze.c
112 lxc_unshare_SOURCES = lxc_unshare.c
113 lxc_wait_SOURCES = lxc_wait.c
114 lxc_kill_SOURCES = lxc_kill.c
116 install-exec-local: install-soPROGRAMS
117 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
118 /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
119 cd $(DESTDIR)$(libdir); \
120 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
123 $(RM) $(DESTDIR)$(libdir)/liblxc.so*
128 -$(CC) $(CPPFLAGS) -M -MT$@ $(LINUX_DIR)/arch/$(LINUX_SRCARCH)/include/asm/unistd.h >setns.P
129 -$(CPP) $(CPPFLAGS) -dM $(LINUX_DIR)/arch/$(LINUX_SRCARCH)/include/asm/unistd.h |grep setns > $@
132 $(RM) setns.h setns.P