/amanda/tags/3_1_0_mac01/client-src/Makefile.am
Makefile | 95 lines | 63 code | 24 blank | 8 comment | 4 complexity | 55ec82befcf0afbb3cff69abac577dca MD5 | raw file
- # 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)
- LINT=$(AMLINT)
- LINTFLAGS=$(AMLINTFLAGS)
- amlib_LTLIBRARIES = libamclient.la
- amlibexec_PROGRAMS = noop calcsize killpgrp rundump runtar selfcheck sendbackup sendsize
- amlibexec_SCRIPTS = patch-system
- SCRIPTS_PERL = $(sbin_SCRIPTS)
- SCRIPTS_SHELL = $(amlibexec_SCRIPTS)
- 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)
- 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
-
- INSTALLPERMS_exec = chown=amanda \
- dest=$(amlibexecdir) $(amlibexec_PROGRAMS)
- INSTALLPERMS_data = chown=amanda \
- dest=$(sbindir) $(sbin_SCRIPTS) \
- dest=$(amlibexecdir) $(amlibexec_SCRIPTS)
- if WANT_SETUID_CLIENT
- INSTALLPERMS_exec += dest=$(amlibexecdir) chown=root 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 "$<"' >>$@