Unverified Commit 609d2b2e by Stéphane Graber Committed by GitHub

Merge pull request #3629 from brauner/2021-01-22/static_binaries

build: allow to build all binaries statically via --enable-static-binaries
parents 2b6ad639 1d918801
...@@ -278,9 +278,14 @@ if test "$enable_openssl" = "auto" ; then ...@@ -278,9 +278,14 @@ if test "$enable_openssl" = "auto" ; then
fi fi
AM_CONDITIONAL([ENABLE_OPENSSL], [test "x$enable_openssl" = "xyes"]) AM_CONDITIONAL([ENABLE_OPENSSL], [test "x$enable_openssl" = "xyes"])
AC_ARG_ENABLE([static-binaries],
[AS_HELP_STRING([--enable-static-binaries], [build all binaries statically [default=no]])],
[enable_static_binaries=$enableval], [enable_static_binaries=no])
AM_CONDITIONAL([ENABLE_STATIC_BINARIES], [test "x$enable_static_binaries" = "xyes"])
AM_COND_IF([ENABLE_OPENSSL], AM_COND_IF([ENABLE_OPENSSL],
[AC_CHECK_HEADER([openssl/engine.h],[],[AC_MSG_ERROR([You must install the OpenSSL development package in order to compile lxc])]) [AC_CHECK_HEADER([openssl/engine.h],[],[AC_MSG_ERROR([You must install the OpenSSL development package in order to compile lxc])])
AC_SUBST([OPENSSL_LIBS], '-lssl -lcrypto')]) AM_COND_IF([ENABLE_STATIC_BINARIES], [AC_SUBST([OPENSSL_LIBS], '-lssl -lcrypto -ldl')], [AC_SUBST([OPENSSL_LIBS], '-lssl -lcrypto')])])
# SELinux # SELinux
AC_ARG_ENABLE([selinux], AC_ARG_ENABLE([selinux],
...@@ -433,6 +438,11 @@ AC_ARG_ENABLE([commands], ...@@ -433,6 +438,11 @@ AC_ARG_ENABLE([commands],
[enable_commands=$enableval], [enable_commands=yes]) [enable_commands=$enableval], [enable_commands=yes])
AM_CONDITIONAL([ENABLE_COMMANDS], [test "x$enable_commands" = "xyes"]) AM_CONDITIONAL([ENABLE_COMMANDS], [test "x$enable_commands" = "xyes"])
AC_ARG_ENABLE([static-binaries],
[AS_HELP_STRING([--enable-static-binaries], [build all binaries statically [default=no]])],
[enable_static_binaries=$enableval], [enable_static_binaries=no])
AM_CONDITIONAL([ENABLE_STATIC_BINARIES], [test "x$enable_static_binaries" = "xyes"])
# Build with ASAN commands # Build with ASAN commands
AC_ARG_ENABLE([asan], AC_ARG_ENABLE([asan],
[AS_HELP_STRING([--enable-asan], [build with address sanitizer enabled [default=no]])], [AS_HELP_STRING([--enable-asan], [build with address sanitizer enabled [default=no]])],
...@@ -1041,6 +1051,8 @@ Binaries ...@@ -1041,6 +1051,8 @@ Binaries
- lxc-user-nic: $enable_commands - lxc-user-nic: $enable_commands
- lxc-usernsexec: $enable_commands - lxc-usernsexec: $enable_commands
- static binaries: $enable_static_binaries
Environment: Environment:
- compiler: $CC - compiler: $CC
- distribution: $with_distro - distribution: $with_distro
......
...@@ -331,209 +331,13 @@ LDADD = liblxc.la \ ...@@ -331,209 +331,13 @@ LDADD = liblxc.la \
if ENABLE_TOOLS if ENABLE_TOOLS
lxc_attach_SOURCES = tools/lxc_attach.c \ lxc_attach_SOURCES = tools/lxc_attach.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
rexec.c rexec.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_attach_SOURCES += seccomp.c lxcseccomp.h
endif
lxc_autostart_SOURCES = tools/lxc_autostart.c \
tools/arguments.c tools/arguments.h \
af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_autostart_SOURCES += seccomp.c lxcseccomp.h
endif
lxc_cgroup_SOURCES = tools/lxc_cgroup.c \
tools/arguments.c tools/arguments.h \
af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_cgroup_SOURCES += seccomp.c lxcseccomp.h
endif
lxc_config_SOURCES = tools/lxc_config.c \
tools/arguments.c tools/arguments.h \
af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_config_SOURCES += seccomp.c lxcseccomp.h
endif
lxc_console_SOURCES = tools/lxc_console.c \ if ENABLE_STATIC_BINARIES
tools/arguments.c tools/arguments.h \ lxc_attach_SOURCES += $(liblxc_la_SOURCES)
af_unix.c af_unix.h \ lxc_attach_LDFLAGS = -all-static -pthread
else
lxc_attach_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \ caps.c caps.h \
cgroups/cgfsng.c \ cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \ cgroups/cgroup.c cgroups/cgroup.h \
...@@ -557,6 +361,7 @@ lxc_console_SOURCES = tools/lxc_console.c \ ...@@ -557,6 +361,7 @@ lxc_console_SOURCES = tools/lxc_console.c \
nl.c nl.h \ nl.c nl.h \
parse.c parse.h \ parse.c parse.h \
process_utils.c process_utils.h \ process_utils.c process_utils.h \
rexec.c rexec.h \
ringbuf.c ringbuf.h \ ringbuf.c ringbuf.h \
start.c start.h \ start.c start.h \
state.c state.h \ state.c state.h \
...@@ -578,12 +383,74 @@ lxc_console_SOURCES = tools/lxc_console.c \ ...@@ -578,12 +383,74 @@ lxc_console_SOURCES = tools/lxc_console.c \
uuid.c uuid.h \ uuid.c uuid.h \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_console_SOURCES += seccomp.c lxcseccomp.h lxc_attach_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_destroy_SOURCES = tools/lxc_destroy.c \ lxc_autostart_SOURCES = tools/lxc_autostart.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
if ENABLE_STATIC_BINARIES
lxc_autostart_SOURCES += $(liblxc_la_SOURCES)
lxc_autostart_LDFLAGS = -all-static -pthread
else
lxc_autostart_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_autostart_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_cgroup_SOURCES = tools/lxc_cgroup.c \
tools/arguments.c tools/arguments.h
if ENABLE_STATIC_BINARIES
lxc_cgroup_SOURCES += $(liblxc_la_SOURCES)
lxc_cgroup_LDFLAGS = -all-static -pthread
else
lxc_cgroup_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \ caps.c caps.h \
cgroups/cgfsng.c \ cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \ cgroups/cgroup.c cgroups/cgroup.h \
...@@ -628,62 +495,18 @@ lxc_destroy_SOURCES = tools/lxc_destroy.c \ ...@@ -628,62 +495,18 @@ lxc_destroy_SOURCES = tools/lxc_destroy.c \
uuid.c uuid.h \ uuid.c uuid.h \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_destroy_SOURCES += seccomp.c lxcseccomp.h lxc_cgroup_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_device_SOURCES = tools/lxc_device.c \ lxc_config_SOURCES = tools/lxc_config.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_device_SOURCES += seccomp.c lxcseccomp.h
endif
lxc_execute_SOURCES = tools/lxc_execute.c \ if ENABLE_STATIC_BINARIES
tools/arguments.c tools/arguments.h \ lxc_config_SOURCES += $(liblxc_la_SOURCES)
af_unix.c af_unix.h \ lxc_config_LDFLAGS = -all-static -pthread
else
lxc_config_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \ caps.c caps.h \
cgroups/cgfsng.c \ cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \ cgroups/cgroup.c cgroups/cgroup.h \
...@@ -728,112 +551,130 @@ lxc_execute_SOURCES = tools/lxc_execute.c \ ...@@ -728,112 +551,130 @@ lxc_execute_SOURCES = tools/lxc_execute.c \
uuid.c uuid.h \ uuid.c uuid.h \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_execute_SOURCES += seccomp.c lxcseccomp.h lxc_config_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_freeze_SOURCES = tools/lxc_freeze.c \ lxc_console_SOURCES = tools/lxc_console.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
caps.c caps.h \ if ENABLE_STATIC_BINARIES
cgroups/cgfsng.c \ lxc_console_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup.c cgroups/cgroup.h \ lxc_console_LDFLAGS = -all-static -pthread
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ else
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ lxc_console_SOURCES += af_unix.c af_unix.h \
commands.c commands.h \ caps.c caps.h \
commands_utils.c commands_utils.h \ cgroups/cgfsng.c \
conf.c conf.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile.c confile.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
confile_utils.c confile_utils.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
error.c error.h \ commands.c commands.h \
file_utils.c file_utils.h \ commands_utils.c commands_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ conf.c conf.h \
initutils.c initutils.h \ confile.c confile.h \
log.c log.h \ confile_utils.c confile_utils.h \
lxclock.c lxclock.h \ error.c error.h \
mainloop.c mainloop.h \ file_utils.c file_utils.h \
monitor.c monitor.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
namespace.c namespace.h \ initutils.c initutils.h \
network.c network.h \ log.c log.h \
nl.c nl.h \ lxclock.c lxclock.h \
parse.c parse.h \ mainloop.c mainloop.h \
process_utils.c process_utils.h \ monitor.c monitor.h \
ringbuf.c ringbuf.h \ namespace.c namespace.h \
start.c start.h \ network.c network.h \
state.c state.h \ nl.c nl.h \
storage/btrfs.c storage/btrfs.h \ parse.c parse.h \
storage/dir.c storage/dir.h \ process_utils.c process_utils.h \
storage/loop.c storage/loop.h \ ringbuf.c ringbuf.h \
storage/lvm.c storage/lvm.h \ start.c start.h \
storage/nbd.c storage/nbd.h \ state.c state.h \
storage/overlay.c storage/overlay.h \ storage/btrfs.c storage/btrfs.h \
storage/rbd.c storage/rbd.h \ storage/dir.c storage/dir.h \
storage/rsync.c storage/rsync.h \ storage/loop.c storage/loop.h \
storage/storage.c storage/storage.h \ storage/lvm.c storage/lvm.h \
storage/storage_utils.c storage/storage_utils.h \ storage/nbd.c storage/nbd.h \
storage/zfs.c storage/zfs.h \ storage/overlay.c storage/overlay.h \
string_utils.c string_utils.h \ storage/rbd.c storage/rbd.h \
sync.c sync.h \ storage/rsync.c storage/rsync.h \
terminal.c terminal.h \ storage/storage.c storage/storage.h \
utils.c utils.h \ storage/storage_utils.c storage/storage_utils.h \
uuid.c uuid.h \ storage/zfs.c storage/zfs.h \
$(LSM_SOURCES) string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_freeze_SOURCES += seccomp.c lxcseccomp.h lxc_console_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_info_SOURCES = tools/lxc_info.c \ lxc_destroy_SOURCES = tools/lxc_destroy.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
caps.c caps.h \ if ENABLE_STATIC_BINARIES
cgroups/cgfsng.c \ lxc_destroy_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup.c cgroups/cgroup.h \ lxc_destroy_LDFLAGS = -all-static -pthread
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ else
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ lxc_destroy_SOURCES += af_unix.c af_unix.h \
commands.c commands.h \ caps.c caps.h \
commands_utils.c commands_utils.h \ cgroups/cgfsng.c \
conf.c conf.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile.c confile.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
confile_utils.c confile_utils.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
error.c error.h \ commands.c commands.h \
file_utils.c file_utils.h \ commands_utils.c commands_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ conf.c conf.h \
initutils.c initutils.h \ confile.c confile.h \
log.c log.h \ confile_utils.c confile_utils.h \
lxclock.c lxclock.h \ error.c error.h \
mainloop.c mainloop.h \ file_utils.c file_utils.h \
monitor.c monitor.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
namespace.c namespace.h \ initutils.c initutils.h \
network.c network.h \ log.c log.h \
nl.c nl.h \ lxclock.c lxclock.h \
parse.c parse.h \ mainloop.c mainloop.h \
process_utils.c process_utils.h \ monitor.c monitor.h \
ringbuf.c ringbuf.h \ namespace.c namespace.h \
start.c start.h \ network.c network.h \
state.c state.h \ nl.c nl.h \
storage/btrfs.c storage/btrfs.h \ parse.c parse.h \
storage/dir.c storage/dir.h \ process_utils.c process_utils.h \
storage/loop.c storage/loop.h \ ringbuf.c ringbuf.h \
storage/lvm.c storage/lvm.h \ start.c start.h \
storage/nbd.c storage/nbd.h \ state.c state.h \
storage/overlay.c storage/overlay.h \ storage/btrfs.c storage/btrfs.h \
storage/rbd.c storage/rbd.h \ storage/dir.c storage/dir.h \
storage/rsync.c storage/rsync.h \ storage/loop.c storage/loop.h \
storage/storage.c storage/storage.h \ storage/lvm.c storage/lvm.h \
storage/storage_utils.c storage/storage_utils.h \ storage/nbd.c storage/nbd.h \
storage/zfs.c storage/zfs.h \ storage/overlay.c storage/overlay.h \
string_utils.c string_utils.h \ storage/rbd.c storage/rbd.h \
sync.c sync.h \ storage/rsync.c storage/rsync.h \
terminal.c terminal.h \ storage/storage.c storage/storage.h \
utils.c utils.h \ storage/storage_utils.c storage/storage_utils.h \
uuid.c uuid.h \ storage/zfs.c storage/zfs.h \
$(LSM_SOURCES) string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_info_SOURCES += seccomp.c lxcseccomp.h lxc_destroy_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_monitor_SOURCES = tools/lxc_monitor.c \ lxc_device_SOURCES = tools/lxc_device.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
if ENABLE_STATIC_BINARIES
lxc_device_SOURCES += $(liblxc_la_SOURCES)
lxc_device_LDFLAGS = -all-static -pthread
else
lxc_device_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \ caps.c caps.h \
cgroups/cgfsng.c \ cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \ cgroups/cgroup.c cgroups/cgroup.h \
...@@ -850,7 +691,6 @@ lxc_monitor_SOURCES = tools/lxc_monitor.c \ ...@@ -850,7 +691,6 @@ lxc_monitor_SOURCES = tools/lxc_monitor.c \
initutils.c initutils.h \ initutils.c initutils.h \
log.c log.h \ log.c log.h \
lxclock.c lxclock.h \ lxclock.c lxclock.h \
macro.h \
mainloop.c mainloop.h \ mainloop.c mainloop.h \
monitor.c monitor.h \ monitor.c monitor.h \
namespace.c namespace.h \ namespace.c namespace.h \
...@@ -879,113 +719,130 @@ lxc_monitor_SOURCES = tools/lxc_monitor.c \ ...@@ -879,113 +719,130 @@ lxc_monitor_SOURCES = tools/lxc_monitor.c \
uuid.c uuid.h \ uuid.c uuid.h \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_monitor_SOURCES += seccomp.c lxcseccomp.h lxc_device_SOURCES += seccomp.c lxcseccomp.h
endif endif
lxc_ls_SOURCES = tools/lxc_ls.c \
tools/arguments.c tools/arguments.h \
af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
memory_utils.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_ls_SOURCES += seccomp.c lxcseccomp.h
endif endif
lxc_copy_SOURCES = tools/lxc_copy.c \ lxc_execute_SOURCES = tools/lxc_execute.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
caps.c caps.h \ if ENABLE_STATIC_BINARIES
cgroups/cgfsng.c \ lxc_execute_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup.c cgroups/cgroup.h \ lxc_execute_LDFLAGS = -all-static -pthread
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ else
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ lxc_execute_SOURCES += af_unix.c af_unix.h \
commands.c commands.h \ caps.c caps.h \
commands_utils.c commands_utils.h \ cgroups/cgfsng.c \
conf.c conf.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile.c confile.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
confile_utils.c confile_utils.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
error.c error.h \ commands.c commands.h \
file_utils.c file_utils.h \ commands_utils.c commands_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ conf.c conf.h \
initutils.c initutils.h \ confile.c confile.h \
log.c log.h \ confile_utils.c confile_utils.h \
lxclock.c lxclock.h \ error.c error.h \
mainloop.c mainloop.h \ file_utils.c file_utils.h \
monitor.c monitor.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
namespace.c namespace.h \ initutils.c initutils.h \
network.c network.h \ log.c log.h \
nl.c nl.h \ lxclock.c lxclock.h \
parse.c parse.h \ mainloop.c mainloop.h \
process_utils.c process_utils.h \ monitor.c monitor.h \
ringbuf.c ringbuf.h \ namespace.c namespace.h \
start.c start.h \ network.c network.h \
state.c state.h \ nl.c nl.h \
storage/btrfs.c storage/btrfs.h \ parse.c parse.h \
storage/dir.c storage/dir.h \ process_utils.c process_utils.h \
storage/loop.c storage/loop.h \ ringbuf.c ringbuf.h \
storage/lvm.c storage/lvm.h \ start.c start.h \
storage/nbd.c storage/nbd.h \ state.c state.h \
storage/overlay.c storage/overlay.h \ storage/btrfs.c storage/btrfs.h \
storage/rbd.c storage/rbd.h \ storage/dir.c storage/dir.h \
storage/rsync.c storage/rsync.h \ storage/loop.c storage/loop.h \
storage/storage.c storage/storage.h \ storage/lvm.c storage/lvm.h \
storage/storage_utils.c storage/storage_utils.h \ storage/nbd.c storage/nbd.h \
storage/zfs.c storage/zfs.h \ storage/overlay.c storage/overlay.h \
string_utils.c string_utils.h \ storage/rbd.c storage/rbd.h \
sync.c sync.h \ storage/rsync.c storage/rsync.h \
terminal.c terminal.h \ storage/storage.c storage/storage.h \
utils.c utils.h \ storage/storage_utils.c storage/storage_utils.h \
uuid.c uuid.h \ storage/zfs.c storage/zfs.h \
$(LSM_SOURCES) string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_copy_SOURCES += seccomp.c lxcseccomp.h lxc_execute_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_start_SOURCES = tools/lxc_start.c \ lxc_freeze_SOURCES = tools/lxc_freeze.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
if ENABLE_STATIC_BINARIES
lxc_freeze_SOURCES += $(liblxc_la_SOURCES)
lxc_freeze_LDFLAGS = -all-static -pthread
else
lxc_freeze_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_freeze_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_info_SOURCES = tools/lxc_info.c \
tools/arguments.c tools/arguments.h
if ENABLE_STATIC_BINARIES
lxc_info_SOURCES += $(liblxc_la_SOURCES)
lxc_info_LDFLAGS = -all-static -pthread
else
lxc_info_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \ caps.c caps.h \
cgroups/cgfsng.c \ cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \ cgroups/cgroup.c cgroups/cgroup.h \
...@@ -1030,62 +887,75 @@ lxc_start_SOURCES = tools/lxc_start.c \ ...@@ -1030,62 +887,75 @@ lxc_start_SOURCES = tools/lxc_start.c \
uuid.c uuid.h \ uuid.c uuid.h \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_start_SOURCES += seccomp.c lxcseccomp.h lxc_info_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_stop_SOURCES = tools/lxc_stop.c \ lxc_monitor_SOURCES = tools/lxc_monitor.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
caps.c caps.h \ if ENABLE_STATIC_BINARIES
cgroups/cgfsng.c \ lxc_monitor_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup.c cgroups/cgroup.h \ lxc_monitor_LDFLAGS = -all-static -pthread
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ else
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ lxc_monitor_SOURCES += af_unix.c af_unix.h \
commands.c commands.h \ caps.c caps.h \
commands_utils.c commands_utils.h \ cgroups/cgfsng.c \
conf.c conf.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile.c confile.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
confile_utils.c confile_utils.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
error.c error.h \ commands.c commands.h \
file_utils.c file_utils.h \ commands_utils.c commands_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ conf.c conf.h \
initutils.c initutils.h \ confile.c confile.h \
log.c log.h \ confile_utils.c confile_utils.h \
lxclock.c lxclock.h \ error.c error.h \
mainloop.c mainloop.h \ file_utils.c file_utils.h \
monitor.c monitor.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
namespace.c namespace.h \ initutils.c initutils.h \
network.c network.h \ log.c log.h \
nl.c nl.h \ lxclock.c lxclock.h \
parse.c parse.h \ macro.h \
process_utils.c process_utils.h \ mainloop.c mainloop.h \
ringbuf.c ringbuf.h \ monitor.c monitor.h \
start.c start.h \ namespace.c namespace.h \
state.c state.h \ network.c network.h \
storage/btrfs.c storage/btrfs.h \ nl.c nl.h \
storage/dir.c storage/dir.h \ parse.c parse.h \
storage/loop.c storage/loop.h \ process_utils.c process_utils.h \
storage/lvm.c storage/lvm.h \ ringbuf.c ringbuf.h \
storage/nbd.c storage/nbd.h \ start.c start.h \
storage/overlay.c storage/overlay.h \ state.c state.h \
storage/rbd.c storage/rbd.h \ storage/btrfs.c storage/btrfs.h \
storage/rsync.c storage/rsync.h \ storage/dir.c storage/dir.h \
storage/storage.c storage/storage.h \ storage/loop.c storage/loop.h \
storage/storage_utils.c storage/storage_utils.h \ storage/lvm.c storage/lvm.h \
storage/zfs.c storage/zfs.h \ storage/nbd.c storage/nbd.h \
string_utils.c string_utils.h \ storage/overlay.c storage/overlay.h \
sync.c sync.h \ storage/rbd.c storage/rbd.h \
terminal.c terminal.h \ storage/rsync.c storage/rsync.h \
utils.c utils.h \ storage/storage.c storage/storage.h \
uuid.c uuid.h \ storage/storage_utils.c storage/storage_utils.h \
$(LSM_SOURCES) storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_stop_SOURCES += seccomp.c lxcseccomp.h lxc_monitor_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_top_SOURCES = tools/lxc_top.c \ lxc_ls_SOURCES = tools/lxc_ls.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
if ENABLE_STATIC_BINARIES
lxc_ls_SOURCES += $(liblxc_la_SOURCES)
lxc_ls_LDFLAGS = -all-static -pthread
else
lxc_ls_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \ caps.c caps.h \
cgroups/cgfsng.c \ cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \ cgroups/cgroup.c cgroups/cgroup.h \
...@@ -1103,6 +973,7 @@ lxc_top_SOURCES = tools/lxc_top.c \ ...@@ -1103,6 +973,7 @@ lxc_top_SOURCES = tools/lxc_top.c \
log.c log.h \ log.c log.h \
lxclock.c lxclock.h \ lxclock.c lxclock.h \
mainloop.c mainloop.h \ mainloop.c mainloop.h \
memory_utils.h \
monitor.c monitor.h \ monitor.c monitor.h \
namespace.c namespace.h \ namespace.c namespace.h \
network.c network.h \ network.c network.h \
...@@ -1130,164 +1001,74 @@ lxc_top_SOURCES = tools/lxc_top.c \ ...@@ -1130,164 +1001,74 @@ lxc_top_SOURCES = tools/lxc_top.c \
uuid.c uuid.h \ uuid.c uuid.h \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_top_SOURCES += seccomp.c lxcseccomp.h lxc_ls_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \ lxc_copy_SOURCES = tools/lxc_copy.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_unfreeze_SOURCES += seccomp.c lxcseccomp.h
endif
lxc_unshare_SOURCES = tools/lxc_unshare.c \ if ENABLE_STATIC_BINARIES
tools/arguments.c tools/arguments.h \ lxc_copy_SOURCES += $(liblxc_la_SOURCES)
af_unix.c af_unix.h \ lxc_copy_LDFLAGS = -all-static -pthread
caps.c caps.h \ else
cgroups/cgfsng.c \ lxc_copy_SOURCES += af_unix.c af_unix.h \
cgroups/cgroup.c cgroups/cgroup.h \ caps.c caps.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ cgroups/cgfsng.c \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ cgroups/cgroup.c cgroups/cgroup.h \
commands.c commands.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
commands_utils.c commands_utils.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
conf.c conf.h \ commands.c commands.h \
confile.c confile.h \ commands_utils.c commands_utils.h \
confile_utils.c confile_utils.h \ conf.c conf.h \
error.c error.h \ confile.c confile.h \
file_utils.c file_utils.h \ confile_utils.c confile_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ error.c error.h \
initutils.c initutils.h \ file_utils.c file_utils.h \
log.c log.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
lxclock.c lxclock.h \ initutils.c initutils.h \
mainloop.c mainloop.h \ log.c log.h \
monitor.c monitor.h \ lxclock.c lxclock.h \
namespace.c namespace.h \ mainloop.c mainloop.h \
network.c network.h \ monitor.c monitor.h \
nl.c nl.h \ namespace.c namespace.h \
parse.c parse.h \ network.c network.h \
process_utils.c process_utils.h \ nl.c nl.h \
ringbuf.c ringbuf.h \ parse.c parse.h \
start.c start.h \ process_utils.c process_utils.h \
state.c state.h \ ringbuf.c ringbuf.h \
storage/btrfs.c storage/btrfs.h \ start.c start.h \
storage/dir.c storage/dir.h \ state.c state.h \
storage/loop.c storage/loop.h \ storage/btrfs.c storage/btrfs.h \
storage/lvm.c storage/lvm.h \ storage/dir.c storage/dir.h \
storage/nbd.c storage/nbd.h \ storage/loop.c storage/loop.h \
storage/overlay.c storage/overlay.h \ storage/lvm.c storage/lvm.h \
storage/rbd.c storage/rbd.h \ storage/nbd.c storage/nbd.h \
storage/rsync.c storage/rsync.h \ storage/overlay.c storage/overlay.h \
storage/storage.c storage/storage.h \ storage/rbd.c storage/rbd.h \
storage/storage_utils.c storage/storage_utils.h \ storage/rsync.c storage/rsync.h \
storage/zfs.c storage/zfs.h \ storage/storage.c storage/storage.h \
string_utils.c string_utils.h \ storage/storage_utils.c storage/storage_utils.h \
sync.c sync.h \ storage/zfs.c storage/zfs.h \
syscall_numbers.h \ string_utils.c string_utils.h \
syscall_wrappers.h \ sync.c sync.h \
terminal.c terminal.h \ terminal.c terminal.h \
utils.c utils.h \ utils.c utils.h \
uuid.c uuid.h \ uuid.c uuid.h \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_unshare_SOURCES += seccomp.c lxcseccomp.h lxc_copy_SOURCES += seccomp.c lxcseccomp.h
endif endif
lxc_wait_SOURCES = tools/lxc_wait.c \
tools/arguments.c tools/arguments.h \
af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_wait_SOURCES += seccomp.c lxcseccomp.h
endif endif
lxc_create_SOURCES = tools/lxc_create.c \ lxc_start_SOURCES = tools/lxc_start.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
if ENABLE_STATIC_BINARIES
lxc_start_SOURCES += $(liblxc_la_SOURCES)
lxc_start_LDFLAGS = -all-static -pthread
else
lxc_start_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \ caps.c caps.h \
cgroups/cgfsng.c \ cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \ cgroups/cgroup.c cgroups/cgroup.h \
...@@ -1332,178 +1113,186 @@ lxc_create_SOURCES = tools/lxc_create.c \ ...@@ -1332,178 +1113,186 @@ lxc_create_SOURCES = tools/lxc_create.c \
uuid.c uuid.h \ uuid.c uuid.h \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_create_SOURCES += seccomp.c lxcseccomp.h lxc_start_SOURCES += seccomp.c lxcseccomp.h
endif endif
lxc_snapshot_SOURCES = tools/lxc_snapshot.c \
tools/arguments.c tools/arguments.h \
af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_snapshot_SOURCES += seccomp.c lxcseccomp.h
endif endif
lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \ lxc_stop_SOURCES = tools/lxc_stop.c \
tools/arguments.c tools/arguments.h \ tools/arguments.c tools/arguments.h
af_unix.c af_unix.h \
caps.c caps.h \ if ENABLE_STATIC_BINARIES
cgroups/cgfsng.c \ lxc_stop_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup.c cgroups/cgroup.h \ lxc_stop_LDFLAGS = -all-static -pthread
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ else
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ lxc_stop_SOURCES += af_unix.c af_unix.h \
commands.c commands.h \ caps.c caps.h \
commands_utils.c commands_utils.h \ cgroups/cgfsng.c \
conf.c conf.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile.c confile.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
confile_utils.c confile_utils.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
error.c error.h \ commands.c commands.h \
file_utils.c file_utils.h \ commands_utils.c commands_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ conf.c conf.h \
initutils.c initutils.h \ confile.c confile.h \
log.c log.h \ confile_utils.c confile_utils.h \
lxclock.c lxclock.h \ error.c error.h \
mainloop.c mainloop.h \ file_utils.c file_utils.h \
monitor.c monitor.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
namespace.c namespace.h \ initutils.c initutils.h \
network.c network.h \ log.c log.h \
nl.c nl.h \ lxclock.c lxclock.h \
parse.c parse.h \ mainloop.c mainloop.h \
process_utils.c process_utils.h \ monitor.c monitor.h \
ringbuf.c ringbuf.h \ namespace.c namespace.h \
start.c start.h \ network.c network.h \
state.c state.h \ nl.c nl.h \
storage/btrfs.c storage/btrfs.h \ parse.c parse.h \
storage/dir.c storage/dir.h \ process_utils.c process_utils.h \
storage/loop.c storage/loop.h \ ringbuf.c ringbuf.h \
storage/lvm.c storage/lvm.h \ start.c start.h \
storage/nbd.c storage/nbd.h \ state.c state.h \
storage/overlay.c storage/overlay.h \ storage/btrfs.c storage/btrfs.h \
storage/rbd.c storage/rbd.h \ storage/dir.c storage/dir.h \
storage/rsync.c storage/rsync.h \ storage/loop.c storage/loop.h \
storage/storage.c storage/storage.h \ storage/lvm.c storage/lvm.h \
storage/storage_utils.c storage/storage_utils.h \ storage/nbd.c storage/nbd.h \
storage/zfs.c storage/zfs.h \ storage/overlay.c storage/overlay.h \
string_utils.c string_utils.h \ storage/rbd.c storage/rbd.h \
sync.c sync.h \ storage/rsync.c storage/rsync.h \
terminal.c terminal.h \ storage/storage.c storage/storage.h \
utils.c utils.h \ storage/storage_utils.c storage/storage_utils.h \
uuid.c uuid.h \ storage/zfs.c storage/zfs.h \
$(LSM_SOURCES) string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_checkpoint_SOURCES += seccomp.c lxcseccomp.h lxc_stop_SOURCES += seccomp.c lxcseccomp.h
endif endif
endif endif
if ENABLE_COMMANDS lxc_top_SOURCES = tools/lxc_top.c \
# Binaries shipping with liblxc tools/arguments.c tools/arguments.h
init_lxc_SOURCES = cmd/lxc_init.c \
af_unix.c af_unix.h \ if ENABLE_STATIC_BINARIES
lxc_top_SOURCES += $(liblxc_la_SOURCES)
lxc_top_LDFLAGS = -all-static -pthread
else
lxc_top_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \ caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \ error.c error.h \
file_utils.c file_utils.h \ file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \ initutils.c initutils.h \
log.c log.h \ log.c log.h \
macro.h \ lxclock.c lxclock.h \
memory_utils.h \ mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \ namespace.c namespace.h \
string_utils.c string_utils.h network.c network.h \
init_lxc_LDFLAGS = -pthread nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_top_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_monitord_SOURCES = cmd/lxc_monitord.c \ lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \
af_unix.c af_unix.h \ tools/arguments.c tools/arguments.h
caps.c caps.h \
cgroups/cgfsng.c \ if ENABLE_STATIC_BINARIES
cgroups/cgroup.c cgroups/cgroup.h \ lxc_unfreeze_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ lxc_unfreeze_LDFLAGS = -all-static -pthread
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ else
commands.c commands.h \ lxc_unfreeze_SOURCES += af_unix.c af_unix.h \
commands_utils.c commands_utils.h \ caps.c caps.h \
conf.c conf.h \ cgroups/cgfsng.c \
confile.c confile.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile_utils.c confile_utils.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
error.c error.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
file_utils.c file_utils.h \ commands.c commands.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ commands_utils.c commands_utils.h \
initutils.c initutils.h \ conf.c conf.h \
log.c log.h \ confile.c confile.h \
lxclock.c lxclock.h \ confile_utils.c confile_utils.h \
mainloop.c mainloop.h \ error.c error.h \
monitor.c monitor.h \ file_utils.c file_utils.h \
namespace.c namespace.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
network.c network.h \ initutils.c initutils.h \
nl.c nl.h \ log.c log.h \
parse.c parse.h \ lxclock.c lxclock.h \
process_utils.c process_utils.h \ mainloop.c mainloop.h \
ringbuf.c ringbuf.h \ monitor.c monitor.h \
start.c start.h \ namespace.c namespace.h \
state.c state.h \ network.c network.h \
storage/btrfs.c storage/btrfs.h \ nl.c nl.h \
storage/dir.c storage/dir.h \ parse.c parse.h \
storage/loop.c storage/loop.h \ process_utils.c process_utils.h \
storage/lvm.c storage/lvm.h \ ringbuf.c ringbuf.h \
storage/nbd.c storage/nbd.h \ start.c start.h \
storage/overlay.c storage/overlay.h \ state.c state.h \
storage/rbd.c storage/rbd.h \ storage/btrfs.c storage/btrfs.h \
storage/rsync.c storage/rsync.h \ storage/dir.c storage/dir.h \
storage/storage.c storage/storage.h \ storage/loop.c storage/loop.h \
storage/storage_utils.c storage/storage_utils.h \ storage/lvm.c storage/lvm.h \
storage/zfs.c storage/zfs.h \ storage/nbd.c storage/nbd.h \
string_utils.c string_utils.h \ storage/overlay.c storage/overlay.h \
sync.c sync.h \ storage/rbd.c storage/rbd.h \
syscall_numbers.h \ storage/rsync.c storage/rsync.h \
terminal.c terminal.h \ storage/storage.c storage/storage.h \
utils.c utils.h \ storage/storage_utils.c storage/storage_utils.h \
uuid.c uuid.h \ storage/zfs.c storage/zfs.h \
$(LSM_SOURCES) string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_monitord_SOURCES += seccomp.c lxcseccomp.h lxc_unfreeze_SOURCES += seccomp.c lxcseccomp.h
endif endif
endif
lxc_unshare_SOURCES = tools/lxc_unshare.c \
tools/arguments.c tools/arguments.h
lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \ if ENABLE_STATIC_BINARIES
af_unix.c af_unix.h \ lxc_unshare_SOURCES += $(liblxc_la_SOURCES)
lxc_unshare_LDFLAGS = -all-static -pthread
else
lxc_unshare_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \ caps.c caps.h \
cgroups/cgfsng.c \ cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \ cgroups/cgroup.c cgroups/cgroup.h \
...@@ -1521,7 +1310,6 @@ lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \ ...@@ -1521,7 +1310,6 @@ lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \
log.c log.h \ log.c log.h \
lxclock.c lxclock.h \ lxclock.c lxclock.h \
mainloop.c mainloop.h \ mainloop.c mainloop.h \
memory_utils.h \
monitor.c monitor.h \ monitor.c monitor.h \
namespace.c namespace.h \ namespace.c namespace.h \
network.c network.h \ network.c network.h \
...@@ -1551,62 +1339,423 @@ lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \ ...@@ -1551,62 +1339,423 @@ lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \
uuid.c uuid.h \ uuid.c uuid.h \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_user_nic_SOURCES += seccomp.c lxcseccomp.h lxc_unshare_SOURCES += seccomp.c lxcseccomp.h
endif
endif endif
lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \ lxc_wait_SOURCES = tools/lxc_wait.c \
af_unix.c af_unix.h \ tools/arguments.c tools/arguments.h
caps.c caps.h \
cgroups/cgfsng.c \ if ENABLE_STATIC_BINARIES
cgroups/cgroup.c cgroups/cgroup.h \ lxc_wait_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ lxc_wait_LDFLAGS = -all-static -pthread
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ else
commands.c commands.h \ lxc_wait_SOURCES += af_unix.c af_unix.h \
commands_utils.c commands_utils.h \ caps.c caps.h \
conf.c conf.h \ cgroups/cgfsng.c \
confile.c confile.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile_utils.c confile_utils.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
error.c error.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
file_utils.c file_utils.h \ commands.c commands.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ commands_utils.c commands_utils.h \
initutils.c initutils.h \ conf.c conf.h \
list.h \ confile.c confile.h \
log.c log.h \ confile_utils.c confile_utils.h \
lxclock.c lxclock.h \ error.c error.h \
macro.h \ file_utils.c file_utils.h \
mainloop.c mainloop.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
memory_utils.h \ initutils.c initutils.h \
monitor.c monitor.h \ log.c log.h \
namespace.c namespace.h \ lxclock.c lxclock.h \
network.c network.h \ mainloop.c mainloop.h \
nl.c nl.h \ monitor.c monitor.h \
parse.c parse.h \ namespace.c namespace.h \
process_utils.c process_utils.h \ network.c network.h \
ringbuf.c ringbuf.h \ nl.c nl.h \
start.c start.h \ parse.c parse.h \
state.c state.h \ process_utils.c process_utils.h \
storage/btrfs.c storage/btrfs.h \ ringbuf.c ringbuf.h \
storage/dir.c storage/dir.h \ start.c start.h \
storage/loop.c storage/loop.h \ state.c state.h \
storage/lvm.c storage/lvm.h \ storage/btrfs.c storage/btrfs.h \
storage/nbd.c storage/nbd.h \ storage/dir.c storage/dir.h \
storage/overlay.c storage/overlay.h \ storage/loop.c storage/loop.h \
storage/rbd.c storage/rbd.h \ storage/lvm.c storage/lvm.h \
storage/rsync.c storage/rsync.h \ storage/nbd.c storage/nbd.h \
storage/storage.c storage/storage.h \ storage/overlay.c storage/overlay.h \
storage/storage_utils.c storage/storage_utils.h \ storage/rbd.c storage/rbd.h \
storage/zfs.c storage/zfs.h \ storage/rsync.c storage/rsync.h \
string_utils.c string_utils.h \ storage/storage.c storage/storage.h \
sync.c sync.h \ storage/storage_utils.c storage/storage_utils.h \
syscall_wrappers.h \ storage/zfs.c storage/zfs.h \
terminal.c terminal.h \ string_utils.c string_utils.h \
utils.c utils.h \ sync.c sync.h \
uuid.c uuid.h \ terminal.c terminal.h \
$(LSM_SOURCES) utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_wait_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_create_SOURCES = tools/lxc_create.c \
tools/arguments.c tools/arguments.h
if ENABLE_STATIC_BINARIES
lxc_create_SOURCES += $(liblxc_la_SOURCES)
lxc_create_LDFLAGS = -all-static -pthread
else
lxc_create_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_create_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_snapshot_SOURCES = tools/lxc_snapshot.c \
tools/arguments.c tools/arguments.h
if ENABLE_STATIC_BINARIES
lxc_snapshot_SOURCES += $(liblxc_la_SOURCES)
lxc_snapshot_LDFLAGS = -all-static -pthread
else
lxc_snapshot_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_snapshot_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \
tools/arguments.c tools/arguments.h
if ENABLE_STATIC_BINARIES
lxc_checkpoint_SOURCES += $(liblxc_la_SOURCES)
lxc_checkpoint_LDFLAGS = -all-static -pthread
else
lxc_checkpoint_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_checkpoint_SOURCES += seccomp.c lxcseccomp.h
endif
endif
endif
if ENABLE_COMMANDS
# Binaries shipping with liblxc
init_lxc_SOURCES = cmd/lxc_init.c \
af_unix.c af_unix.h \
caps.c caps.h \
error.c error.h \
file_utils.c file_utils.h \
initutils.c initutils.h \
log.c log.h \
macro.h \
memory_utils.h \
namespace.c namespace.h \
string_utils.c string_utils.h
init_lxc_LDFLAGS = -pthread
lxc_monitord_SOURCES = cmd/lxc_monitord.c
if ENABLE_STATIC_BINARIES
lxc_monitord_SOURCES += $(liblxc_la_SOURCES)
lxc_monitord_LDFLAGS = -all-static -pthread
else
lxc_monitord_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
syscall_numbers.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_monitord_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_user_nic_SOURCES = cmd/lxc_user_nic.c
if ENABLE_STATIC_BINARIES
lxc_user_nic_SOURCES += $(liblxc_la_SOURCES)
lxc_user_nic_LDFLAGS = -all-static -pthread
else
lxc_user_nic_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
log.c log.h \
lxclock.c lxclock.h \
mainloop.c mainloop.h \
memory_utils.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
syscall_numbers.h \
syscall_wrappers.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP
lxc_user_nic_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c
if ENABLE_STATIC_BINARIES
lxc_usernsexec_SOURCES += $(liblxc_la_SOURCES)
lxc_usernsexec_LDFLAGS = -all-static -pthread
else
lxc_usernsexec_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
commands.c commands.h \
commands_utils.c commands_utils.h \
conf.c conf.h \
confile.c confile.h \
confile_utils.c confile_utils.h \
error.c error.h \
file_utils.c file_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
initutils.c initutils.h \
list.h \
log.c log.h \
lxclock.c lxclock.h \
macro.h \
mainloop.c mainloop.h \
memory_utils.h \
monitor.c monitor.h \
namespace.c namespace.h \
network.c network.h \
nl.c nl.h \
parse.c parse.h \
process_utils.c process_utils.h \
ringbuf.c ringbuf.h \
start.c start.h \
state.c state.h \
storage/btrfs.c storage/btrfs.h \
storage/dir.c storage/dir.h \
storage/loop.c storage/loop.h \
storage/lvm.c storage/lvm.h \
storage/nbd.c storage/nbd.h \
storage/overlay.c storage/overlay.h \
storage/rbd.c storage/rbd.h \
storage/rsync.c storage/rsync.h \
storage/storage.c storage/storage.h \
storage/storage_utils.c storage/storage_utils.h \
storage/zfs.c storage/zfs.h \
string_utils.c string_utils.h \
sync.c sync.h \
syscall_wrappers.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_usernsexec_SOURCES += seccomp.c lxcseccomp.h lxc_usernsexec_SOURCES += seccomp.c lxcseccomp.h
endif endif
endif endif
endif
if ENABLE_TOOLS if ENABLE_TOOLS
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <unistd.h> #include <unistd.h>
#include "af_unix.h" #include "af_unix.h"
#include "cgroup.h" #include "cgroups/cgroup.h"
#include "cgroups/cgroup2_devices.h" #include "cgroups/cgroup2_devices.h"
#include "commands.h" #include "commands.h"
#include "commands_utils.h" #include "commands_utils.h"
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include "af_unix.h" #include "af_unix.h"
#include "caps.h" #include "caps.h"
#include "cgroup.h" #include "cgroups/cgroup.h"
#include "conf.h" #include "conf.h"
#include "config.h" #include "config.h"
#include "confile.h" #include "confile.h"
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
#include "process_utils.h" #include "process_utils.h"
#include "ringbuf.h" #include "ringbuf.h"
#include "start.h" #include "start.h"
#include "storage.h" #include "storage/storage.h"
#include "storage/overlay.h" #include "storage/overlay.h"
#include "syscall_wrappers.h" #include "syscall_wrappers.h"
#include "terminal.h" #include "terminal.h"
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include "memory_utils.h" #include "memory_utils.h"
#include "network.h" #include "network.h"
#include "parse.h" #include "parse.h"
#include "storage.h" #include "storage/storage.h"
#include "utils.h" #include "utils.h"
#if HAVE_SYS_PERSONALITY_H #if HAVE_SYS_PERSONALITY_H
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include "config.h"
#include "cgroups/cgroup.h"
#include "compiler.h" #include "compiler.h"
#include "string_utils.h" #include "string_utils.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment