1 INCLUDES= -I$(top_srcdir)/src -DLXCPATH="\"$(localstatedir)/lxc\"" -DLXCBINDIR="\"$(bindir)\""
2 lib_LTLIBRARIES = liblxc.la
27 cr_plugin_columbia.c \
30 lxc_lock.c lxc_lock.h \
32 lxc_conf.c lxc_conf.h \
34 lxc_state.c lxc_state.h \
42 liblxc_la_LDFLAGS = -release @PACKAGE_VERSION@
68 lxc_init_SOURCES = lxc_init.c
69 lxc_init_LDADD = liblxc.la
71 lxc_create_SOURCES = lxc_create.c lxc_config.c lxc_config.h
72 lxc_create_LDADD = liblxc.la
74 lxc_destroy_SOURCES = lxc_destroy.c
75 lxc_destroy_LDADD = liblxc.la
77 lxc_start_SOURCES = lxc_start.c
78 lxc_start_LDADD = liblxc.la
80 lxc_stop_SOURCES = lxc_stop.c
81 lxc_stop_LDADD = liblxc.la
83 lxc_execute_SOURCES = lxc_execute.c lxc_config.c lxc_config.h
84 lxc_execute_LDADD = liblxc.la
86 lxc_monitor_SOURCES = lxc_monitor.c
87 lxc_monitor_LDADD = liblxc.la
89 lxc_wait_SOURCES = lxc_wait.c
90 lxc_wait_LDADD = liblxc.la
92 lxc_console_SOURCES = lxc_console.c
93 lxc_console_LDADD = liblxc.la
95 lxc_info_SOURCES = lxc_info.c
96 lxc_info_LDADD = liblxc.la
98 lxc_freeze_SOURCES = lxc_freeze.c
99 lxc_freeze_LDADD = liblxc.la
101 lxc_unfreeze_SOURCES = lxc_unfreeze.c
102 lxc_unfreeze_LDADD = liblxc.la
104 lxc_cgroup_SOURCES = lxc_cgroup.c
105 lxc_cgroup_LDADD = liblxc.la
107 lxc_checkpoint_SOURCES = lxc_checkpoint.c
108 lxc_checkpoint_LDADD = liblxc.la
110 lxc_restart_SOURCES = lxc_restart.c
111 lxc_restart_LDADD = liblxc.la
113 lxc_version_SOURCES = lxc_version.c
114 lxc_version_LDADD = liblxc.la
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 || \
125 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. *" && \
131 echo "*****************************************************************" && \