1 # Makefile for Amanda client programs.
3 INCLUDES = -I$(top_builddir)/common-src \
4 -I$(top_srcdir)/common-src \
8 LINTFLAGS=@AMLINTFLAGS@
10 lib_LTLIBRARIES = libamandad.la
13 libexec_PROGRAMS = amandad
15 if WANT_RUNTIME_PSEUDO_RELOC
16 AM_LDFLAGS = -Wl,-enable-runtime-pseudo-reloc
19 libamandad_la_SOURCES= amandad_util.c
20 libamandad_la_LDFLAGS = -release $(VERSION)
22 noinst_HEADERS = amandad.h
25 # Because libamanda includes routines (e.g. regex) provided by some system
26 # libraries, and because of the way libtool sets up the command line, we
27 # need to list libamanda twice here, first to override the system library
28 # routines, and second to pick up any references in the other libraries.
31 LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \
32 libamandad.$(LIB_EXTENSION) \
33 ../common-src/libamanda.$(LIB_EXTENSION) \
34 ../gnulib/libgnu.$(LIB_EXTENSION)
37 @list="$(libexec_PROGRAMS) $(libexec_SCRIPTS)"; \
39 pa=$(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \
40 echo chown $(BINARY_OWNER) $$pa; \
41 chown $(BINARY_OWNER) $$pa; \
42 echo chgrp $(SETUID_GROUP) $$pa; \
43 chgrp $(SETUID_GROUP) $$pa; \
47 @ for p in $(libexec_PROGRAMS); do \
48 f="$$p.c $(libamandad_la_SOURCES)"; \
49 (cd ../common-src; make listlibsrc); \
50 f="$$f "`cat ../common-src/listlibsrc.output`; \
51 (cd ../server-src; make listlibsrc); \
52 f="$$f "`cat ../server-src/listlibsrc.output`; \
54 $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I../config \
56 if [ $$? -ne 0 ]; then \