File: Makefile.am

package info (click to toggle)
amanda 1%3A3.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 22,360 kB
  • sloc: ansic: 214,899; perl: 58,075; sh: 16,954; xml: 13,853; makefile: 2,228; awk: 431; lex: 405; yacc: 343; tcl: 118; sql: 19; sed: 16; php: 2
file content (92 lines) | stat: -rw-r--r-- 2,566 bytes parent folder | download | duplicates (3)
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
# Makefile for Amanda client 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)/amandad-src  \
		-I$(top_srcdir)/gnulib

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

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

amlib_LTLIBRARIES =	libamclient.la

amlibexec_PROGRAMS =	noop calcsize killpgrp rundump runtar selfcheck sendbackup sendsize

amlibexec_SCRIPTS_SHELL = patch-system

sbin_SCRIPTS_PERL = amdump_client

SCRIPTS_PERL = $(sbin_SCRIPTS_PERL)
SCRIPTS_SHELL = $(amlibexec_SCRIPTS_SHELL)
sbin_SCRIPTS = $(sbin_SCRIPTS_PERL)
amlibexec_SCRIPTS = $(amlibexec_SCRIPTS_SHELL)

libamclient_la_SOURCES=	amandates.c		getfsent.c	\
			unctime.c		client_util.c
if WANT_SAMBA
libamclient_la_SOURCES += findpass.c
endif

libamclient_la_LDFLAGS = -release $(VERSION) $(AS_NEEDED_FLAGS)
libamclient_la_LIBADD  = ../common-src/libamanda.la

###
# 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 \
	libamclient.la \
	../amandad-src/libamandad.la \
	../common-src/libamanda.la \
	../gnulib/libgnu.la

# these are used for testing only:
TEST_PROGS = getfsent

EXTRA_PROGRAMS =	$(TEST_PROGS)

CLEANFILES += *.test.c


sendbackup_SOURCES = 	sendbackup.c		sendbackup.h	  \
			sendbackup-dump.c	sendbackup-gnutar.c

noinst_HEADERS	= 	amandates.h	getfsent.h	\
			findpass.h	client_util.h
			
if WANT_SETUID_CLIENT
INSTALLPERMS_exec = dest=$(amlibexecdir) chown=root:setuid chmod=04750 \
		calcsize killpgrp rundump runtar
endif

lint:
	@ for p in $(amlibexec_PROGRAMS); do					\
		p=`basename $$p $(EXEEXT)`;					\
		f="$$p.c $(libamclient_la_SOURCES)";				\
		(cd ../common-src; make listlibsrc);				\
		f="$$f "`cat ../common-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

getfsent_SOURCES = getfsent.test.c

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