1 # Makefile for Amanda wrapper programs.
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
8 INCLUDES = -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
15 LINTFLAGS=$(AMLINTFLAGS)
17 AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
18 AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) $(AS_NEEDED_FLAGS)
20 SCRIPTS_PERL = script-email \
29 SCRIPTS_SHELL = $(amlibexec_SCRIPTS)
31 amlibexec_PROGRAMS = teecount
33 #We use two variables, applicationdir applicationexecdir, to segregate the
34 #platform-independent (applicationdir) files installed by install-data from the
35 #platform-dependent files (applicationexecdir) installed by install-exec.
36 #Automake recognizes the 'exec' substring in the variable name. From the
37 #Automake manual: "Any variable using a user-defined directory prefix with
38 #‘exec’ in the name (e.g., myexecbin_PROGRAMS) is installed by install-exec.
39 #All other user-defined prefixes are installed by install-data." (section 12.2)
40 applicationexecdir = $(APPLICATION_DIR)
41 applicationdir = $(APPLICATION_DIR)
42 applicationexec_PROGRAMS = amgtar amstar
43 applicationexec_SCRIPTS = $(SCRIPTS_PERL)
45 LDADD = ../common-src/libamanda.la \
46 ../client-src/libamclient.la \
47 ../amandad-src/libamandad.la \
48 ../common-src/libamanda.la \
52 INSTALLPERMS_exec = dest=$(applicationdir) chown=root:setuid chmod=04750 \