include $(top_srcdir)/config/automake/installperms.am
include $(top_srcdir)/config/automake/precompile.am
-INCLUDES = -I$(top_srcdir)/gnulib
+INCLUDES = -I$(top_srcdir)/gnulib
AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
-AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
+AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) $(AS_NEEDED_FLAGS)
amlib_LTLIBRARIES = libamanda.la
+sbin_PROGRAMS = amservice
+
LINT=$(AMLINT)
LINTFLAGS=$(AMLINTFLAGS)
libamanda_la_SOURCES = \
alloc.c \
+ am_sl.c \
amfeatures.c \
amflock.c \
ipc-binary.c \
packet.c \
pipespawn.c \
protocol.c \
- semaphore.c \
+ amsemaphore.c \
security.c \
security-util.c \
simpleprng.c \
- sl.c \
sockaddr-util.c \
stream.c \
tapelist.c \
# version.c is generated; see below
nodist_libamanda_la_SOURCES = version.c
+INSTALLPERMS_exec = \
+ dest=$(sbindir) chown=root:setuid chmod=04750 \
+ amservice
+
+LDADD = libamanda.la
+
libamanda_la_LIBADD = \
../gnulib/libgnu.la
libamanda_la_SOURCES += local-security.c
-libamanda_la_LDFLAGS = -release $(VERSION)
+libamanda_la_LDFLAGS = -release $(VERSION) $(AS_NEEDED_FLAGS)
noinst_HEADERS = \
amanda.h \
packet.h \
pipespawn.h \
protocol.h \
- semaphore.h \
+ amsemaphore.h \
security.h \
security-util.h \
simpleprng.h \
- sl.h \
+ am_sl.h \
sockaddr-util.h \
stream.h \
tapelist.h \
# automake-style tests
-TESTS = amflock-test event-test semaphore-test quoting-test \
+TESTS = amflock-test event-test amsemaphore-test quoting-test \
ipc-binary-test hexencode-test fileheader-test match-test
noinst_PROGRAMS = $(TESTS)
event_test_SOURCES = event-test.c
event_test_LDADD = libamanda.la libtestutils.la
-semaphore_test_SOURCES = semaphore-test.c
-semaphore_test_LDADD = libamanda.la libtestutils.la
+amsemaphore_test_SOURCES = amsemaphore-test.c
+amsemaphore_test_LDADD = libamanda.la libtestutils.la
quoting_test_SOURCES = quoting-test.c
quoting_test_LDADD = libamanda.la libtestutils.la