1 # Makefile for Amanda client programs.
3 include $(top_srcdir)/config/automake/installperms.am
4 include $(top_srcdir)/config/automake/precompile.am
6 INCLUDES = -I$(top_builddir)/common-src \
7 -I$(top_srcdir)/common-src \
10 AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
11 AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
14 LINTFLAGS=@AMLINTFLAGS@
16 amlib_LTLIBRARIES = libamandad.la
19 amlibexec_PROGRAMS = amandad
21 libamandad_la_SOURCES= amandad_util.c
22 libamandad_la_LDFLAGS = -release $(VERSION)
23 libamandad_la_LIBADD = ../common-src/libamanda.la
25 noinst_HEADERS = amandad.h
28 # Because libamanda includes routines (e.g. regex) provided by some system
29 # libraries, and because of the way libtool sets up the command line, we
30 # need to list libamanda twice here, first to override the system library
31 # routines, and second to pick up any references in the other libraries.
34 LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \
35 libamandad.$(LIB_EXTENSION) \
36 ../common-src/libamanda.$(LIB_EXTENSION) \
37 ../gnulib/libgnu.$(LIB_EXTENSION)
40 dest=$(amlibexecdir) chown=amanda \
44 dest=$(amlibexecdir) chown=amanda \
48 @ for p in $(amlibexec_PROGRAMS); do \
49 f="$$p.c $(libamandad_la_SOURCES)"; \
50 (cd ../common-src; make listlibsrc); \
51 f="$$f "`cat ../common-src/listlibsrc.output`; \
52 (cd ../server-src; make listlibsrc); \
53 f="$$f "`cat ../server-src/listlibsrc.output`; \
55 $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config \
57 if [ $$? -ne 0 ]; then \