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 \
53 mainloop.c mainloop.h \
58 AM_CFLAGS=-I$(top_srcdir)/src \
59 -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
60 -DLXCPATH=\"$(LXCPATH)\" \
61 -DLXCINITDIR=\"$(LXCINITDIR)\"
63 liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
67 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
69 liblxc_so_LDADD = -lutil $(CAP_LIBS)
100 pkglibexec_PROGRAMS = \
105 AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
107 LDADD=liblxc.so @CAP_LIBS@
109 lxc_attach_SOURCES = lxc_attach.c
110 lxc_cgroup_SOURCES = lxc_cgroup.c
111 lxc_checkpoint_SOURCES = lxc_checkpoint.c
112 lxc_console_SOURCES = lxc_console.c
113 lxc_execute_SOURCES = lxc_execute.c
114 lxc_freeze_SOURCES = lxc_freeze.c
115 lxc_info_SOURCES = lxc_info.c
116 lxc_init_SOURCES = lxc_init.c
117 lxc_monitor_SOURCES = lxc_monitor.c
118 lxc_restart_SOURCES = lxc_restart.c
119 lxc_start_SOURCES = lxc_start.c
120 lxc_stop_SOURCES = lxc_stop.c
121 lxc_unfreeze_SOURCES = lxc_unfreeze.c
122 lxc_unshare_SOURCES = lxc_unshare.c
123 lxc_wait_SOURCES = lxc_wait.c
124 lxc_kill_SOURCES = lxc_kill.c
126 install-exec-local: install-soPROGRAMS
127 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
128 /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
129 cd $(DESTDIR)$(libdir); \
130 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
133 $(RM) $(DESTDIR)$(libdir)/liblxc.so*