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)
packet.c \
pipespawn.c \
protocol.c \
- queueing.c \
semaphore.c \
security.c \
security-util.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 \
- queueing.h \
semaphore.h \
security.h \
security-util.h \
# automake-style tests
-TESTS = amflock-test event-test semaphore-test queueing-test quoting-test \
+TESTS = amflock-test event-test semaphore-test quoting-test \
ipc-binary-test hexencode-test fileheader-test match-test
noinst_PROGRAMS = $(TESTS)
semaphore_test_SOURCES = semaphore-test.c
semaphore_test_LDADD = libamanda.la libtestutils.la
-queueing_test_SOURCES = queueing-test.c
-queueing_test_LDADD = libamanda.la libtestutils.la
-
quoting_test_SOURCES = quoting-test.c
quoting_test_LDADD = libamanda.la libtestutils.la
# installation
-INSTALLPERMS_data = dest=$(sbindir) chown=amanda $(sbin_SCRIPTS) \
- dest=$(amlibexecdir) chown=amanda $(amlibexec_SCRIPTS) $(amlibexec_DATA)
-
lint:
@echo $(LINT) $(libamanda_la_SOURCES)
@$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config $(INCLUDES) $(libamanda_la_SOURCES)