-
-###
-# 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 \
- ../common-src/libamanda.la \
- ../device-src/libamdevice.la \
- ../gnulib/libgnu.la \
- $(READLINE_LIBS)
-
-chg_scsi_CSRC = chg-scsi.c scsi-changer-driver.c sense.c
-if WANT_SCSI_AIX
-chg_scsi_CSRC += scsi-aix.c
-endif
-if WANT_SCSI_HPUX_NEW
-chg_scsi_CSRC += scsi-hpux_new.c
-endif
-if WANT_SCSI_IRIX
-chg_scsi_CSRC += scsi-irix.c
-endif
-if WANT_SCSI_LINUX
-chg_scsi_CSRC += scsi-linux.c
-endif
-if WANT_SCSI_SOLARIS
-chg_scsi_CSRC += scsi-solaris.c
-endif
-if WANT_SCSI_BSD
-chg_scsi_CSRC += scsi-bsd.c
-endif
-if WANT_SCSI_CAM
-chg_scsi_CSRC += scsi-cam.c
-endif
-
-chg_scsi_SOURCES = libscsi.h scsi-defs.h $(chg_scsi_CSRC)
-
-chg_scsi_chio_CSRC = chg-scsi-chio.c
-if WANT_SCSI_HPUX
-chg_scsi_chio_CSRC += scsi-hpux.c
-endif
-if WANT_SCSI_CHIO
-chg_scsi_chio_CSRC += scsi-chio.c
-endif
-chg_scsi_chio_SOURCES = libscsi.h $(chg_scsi_chio_CSRC)
-
-EXTRA_DIST += scsi-proto.c
-
-INSTALLPERMS_exec = \
- chown=amanda \
- dest=$(sbindir) $(sbin_PROGRAMS) \
- dest=$(amlibexecdir) $(amlibexec_PROGRAMS)
-
-INSTALLPERMS_data = \
- chown=amanda \
- dest=$(sbindir) $(sbin_SCRIPTS) \
- dest=$(amlibexecdir) $(amlibexec_SCRIPTS) $(amlibexec_DATA)
-
-lint:
- @ for p in $(amlibexec_PROGRAMS) $(EXTRA_PROGRAMS); do \
- p=`basename $$p $(EXEEXT)`; \
- f="$$p.c $(libamandad_la_SOURCES)"; \
- (cd ../common-src; make listlibsrc); \
- f="$$f "`cat ../common-src/listlibsrc.output`; \
- (cd ../server-src; make listlibsrc); \
- f="$$f "`cat ../server-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