]> git.proxmox.com Git - mirror_lxc.git/blame - src/lxc/Makefile.am
man update lxc.conf
[mirror_lxc.git] / src / lxc / Makefile.am
CommitLineData
0ad19a3f 1pkginclude_HEADERS = \
1bc5cc8c 2 start.h \
d45fdd27 3 console.h \
85a31821 4 error.h \
eae6543d 5 monitor.h \
61ba7fe6
DL
6 utils.h \
7 namespace.h \
0ad19a3f 8 lxc.h \
170d528e 9 cgroup.h \
13954cce 10 conf.h \
951cc719 11 list.h \
731cc33f 12 log.h \
35d2c3e7 13 state.h
61ba7fe6 14
5b46e19c
CLG
15sodir=$(libdir)
16# use PROGRAMS to avoid complains from automake
17so_PROGRAMS = liblxc.so
0ad19a3f 18
5b46e19c 19liblxc_so_SOURCES = \
cda02a28 20 arguments.c arguments.h \
724e753c 21 commands.c commands.h \
563f2f2c 22 start.c start.h \
0ad19a3f 23 stop.c \
0ad19a3f 24 monitor.c monitor.h \
b0a33c1e 25 console.c \
0ad19a3f 26 freezer.c \
925aaa31 27 checkpoint.c \
28 restart.c \
58412580 29 error.h error.c \
b2718c72 30 parse.c parse.h \
576f946d 31 cgroup.c cgroup.h \
0ad19a3f 32 lxc.h \
e3642c43 33 utils.c utils.h \
5bb3ba8a 34 namespace.h namespace.c \
13954cce 35 conf.c conf.h \
df83bf6f 36 confile.c confile.h \
951cc719 37 list.h \
35d2c3e7 38 state.c state.h \
731cc33f 39 log.c log.h \
0ad19a3f 40 \
41 network.c network.h \
42 nl.c nl.h \
43 rtnl.c rtnl.h \
13832f48 44 genl.c genl.h \
45 \
b0a33c1e 46 mainloop.c mainloop.h \
563f2f2c
DL
47 af_unix.c af_unix.h \
48 \
49 utmp.c utmp.h
0ad19a3f 50
b9f94fc1
DL
51AM_CFLAGS=-I$(top_srcdir)/src
52
53liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS)
5b46e19c
CLG
54
55liblxc_so_LDFLAGS = \
56 -shared \
57 -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
58
59liblxc_so_LDADD = -lutil
5e97c3fc 60
61bin_SCRIPTS = \
22e761af 62 lxc-ps \
0387b7a0 63 lxc-netstat \
13832f48 64 lxc-ls \
237315ff 65 lxc-checkconfig \
3eae9733 66 lxc-setcap \
ab2d32f8
DL
67 lxc-version \
68 lxc-create \
69 lxc-destroy
5e97c3fc 70
71bin_PROGRAMS = \
81c75799 72 lxc-attach \
13832f48 73 lxc-unshare \
5e97c3fc 74 lxc-stop \
75 lxc-start \
76 lxc-execute \
77 lxc-monitor \
b3ec9713 78 lxc-wait \
5e97c3fc 79 lxc-console \
5e97c3fc 80 lxc-freeze \
0ad19a3f 81 lxc-info \
576f946d 82 lxc-cgroup \
187d3a35 83 lxc-unfreeze \
925aaa31 84 lxc-checkpoint \
3eae9733 85 lxc-restart
5e97c3fc 86
a25ba7aa
GT
87libexec_PROGRAMS = \
88 lxc-init
89
b9f94fc1
DL
90AM_LDFLAGS=-Wl,-E -Wl,-rpath -Wl,$(libdir)
91LDADD=liblxc.so
05f05512 92
81c75799 93lxc_attach_SOURCES = lxc_attach.c
b9f94fc1
DL
94lxc_cgroup_SOURCES = lxc_cgroup.c
95lxc_checkpoint_SOURCES = lxc_checkpoint.c
96lxc_console_SOURCES = lxc_console.c
df83bf6f 97lxc_execute_SOURCES = lxc_execute.c
5e97c3fc 98lxc_freeze_SOURCES = lxc_freeze.c
b9f94fc1
DL
99lxc_info_SOURCES = lxc_info.c
100lxc_init_SOURCES = lxc_init.c
101lxc_monitor_SOURCES = lxc_monitor.c
925aaa31 102lxc_restart_SOURCES = lxc_restart.c
b9f94fc1
DL
103lxc_start_SOURCES = lxc_start.c
104lxc_stop_SOURCES = lxc_stop.c
105lxc_unfreeze_SOURCES = lxc_unfreeze.c
106lxc_unshare_SOURCES = lxc_unshare.c
107lxc_wait_SOURCES = lxc_wait.c
5b46e19c
CLG
108
109install-exec-local: install-soPROGRAMS
110 mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
111 /sbin/ldconfig -l $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
112 cd $(DESTDIR)$(libdir); \
113 ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
114
115uninstall-local:
116 $(RM) $(DESTDIR)$(libdir)/liblxc.so*