]> git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/Makefile.am
Remove annoying warnings and fix tty for restart
[mirror_lxc.git] / src / lxc / Makefile.am
1 INCLUDES= -I$(top_srcdir)/src -DLXCPATH="\"$(localstatedir)/lxc\"" -DLXCBINDIR="\"$(bindir)\""
2 lib_LTLIBRARIES = liblxc.la
3 pkginclude_HEADERS = \
4 monitor.h \
5 lxc.h \
6 lxc_cgroup.h \
7 lxc_conf.h \
8 lxc_list.h \
9 lxc_lock.h \
10 lxc_log.h \
11 lxc_namespace.h \
12 lxc_state.h \
13 lxc_utils.h
14
15 liblxc_la_SOURCES = \
16 create.c \
17 destroy.c \
18 start.c \
19 stop.c \
20 monitor.c monitor.h \
21 freezer.c \
22 checkpoint.c \
23 restart.c \
24 version.c \
25 error.h error.c \
26 cgroup.c cgroup.h \
27 cr_plugin_columbia.c \
28 lxc.h \
29 lxc_utils.h \
30 lxc_lock.c lxc_lock.h \
31 lxc_namespace.h \
32 lxc_conf.c lxc_conf.h \
33 lxc_list.h \
34 lxc_state.c lxc_state.h \
35 lxc_log.c lxc_log.h \
36 \
37 network.c network.h \
38 nl.c nl.h \
39 rtnl.c rtnl.h \
40 genl.c genl.h
41
42 liblxc_la_LDFLAGS = -release @PACKAGE_VERSION@
43
44 bin_SCRIPTS = \
45 lxc-ps \
46 lxc-ls \
47 lxc-netstat \
48 lxc-checkconfig
49
50 bin_PROGRAMS = \
51 lxc-init \
52 lxc-create \
53 lxc-destroy \
54 lxc-stop \
55 lxc-start \
56 lxc-execute \
57 lxc-monitor \
58 lxc-wait \
59 lxc-console \
60 lxc-freeze \
61 lxc-info \
62 lxc-cgroup \
63 lxc-unfreeze \
64 lxc-checkpoint \
65 lxc-restart \
66 lxc-version
67
68 lxc_init_SOURCES = lxc_init.c
69 lxc_init_LDADD = liblxc.la
70
71 lxc_create_SOURCES = lxc_create.c lxc_config.c lxc_config.h
72 lxc_create_LDADD = liblxc.la
73
74 lxc_destroy_SOURCES = lxc_destroy.c
75 lxc_destroy_LDADD = liblxc.la
76
77 lxc_start_SOURCES = lxc_start.c
78 lxc_start_LDADD = liblxc.la
79
80 lxc_stop_SOURCES = lxc_stop.c
81 lxc_stop_LDADD = liblxc.la
82
83 lxc_execute_SOURCES = lxc_execute.c lxc_config.c lxc_config.h
84 lxc_execute_LDADD = liblxc.la
85
86 lxc_monitor_SOURCES = lxc_monitor.c
87 lxc_monitor_LDADD = liblxc.la
88
89 lxc_wait_SOURCES = lxc_wait.c
90 lxc_wait_LDADD = liblxc.la
91
92 lxc_console_SOURCES = lxc_console.c
93 lxc_console_LDADD = liblxc.la
94
95 lxc_info_SOURCES = lxc_info.c
96 lxc_info_LDADD = liblxc.la
97
98 lxc_freeze_SOURCES = lxc_freeze.c
99 lxc_freeze_LDADD = liblxc.la
100
101 lxc_unfreeze_SOURCES = lxc_unfreeze.c
102 lxc_unfreeze_LDADD = liblxc.la
103
104 lxc_cgroup_SOURCES = lxc_cgroup.c
105 lxc_cgroup_LDADD = liblxc.la
106
107 lxc_checkpoint_SOURCES = lxc_checkpoint.c
108 lxc_checkpoint_LDADD = liblxc.la
109
110 lxc_restart_SOURCES = lxc_restart.c
111 lxc_restart_LDADD = liblxc.la
112
113 lxc_version_SOURCES = lxc_version.c
114 lxc_version_LDADD = liblxc.la
115
116 install-exec-local:
117 -@export PATH=$$PATH:/sbin:/usr/sbin && \
118 setcap cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep $(bindir)/lxc-execute && \
119 setcap cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep $(bindir)/lxc-start && \
120 setcap cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep $(bindir)/lxc-restart && \
121 setcap cap_sys_admin=ep $(bindir)/lxc-init && \
122 mkdir -p $(prefix)/var/lxc && \
123 chmod ugo+rw $(prefix)/var/lxc || \
124 (echo && echo && \
125 echo "*****************************************************************" && \
126 echo "* *" && \
127 echo "* The installation failed to set file capabilities, that is ok, *" && \
128 echo "* but you won't have enough privilege to run the 'lxc' commands *" && \
129 echo "* and you will need to run them as 'root' yourself. *" && \
130 echo "* *" && \
131 echo "*****************************************************************" && \
132 echo && echo)