# Makefile for Amanda client programs.
+include $(top_srcdir)/config/automake/vars.am
include $(top_srcdir)/config/automake/installperms.am
include $(top_srcdir)/config/automake/precompile.am
AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
-LINT=@AMLINT@
-LINTFLAGS=@AMLINTFLAGS@
+LINT=$(AMLINT)
+LINTFLAGS=$(AMLINTFLAGS)
amlib_LTLIBRARIES = libamandad.la
-LIB_EXTENSION = la
amlibexec_PROGRAMS = amandad
# routines, and second to pick up any references in the other libraries.
###
-LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \
- libamandad.$(LIB_EXTENSION) \
- ../common-src/libamanda.$(LIB_EXTENSION) \
- ../gnulib/libgnu.$(LIB_EXTENSION)
-
-INSTALLPERMS_exec = \
- dest=$(amlibexecdir) chown=amanda \
- $(amlibexec_PROGRAMS)
-
-INSTALLPERMS_data = \
- dest=$(amlibexecdir) chown=amanda \
- $(amlibexec_SCRIPTS)
+LDADD = ../common-src/libamanda.la \
+ libamandad.la \
+ ../common-src/libamanda.la \
+ ../gnulib/libgnu.la
lint:
@ for p in $(amlibexec_PROGRAMS); do \
+ p=`basename $$p $(EXEEXT)`; \
f="$$p.c $(libamandad_la_SOURCES)"; \
(cd ../common-src; make listlibsrc); \
f="$$f "`cat ../common-src/listlibsrc.output`; \