]> git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/Makefile.am
lxc: introduce lxc-kill command (v4)
[mirror_lxc.git] / src / lxc / Makefile.am
1 pkginclude_HEADERS = \
2 start.h \
3 console.h \
4 error.h \
5 monitor.h \
6 utils.h \
7 namespace.h \
8 lxc.h \
9 cgroup.h \
10 conf.h \
11 list.h \
12 log.h \
13 state.h
14
15 sodir=$(libdir)
16 # use PROGRAMS to avoid complains from automake
17 so_PROGRAMS = liblxc.so
18
19 liblxc_so_SOURCES = \
20 arguments.c arguments.h \
21 commands.c commands.h \
22 start.c start.h \
23 stop.c \
24 monitor.c monitor.h \
25 console.c \
26 freezer.c \
27 checkpoint.c \
28 restart.c \
29 error.h error.c \
30 parse.c parse.h \
31 cgroup.c cgroup.h \
32 lxc.h \
33 utils.c utils.h \
34 namespace.h namespace.c \
35 conf.c conf.h \
36 confile.c confile.h \
37 list.h \
38 state.c state.h \
39 log.c log.h \
40 \
41 network.c network.h \
42 nl.c nl.h \
43 rtnl.c rtnl.h \
44 genl.c genl.h \
45 \
46 mainloop.c mainloop.h \
47 af_unix.c af_unix.h \
48 \
49 utmp.c utmp.h
50
51 AM_CFLAGS=-I$(top_srcdir)/src
52
53 liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
54
55 liblxc_so_LDFLAGS = \
56 -shared \
57 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
58
59 liblxc_so_LDADD = -lutil
60
61 bin_SCRIPTS = \
62 lxc-ps \
63 lxc-netstat \
64 lxc-ls \
65 lxc-checkconfig \
66 lxc-setcap \
67 lxc-version \
68 lxc-create \
69 lxc-destroy
70
71 bin_PROGRAMS = \
72 lxc-attach \
73 lxc-unshare \
74 lxc-stop \
75 lxc-start \
76 lxc-execute \
77 lxc-monitor \
78 lxc-wait \
79 lxc-console \
80 lxc-freeze \
81 lxc-info \
82 lxc-cgroup \
83 lxc-unfreeze \
84 lxc-checkpoint \
85 lxc-restart \
86 lxc-kill
87
88 libexec_PROGRAMS = \
89 lxc-init
90
91 AM_LDFLAGS=-Wl,-E -Wl,-rpath -Wl,$(libdir)
92 LDADD=liblxc.so
93
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
110
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
116
117 uninstall-local:
118 $(RM) $(DESTDIR)$(libdir)/liblxc.so*