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

Language make Lines 76
MD5 Hash f4756f6864032aafc7a6c9eb583ccc61
Repository https://amanda.svn.sourceforge.net/svnroot/amanda View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Makefile for Amanda restore programs.

include $(top_srcdir)/config/automake/installperms.am
include $(top_srcdir)/config/automake/precompile.am

INCLUDES =	-I$(top_builddir)/common-src \
		-I$(top_srcdir)/common-src   \
		-I$(top_srcdir)/device-src   \
		-I$(top_srcdir)/server-src   \
		-I$(top_srcdir)/amandad-src  \
		-I$(top_srcdir)/gnulib

AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)

LINT=@AMLINT@
LINTFLAGS=@AMLINTFLAGS@

amlib_LTLIBRARIES =	librestore.la
LIB_EXTENSION = la

sbin_PROGRAMS = 	amrestore amfetchdump

amlibexec_PROGRAMS = 	amidxtaped

###
# Because libamanda includes routines (e.g. regex) provided by some system
# libraries, and because of the way libtool sets up the command line, we
# need to list libamanda twice here, first to override the system library
# routines, and second to pick up any references in the other libraries.
###

LDADD = librestore.$(LIB_EXTENSION)              \
      ../common-src/libamanda.$(LIB_EXTENSION) \
      ../gnulib/libgnu.$(LIB_EXTENSION) \
      $(READLINE_LIBS)

amidxtaped_LDADD = $(LDADD) \
		   ../gnulib/libgnu.$(LIB_EXTENSION) \
		   ../amandad-src/libamandad.$(LIB_EXTENSION)

amidxtaped_SOURCES = 	amidxtaped.c

amfetchdump_SOURCES = 	amfetchdump.c

librestore_la_SOURCES	=	restore.c
librestore_la_LDFLAGS	=	-release $(VERSION)
librestore_la_LIBADD	=	../common-src/libamanda.$(LIB_EXTENSION) \
				../server-src/libamserver.$(LIB_EXTENSION) \
				../device-src/libamdevice.$(LIB_EXTENSION)

noinst_HEADERS = restore.h

INSTALLPERMS_exec = \
	dest=$(sbindir) chown=amanda $(sbin_PROGRAMS) \
	dest=$(amlibexecdir) chown=amanda $(amlibexec_PROGRAMS)

lint:
	@ for p in $(amlibexec_PROGRAMS) $(sbin_PROGRAMS); do			\
		f="$$p.c $(librestore_la_SOURCES)";				\
		(cd ../common-src; make listlibsrc);				\
		f="$$f "`cat ../common-src/listlibsrc.output`;			\
		(cd ../server-src; make listlibsrc);				\
		f="$$f "`cat ../server-src/listlibsrc.output`;			\
		(cd ../tape-src; make listlibsrc);				\
		f="$$f "`cat ../tape-src/listlibsrc.output`;			\
		echo $(LINT) $$f;						\
		$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config	\
		    $(INCLUDES) $$f;						\
		if [ $$? -ne 0 ]; then						\
		    exit 1;							\
		fi;								\
	done;									\
        exit 0
Back to Top