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