1 # Makefile for Amanda tape changer programs.
3 INCLUDES = -I$(top_builddir)/common-src \
4 -I$(top_srcdir)/common-src \
5 -I$(top_srcdir)/server-src \
6 -I$(top_srcdir)/tape-src
11 CHIO_SCSI = chg-scsi-chio
18 libexec_PROGRAMS = $(CHG_SCSI)
19 EXTRA_PROGRAMS = $(CHIO_SCSI)
21 libexec_SCRIPTS = chg-manual chg-multi chg-mtx \
22 chg-rth chg-chs chg-chio \
23 chg-zd-mtx chg-juke chg-rait \
24 chg-null chg-mcutil chg-disk \
27 CLEANFILES = $(libexec_SCRIPTS)
30 # Because libamanda includes routines (e.g. regex) provided by some system
31 # libraries, and because of the way libtool sets up the command line, we
32 # need to list libamanda twice here, first to override the system library
33 # routines, and second to pick up any references in the other libraries.
36 LDADD = ../common-src/libamanda.$(LIB_EXTENSION) \
37 ../server-src/libamserver.$(LIB_EXTENSION) \
38 ../tape-src/libamtape.$(LIB_EXTENSION) \
39 ../common-src/libamanda.$(LIB_EXTENSION)
43 chg_scsi_SOURCES = chg-scsi.c libscsi.h scsi-defs.h \
44 scsi-aix.c scsi-changer-driver.c scsi-hpux_new.c scsi-irix.c \
45 scsi-linux.c scsi-solaris.c scsi-bsd.c scsi-cam.c sense.c
47 chg_scsi_chio_SOURCES = chg-scsi-chio.c scsi-hpux.c scsi-chio.c libscsi.h
49 EXTRA_DIST = scsi-proto.c
54 -test -z "$(PERL)" || $(PERL) -c $@
61 @list="$(sbin_PROGRAMS) $(sbin_SCRIPTS)"; \
63 pa=$(DESTDIR)$(sbindir)/`echo $$p|sed '$(transform)'`; \
64 echo chown $(BINARY_OWNER) $$pa; \
65 chown $(BINARY_OWNER) $$pa; \
66 echo chgrp $(SETUID_GROUP) $$pa; \
67 chgrp $(SETUID_GROUP) $$pa; \
69 @list="$(libexec_PROGRAMS) $(libexec_SCRIPTS)"; \
71 pa=$(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \
72 echo chown $(BINARY_OWNER) $$pa; \
73 chown $(BINARY_OWNER) $$pa; \
74 echo chgrp $(SETUID_GROUP) $$pa; \
75 chgrp $(SETUID_GROUP) $$pa; \