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