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

Language make Lines 179
MD5 Hash 9e4beb9f0732a44b1f595e4a5e9bf9c5
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
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Makefile for Amanda server programs.

include $(top_srcdir)/config/automake/vars.am
include $(top_srcdir)/config/automake/scripts.am
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)/restore-src  \
		-I$(top_srcdir)/amandad-src  \
		-I$(top_srcdir)/device-src   \
		-I$(top_srcdir)/gnulib

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

LINT=$(AMLINT)
LINTFLAGS=$(AMLINTFLAGS)

amlib_LTLIBRARIES = 	libamserver.la

sbin_PROGRAMS =		amadmin		amcheck		\
			amflush		amgetconf	amlabel		\
			amtape		amreport

noinst_PROGRAMS = taper_source_test

amlibexec_PROGRAMS =	amindexd	amlogroll	amtrmidx	\
			amtrmlog	driver		dumper		\
			planner		taper		amcleanupdisk	\
			chunker

# Exclude scripts which depend on perl extension modules from the syntax checks
CHECK_PERL = \
	    amaddclient \
	    amoverview \
	    amserverconfig \
	    amstatus \
	    amtoc
SCRIPTS_PERL =  \
	    $(CHECK_PERL) \
	    amdevcheck \
	    amcheckdump

SCRIPTS_SHELL = \
	    amcheckdb \
	    amcleanup \
	    amdump \
	    amrmtape \
	    amverify \
	    amverifyrun

sbin_SCRIPTS = $(SCRIPTS_PERL) $(SCRIPTS_SHELL)

INSTALLPERMS_exec = \
	dest=$(sbindir) chown=amanda chmod= \
		$(sbin_PROGRAMS) \
	chown=root chmod=u+s,o-rwx \
		amcheck \
	dest=$(amlibexecdir) chown=amanda chmod= \
		$(amlibexec_PROGRAMS) \
	chown=root chmod=u+s,o-rwx \
		dumper planner

INSTALLPERMS_data = \
	dest=$(sbindir) chown=amanda chmod= \
		$(sbin_SCRIPTS) \
	dest=$(amlibexecdir) chown=amanda chmod= \
		$(amlibexec_SCRIPTS)

###
# 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 = ../common-src/libamanda.la   \
	libamserver.la               \
	../device-src/libamdevice.la     \
	../common-src/libamanda.la   \
	../gnulib/libgnu.la          \
        $(READLINE_LIBS)

libamserver_la_SOURCES=	amindex.c	changer.c			\
			diskfile.c	driverio.c	cmdline.c  \
			holding.c	infofile.c	logfile.c	\
			tapefile.c	find.c		server_util.c   \
                        taperscan.c

libamserver_la_LDFLAGS= -release $(VERSION)
libamserver_la_LIBADD= ../device-src/libamdevice.la \
		       ../common-src/libamanda.la

taper_source_test_SOURCES = taper-source-test.c \
			taper-source.c \
			taper-file-source.c \
			taper-port-source.c \
			taper-disk-port-source.c \
			taper-mem-port-source.c

taper_SOURCES = 	taper.c \
			taper-source.c \
			taper-file-source.c \
			taper-port-source.c \
			taper-disk-port-source.c \
			taper-mem-port-source.c

taper_LDADD = $(LDADD) \
	../amandad-src/libamandad.la

taper_source_test_LDADD = $(LDADD) \
	../amandad-src/libamandad.la

amindexd_LDADD = $(LDADD) \
	../amandad-src/libamandad.la

# there are used for testing only:
TEST_PROGS = diskfile infofile

EXTRA_PROGRAMS =	$(TEST_PROGS)

CLEANFILES += *.test.c

amindexd_CSRC =		amindexd.c	disk_history.c	list_dir.c
amindexd_SOURCES =	disk_history.h	list_dir.h	$(amindexd_CSRC)

amreport_SOURCES =	reporter.c

amgetconf_SOURCES =	getconf.c

noinst_HEADERS = 	amindex.h	changer.h	cmdline.h	\
			diskfile.h	driverio.h	\
			holding.h	infofile.h	logfile.h	\
			tapefile.h	find.h		server_util.h	\
			taperscan.h taper-disk-port-source.h \
			taper-mem-port-source.h  taper-file-source.h \
			taper-port-source.h taper-source.h

lint:
	@ for p in $(amlibexec_PROGRAMS) $(sbin_PROGRAMS); do			\
		if [ $$p = "amindexd" ]; then					\
			s="$(amindexd_CSRC)";					\
		elif [ $$p = "amreport" ]; then					\
			s="$(amreport_SOURCES)";				\
		elif [ $$p = "amgetconf" ]; then				\
			s="$(getconf_SOURCES)";					\
		else								\
			s=$$p.c;						\
		fi; 								\
		f="$$s $(libamserver_la_SOURCES)";				\
		(cd ../common-src; make listlibsrc);				\
		f="$$f "`cat ../common-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

listlibsrc:
	@ for p in $(libamserver_la_SOURCES); do		\
		listlibsrcs="$$listlibsrcs `pwd`/$$p";		\
	done;							\
	echo $$listlibsrcs >listlibsrc.output


diskfile_SOURCES = diskfile.test.c
infofile_SOURCES = infofile.test.c

%.test.c: $(srcdir)/%.c
	echo '#define TEST' >$@
	echo '#include "$<"' >>$@
Back to Top