]> git.proxmox.com Git - mirror_lxc.git/blame - src/lxc/Makefile.am
Do some cleanup in the lxc.h file
[mirror_lxc.git] / src / lxc / Makefile.am
CommitLineData
05f05512 1INCLUDES= -I$(top_srcdir)/src -DLXCPATH="\"$(localstatedir)/lxc\"" -DLXCBINDIR="\"$(bindir)\""
0ad19a3f 2lib_LTLIBRARIES = liblxc.la
3pkginclude_HEADERS = \
eae6543d 4 monitor.h \
0ad19a3f 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
15liblxc_la_SOURCES = \
16 create.c \
17 destroy.c \
18 start.c \
19 stop.c \
0ad19a3f 20 monitor.c monitor.h \
0ad19a3f 21 freezer.c \
925aaa31 22 checkpoint.c \
23 restart.c \
681799f9 24 version.c \
576f946d 25 cgroup.c cgroup.h \
0ad19a3f 26 lxc.h \
27 lxc_utils.h \
28 lxc_lock.c lxc_lock.h \
29 lxc_namespace.h \
30 lxc_conf.c lxc_conf.h \
31 lxc_list.h \
32 lxc_state.c lxc_state.h \
33 lxc_log.c lxc_log.h \
34 \
35 network.c network.h \
36 nl.c nl.h \
37 rtnl.c rtnl.h \
38 genl.c genl.h
39
40liblxc_la_LDFLAGS = -release @PACKAGE_VERSION@
5e97c3fc 41
42bin_SCRIPTS = \
22e761af 43 lxc-ps \
44 lxc-checkconfig
5e97c3fc 45
46bin_PROGRAMS = \
05f05512 47 lxc-init \
5e97c3fc 48 lxc-create \
49 lxc-destroy \
50 lxc-stop \
51 lxc-start \
52 lxc-execute \
53 lxc-monitor \
b3ec9713 54 lxc-wait \
5e97c3fc 55 lxc-console \
5e97c3fc 56 lxc-freeze \
0ad19a3f 57 lxc-info \
576f946d 58 lxc-cgroup \
187d3a35 59 lxc-unfreeze \
925aaa31 60 lxc-checkpoint \
61 lxc-restart \
681799f9 62 lxc-version
5e97c3fc 63
05f05512 64lxc_init_SOURCES = lxc_init.c
65lxc_init_LDADD = liblxc.la
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
5e97c3fc 94lxc_freeze_SOURCES = lxc_freeze.c
96f3e4eb 95lxc_freeze_LDADD = liblxc.la
5e97c3fc 96
97lxc_unfreeze_SOURCES = lxc_unfreeze.c
96f3e4eb 98lxc_unfreeze_LDADD = liblxc.la
187d3a35 99
576f946d 100lxc_cgroup_SOURCES = lxc_cgroup.c
101lxc_cgroup_LDADD = liblxc.la
681799f9 102
925aaa31 103lxc_checkpoint_SOURCES = lxc_checkpoint.c
104lxc_checkpoint_LDADD = liblxc.la
105
106lxc_restart_SOURCES = lxc_restart.c
107lxc_restart_LDADD = liblxc.la
108
681799f9 109lxc_version_SOURCES = lxc_version.c
110lxc_version_LDADD = liblxc.la
805415fc 111
112install-exec-local:
693dcea5 113 -@export PATH=$$PATH:/sbin:/usr/sbin && \
0780e343 114 setcap cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep $(bindir)/lxc-execute && \
115 setcap cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep $(bindir)/lxc-start && \
693dcea5 116 setcap cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep $(bindir)/lxc-restart && \
0780e343 117 setcap cap_sys_admin=ep $(bindir)/lxc-init && \
805415fc 118 mkdir -p $(prefix)/var/lxc && \
119 chmod ugo+rw $(prefix)/var/lxc || \
120 (echo && echo && \
121 echo "*****************************************************************" && \
122 echo "* *" && \
123 echo "* The installation failed to set file capabilities, that is ok, *" && \
124 echo "* but you won't have enough privilege to run the 'lxc' commands *" && \
125 echo "* and you will need to run them as 'root' yourself. *" && \
126 echo "* *" && \
127 echo "*****************************************************************" && \
96950ed0 128 echo && echo)