PageRenderTime 223ms CodeModel.GetById 101ms app.highlight 4ms RepoModel.GetById 116ms app.codeStats 1ms

/amanda/tags/amanda260p2/amandad-src/Makefile.am

#
Makefile | 62 lines | 41 code | 14 blank | 7 comment | 2 complexity | a4f820077b4af189f6b3baa492f402ca MD5 | raw file
 1# Makefile for Amanda client programs.
 2
 3include $(top_srcdir)/config/automake/installperms.am
 4include $(top_srcdir)/config/automake/precompile.am
 5
 6INCLUDES =	-I$(top_builddir)/common-src \
 7		-I$(top_srcdir)/common-src \
 8		-I$(top_srcdir)/gnulib
 9
10AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
11AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
12
13LINT=@AMLINT@
14LINTFLAGS=@AMLINTFLAGS@
15
16amlib_LTLIBRARIES =       libamandad.la
17LIB_EXTENSION = la
18
19amlibexec_PROGRAMS =	amandad
20
21libamandad_la_SOURCES= amandad_util.c
22libamandad_la_LDFLAGS = -release $(VERSION)
23libamandad_la_LIBADD = ../common-src/libamanda.la
24
25noinst_HEADERS  = amandad.h
26
27###
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.
32###
33
34LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \
35	libamandad.$(LIB_EXTENSION) \
36	../common-src/libamanda.$(LIB_EXTENSION) \
37	../gnulib/libgnu.$(LIB_EXTENSION)
38
39INSTALLPERMS_exec = \
40	dest=$(amlibexecdir) chown=amanda \
41		$(amlibexec_PROGRAMS)
42
43INSTALLPERMS_data = \
44	dest=$(amlibexecdir) chown=amanda \
45		$(amlibexec_SCRIPTS)
46
47lint:
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`;			\
54		echo $(LINT) $$f;						\
55		$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config	\
56		    $(INCLUDES) $$f;						\
57		if [ $$? -ne 0 ]; then						\
58		    exit 1;							\
59		fi;								\
60	done;									\
61        exit 0
62