16 # use PROGRAMS to avoid complains from automake
17 so_PROGRAMS = liblxc.so
20 arguments.c arguments.h \
21 commands.c commands.h \
34 namespace.h namespace.c \
46 mainloop.c mainloop.h \
51 AM_CFLAGS=-I$(top_srcdir)/src
53 liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
57 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
59 liblxc_so_LDADD = -lutil
91 AM_LDFLAGS=-Wl,-E -Wl,-rpath -Wl,$(libdir)
94 lxc_attach_SOURCES = lxc_attach.c
95 lxc_cgroup_SOURCES = lxc_cgroup.c
96 lxc_checkpoint_SOURCES = lxc_checkpoint.c
97 lxc_console_SOURCES = lxc_console.c
98 lxc_execute_SOURCES = lxc_execute.c
99 lxc_freeze_SOURCES = lxc_freeze.c
100 lxc_info_SOURCES = lxc_info.c
101 lxc_init_SOURCES = lxc_init.c
102 lxc_monitor_SOURCES = lxc_monitor.c
103 lxc_restart_SOURCES = lxc_restart.c
104 lxc_start_SOURCES = lxc_start.c
105 lxc_stop_SOURCES = lxc_stop.c
106 lxc_unfreeze_SOURCES = lxc_unfreeze.c
107 lxc_unshare_SOURCES = lxc_unshare.c
108 lxc_wait_SOURCES = lxc_wait.c
109 lxc_kill_SOURCES = lxc_kill.c
111 install-exec-local: install-soPROGRAMS
112 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
113 /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
114 cd $(DESTDIR)$(libdir); \
115 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
118 $(RM) $(DESTDIR)$(libdir)/liblxc.so*