Debian Codegraph @

application-src/Makefile.am

raw
1 # Makefile for Amanda wrapper programs.
2
3 include $(top_srcdir)/config/automake/vars.am
4 include $(top_srcdir)/config/automake/scripts.am
5 include $(top_srcdir)/config/automake/installperms.am
6 include $(top_srcdir)/config/automake/precompile.am
7
8 AM_CPPFLAGS = -I$(top_builddir)/common-src \
9 -I$(top_srcdir)/common-src \
10 -I$(top_srcdir)/client-src \
11 -I$(top_srcdir)/amandad-src \
12 -I$(top_srcdir)/gnulib
13
14 LINT=$(AMLINT)
15 LINTFLAGS=$(AMLINTFLAGS)
16
17 AM_CFLAGS = $(AMANDA_WARNING_CFLAGS) $(AMANDA_FILE_CFLAGS)
18 AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) $(AS_NEEDED_FLAGS)
19
20 applicationexec_SCRIPTS_SHELL = script-fail
21
22 applicationexec_SCRIPTS_PERL = script-email \
23 amlog-script \
24 ampgsql \
25 amzfs-sendrecv \
26 amzfs-snapshot \
27 amrandom \
28 amraw \
29 amsamba \
30 amsuntar
31
32 amlibexec_PROGRAMS = teecount
33
34 #We use two variables, applicationdir applicationexecdir, to segregate the
35 #platform-independent (applicationdir) files installed by install-data from the
36 #platform-dependent files (applicationexecdir) installed by install-exec.
37 #Automake recognizes the 'exec' substring in the variable name. From the
38 #Automake manual: "Any variable using a user-defined directory prefix with
39 #‘exec’ in the name (e.g., myexecbin_PROGRAMS) is installed by install-exec.
40 #All other user-defined prefixes are installed by install-data." (section 12.2)
41 applicationexecdir = $(APPLICATION_DIR)
42 applicationdir = $(APPLICATION_DIR)
43 applicationexec_PROGRAMS = ambsdtar amgtar amstar
44 applicationexec_SCRIPTS = $(applicationexec_SCRIPTS_PERL) $(applicationexec_SCRIPTS_SHELL)
45
46 SCRIPTS_SHELL = $(applicationexec_SCRIPTS_SHELL)
47 SCRIPTS_PERL = $(applicationexec_SCRIPTS_PERL)
48
49 CLEANFILES += $(SCRIPTS_PERL) $(SCRIPTS_SHELL)
50 DISTCLEANFILES += config.log
51
52 LDADD = ../common-src/libamanda.la \
53 ../client-src/libamclient.la \
54 ../amandad-src/libamandad.la \
55 ../common-src/libamanda.la \
56 ../gnulib/libgnu.la
57
58 if WANT_SETUID_CLIENT
59 INSTALLPERMS_exec = dest=$(applicationdir) chown=root:setuid chmod=04750 \
60 ambsdtar amgtar amstar
61 endif