X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile.am;h=3ad276d8389fb609b7faa348ff612ec886e8fdae;hb=1de8150315c0e1c753ccc4e6023bdb243333b7bd;hp=855c61c2ece9a4c822cd9be841ba144701719a20;hpb=2e7cd2944856568dc1d8f2c8a721003516c75e36;p=mirror_lxcfs.git diff --git a/Makefile.am b/Makefile.am index 855c61c..3ad276d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,31 +1,32 @@ ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = tests share -DIST_SUBDIRS = tests share +SUBDIRS = tests share config +DIST_SUBDIRS = tests share config AM_CFLAGS = -Wall -ggdb -D_GNU_SOURCE -DSBINDIR=\"$(SBINDIR)\" -pthread AM_CFLAGS += $(FUSE_CFLAGS) +AM_CFLAGS += -DLIBDIR=\"$(LIBDIR)\" AM_LDFLAGS = $(FUSE_LIBS) -pthread #AM_CFLAGS += -DDEBUG -AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" +AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" -liblxcfs_la_SOURCES = bindings.c cpuset.c bindings.h +liblxcfs_la_SOURCES = macro.h bindings.c cpuset.c bindings.h liblxcfs_la_CFLAGS = $(AM_CFLAGS) -liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -shared +liblxcfs_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared -liblxcfstest_la_SOURCES = bindings.c cpuset.c bindings.h +liblxcfstest_la_SOURCES = bindings.c cpuset.c bindings.h macro.h liblxcfstest_la_CFLAGS = $(AM_CFLAGS) -DRELOADTEST -liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -shared +liblxcfstest_la_LDFLAGS = $(AM_CFLAGS) -module -avoid-version -shared -noinst_HEADERS = bindings.h +noinst_HEADERS = bindings.h macro.h sodir=$(libdir) lib_LTLIBRARIES = liblxcfs.la EXTRA_LTLIBRARIES = liblxcfstest.la lxcfs_SOURCES = lxcfs.c -lxcfs_LDADD = liblxcfs.la -ldl +lxcfs_LDADD = -ldl lxcfs_CFLAGS = $(AM_CFLAGS) lxcfs_LDFLAGS = $(AM_LDFLAGS) bin_PROGRAMS = lxcfs @@ -47,18 +48,20 @@ TEST_CPUSET: tests/cpusetrange.c cpuset.c TEST_SYSCALLS: tests/test_syscalls.c $(CC) -o tests/test_syscalls tests/test_syscalls.c +if HAVE_PAM pam_LTLIBRARIES = pam_cgfs.la -pam_cgfs_la_SOURCES = pam/pam_cgfs.c +pam_cgfs_la_SOURCES = pam/pam_cgfs.c macro.h pam_cgfs_la_CFLAGS = $(AM_CFLAGS) pam_cgfs_la_LIBADD = $(AM_LIBS) $(PAM_LIBS) -L$(top_srcdir) pam_cgfs_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version -shared -#pam_cgfs_la_CFLAGS += -DDEBUG +# pam_cgfs_la_CFLAGS += -DDEBUG install-data-hook: install-pamLTLIBRARIES rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.la" rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.a" uninstall-local: rm -f "$(DESTDIR)$(pamdir)/pam_cgfs.so" +endif tests: TEST_READ TEST_CPUSET TEST_SYSCALLS