Imported Upstream version 3.3.0
[debian/amanda] / application-src / Makefile.am
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 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
13
14 LINT=$(AMLINT)
15 LINTFLAGS=$(AMLINTFLAGS)
16
17 AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
18 AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) $(AS_NEEDED_FLAGS)
19
20 SCRIPTS_PERL = script-email \
21              amlog-script \
22              ampgsql \
23              amzfs-sendrecv \
24              amzfs-snapshot \
25              amraw \
26              amsamba \
27              amsuntar
28
29 SCRIPTS_SHELL = $(amlibexec_SCRIPTS)
30
31 amlibexec_PROGRAMS = teecount
32
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)
44
45 LDADD = ../common-src/libamanda.la \
46         ../client-src/libamclient.la \
47         ../amandad-src/libamandad.la \
48         ../common-src/libamanda.la \
49         ../gnulib/libgnu.la
50
51 if WANT_SETUID_CLIENT
52 INSTALLPERMS_exec = dest=$(applicationdir) chown=root:setuid chmod=04750 \
53                     amgtar amstar
54 endif