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