# Generated automatically from Makefile.in by configure.
# Makefile.in generated automatically by automake 1.3 from Makefile.am

# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# Makefile for Amanda tape changer programs.


SHELL = /bin/sh

srcdir = .
top_srcdir = ..
prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

DISTDIR =

pkgdatadir = $(datadir)/amanda
pkglibdir = $(libdir)/amanda
pkgincludedir = $(includedir)/amanda

top_builddir = ..

ACLOCAL = aclocal
AUTOCONF = autoconf
AUTOMAKE = automake
AUTOHEADER = autoheader

INSTALL = /usr/athena/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = sparc-sun-solaris2.6
build_triplet = sparc-sun-solaris2.6
host_alias = sparc-sun-solaris2.6
host_triplet = sparc-sun-solaris2.6
target_alias = sparc-sun-solaris2.6
target_triplet = sparc-sun-solaris2.6
AMCLIENT_EXTRA_OBJS = 
AMPLOT_CAT_COMPRESS = if(o=="Z")print "/usr/bin/compress -dc"; else
AMPLOT_CAT_GZIP = if(o=="gz")print "/mit/sipb/arch/sun4x_56/bin/gzip -dc"; else
AMPLOT_CAT_PACK = if(o=="z")print "/usr/bin/pcat"; else
AMPLOT_COMPRESS = /mit/sipb/arch/sun4x_56/bin/gzip
AR = /usr/ccs/bin/ar
AWK = gawk
BINARY_OWNER = amanda
BUILD_AMPLOT_LIBEXEC = amcat.awk amplot.awk amplot.g amplot.gp
BUILD_AMPLOT_SBIN = amplot
BUILD_CHANGER_PROGS_LIBEXEC = 
BUILD_CHANGER_SCRIPTS_LIBEXEC = chg-manual chg-multi chg-mtx chg-rth chg-chs chg-chio chg-zd-mtx
BUILD_CLIENT_LIB = 
BUILD_CLIENT_LTLIB = libamclient.la
BUILD_CLIENT_PROGS_LIBEXEC = amandad calcsize killpgrp rundump runtar selfcheck sendbackup sendsize
BUILD_CLIENT_SCRIPTS_LIBEXEC = patch-system
BUILD_CLIENT_SCRIPTS_SBIN = 
BUILD_COMMON_LIB = 
BUILD_COMMON_LTLIB = libamanda.la
BUILD_RECOVER_PROGS_SBIN = amrecover
BUILD_RESTORE_PROGS_LIBEXEC = amidxtaped
BUILD_RESTORE_PROGS_SBIN = amrestore
BUILD_SERVER_LIB = 
BUILD_SERVER_LTLIB = libamserver.la
BUILD_SERVER_PROGS_LIBEXEC = amindexd amtrmidx driver dumper getconf planner taper
BUILD_SERVER_PROGS_SBIN = amadmin amcheck amflush amlabel amtape amreport
BUILD_SERVER_SCRIPTS_SBIN = amcheckdb amcleanup amdump amoverview amrmtape amtoc amverify amstatus
BUILD_TAPE_LIB = 
BUILD_TAPE_LTLIB = libamtape.la
CAT = /usr/bin/cat
CC = /usr/gcc/bin/gcc
CHIO = chio
CHS = 
CLIENT_LOGIN = amanda
COMPRESS = /usr/bin/compress
CONFIG_DIR = /usr/local/etc/amanda
DB_EXT = ""
DD = /usr/bin/dd
DEBUG_DIR = /tmp/amanda
DEFAULT_CHANGER_DEVICE = /dev/null
DEFAULT_CONFIG = DailySet1
DEFAULT_RAW_TAPE_DEVICE = /dev/null
DEFAULT_SERVER = sweet-transvestite.mit.edu
DEFAULT_TAPE_DEVICE = /dev/null
DEFAULT_TAPE_SERVER = sweet-transvestite.mit.edu
DUMP = /usr/sbin/ufsdump
EGREP = /usr/bin/egrep
GETCONF = /bin/getconf
GNUPLOT = /mit/gnu/arch/sun4x_56/bin/gnuplot
GNUTAR = /mit/gnu/arch/sun4x_56/bin/gtar
GREP = /usr/bin/grep
GZIP = 
LEX = flex
LIBOBJS_CLIENT = 
LIBRARIES_TARGET = 
LIBSRCS_CLIENT = 
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIBTOOL_M4_MACRO_DIR = -I config/libtool
LIB_EXTENSION = la
MAILER = /usr/ucb/Mail
MT = /usr/bin/mt
MTX = mtx
MT_FILE_FLAG = -f
OBJ_EXTENSION = lo
PCAT = /usr/bin/pcat
PERL = /usr/athena/bin/perl
PRINT = /usr/athena/bin/lpr
RANLIB = ranlib
RESTORE = /usr/sbin/ufsrestore
SAMBA_CLIENT = 
SERVICE_SUFFIX = 
SETUID_GROUP = amanda
SHELL = /usr/bin/sh
USE_VERSION_SUFFIXES = no
VDUMP = 
VERSION_COMMENT = "p1"
VERSION_MAJOR = 2
VERSION_MINOR = 4
VERSION_PATCH = 1
VERSION_SUFFIX = 2.4.1p1
VRESTORE = 
VXDUMP = 
VXRESTORE = 
XFSDUMP = 
XFSRESTORE = 
YACC = bison -y
ac_c = \c
ac_n = 

INCLUDES =		-I$(top_srcdir)/common-src -I$(top_srcdir)/server-src

AMANDA_CFLAGS =		 

COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(AMANDA_CFLAGS)

# they cross-reference each other a bit, so need to be included twice
LDADD = ../server-src/libamserver.$(LIB_EXTENSION) \
	../common-src/libamanda.$(LIB_EXTENSION)

SUFFIXES =		.pl .sh

noinst_LIBRARIES =	libscsi.a

libscsi_a_SOURCES =	scsi-hpux.c scsi-chio.c
EXTRA_DIST = scsi-proto.c

chg_scsi_SOURCES =	chg-scsi.c libscsi.h

chg_scsi_LDADD =	libscsi.a $(LDADD)

libexec_PROGRAMS =	

EXTRA_PROGRAMS =	chg-scsi

libexec_SCRIPTS =	chg-manual chg-multi chg-mtx chg-rth chg-chs chg-chio chg-zd-mtx

EXTRA_SCRIPTS =		chg-manual	chg-multi	chg-mtx		\
			chg-rth		chg-chs		chg-chio	\
			chg-zd-mtx

DISTCLEANFILES = $(EXTRA_SCRIPTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = ../config/config.h
CONFIG_CLEAN_FILES =  chg-manual.sh chg-multi.sh chg-mtx.sh chg-chs.sh \
chg-rth.pl chg-chio.pl chg-zd-mtx.sh
LIBRARIES =  $(noinst_LIBRARIES)


DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I../config
CPPFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   
LDFLAGS =    
LIBS = -lgen -lm -ltermcap -lsocket -lnsl -lintl   
libscsi_a_LIBADD = 
libscsi_a_OBJECTS =  scsi-hpux.o scsi-chio.o
PROGRAMS =  $(libexec_PROGRAMS)

chg_scsi_OBJECTS =  chg-scsi.o
chg_scsi_DEPENDENCIES =  libscsi.a \
../server-src/libamserver.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
chg_scsi_LDFLAGS = 
SCRIPTS =  $(libexec_SCRIPTS)

CFLAGS = -g
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON =  Makefile.am Makefile.in chg-chio.pl.in chg-chs.sh.in \
chg-manual.sh.in chg-mtx.sh.in chg-multi.sh.in chg-rth.pl.in \
chg-zd-mtx.sh.in


PACKAGE = amanda
VERSION = 2.4.1p1

DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = tar
SOURCES = $(libscsi_a_SOURCES) $(chg_scsi_SOURCES)
OBJECTS = $(libscsi_a_OBJECTS) $(chg_scsi_OBJECTS)

all: Makefile $(LIBRARIES) $(PROGRAMS) $(SCRIPTS)

.SUFFIXES:
.SUFFIXES: .S .c .lo .o .pl .s .sh
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
	cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps changer-src/Makefile

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

chg-manual.sh: $(top_builddir)/config.status chg-manual.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
chg-multi.sh: $(top_builddir)/config.status chg-multi.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
chg-mtx.sh: $(top_builddir)/config.status chg-mtx.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
chg-chs.sh: $(top_builddir)/config.status chg-chs.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
chg-rth.pl: $(top_builddir)/config.status chg-rth.pl.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
chg-chio.pl: $(top_builddir)/config.status chg-chio.pl.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
chg-zd-mtx.sh: $(top_builddir)/config.status chg-zd-mtx.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status

mostlyclean-noinstLIBRARIES:

clean-noinstLIBRARIES:
	-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)

distclean-noinstLIBRARIES:

maintainer-clean-noinstLIBRARIES:

.c.o:
	$(COMPILE) -c $<

.s.o:
	$(COMPILE) -c $<

.S.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	-rm -f *.o core *.core

clean-compile:

distclean-compile:
	-rm -f *.tab.c

maintainer-clean-compile:

.c.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

.s.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

.S.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

distclean-libtool:

maintainer-clean-libtool:

libscsi.a: $(libscsi_a_OBJECTS) $(libscsi_a_DEPENDENCIES)
	-rm -f libscsi.a
	$(AR) cru libscsi.a $(libscsi_a_OBJECTS) $(libscsi_a_LIBADD)
	$(RANLIB) libscsi.a

mostlyclean-libexecPROGRAMS:

clean-libexecPROGRAMS:
	-test -z "$(libexec_PROGRAMS)" || rm -f $(libexec_PROGRAMS)

distclean-libexecPROGRAMS:

maintainer-clean-libexecPROGRAMS:

install-libexecPROGRAMS: $(libexec_PROGRAMS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(libexecdir)
	@list='$(libexec_PROGRAMS)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`"; \
	    $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \
	  else :; fi; \
	done

uninstall-libexecPROGRAMS:
	@$(NORMAL_UNINSTALL)
	list='$(libexec_PROGRAMS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \
	done

chg-scsi: $(chg_scsi_OBJECTS) $(chg_scsi_DEPENDENCIES)
	@rm -f chg-scsi
	$(LINK) $(chg_scsi_LDFLAGS) $(chg_scsi_OBJECTS) $(chg_scsi_LDADD) $(LIBS)

install-libexecSCRIPTS: $(libexec_SCRIPTS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(libexecdir)
	@list='$(libexec_SCRIPTS)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $$p $(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \
	  else if test -f $(srcdir)/$$p; then \
	    echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \
	  else :; fi; fi; \
	done

uninstall-libexecSCRIPTS:
	@$(NORMAL_UNINSTALL)
	list='$(libexec_SCRIPTS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
	here=`pwd` && cd $(srcdir) \
	  && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)

TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
	-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = changer-src

distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  test -f $(distdir)/$$file \
	  || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	  || cp -p $$d/$$file $(distdir)/$$file; \
	done
scsi-chio.o: scsi-chio.c ../config/config.h ../common-src/amanda.h \
	../common-src/arglist.h
scsi-hpux.o: scsi-hpux.c ../config/config.h ../common-src/amanda.h \
	../common-src/arglist.h

info:
dvi:
check: all
	$(MAKE)
installcheck:
install-exec: install-libexecPROGRAMS install-libexecSCRIPTS
	@$(NORMAL_INSTALL)
	$(MAKE) install-exec-hook

install-data: 
	@$(NORMAL_INSTALL)

install: install-exec install-data all
	@:

uninstall: uninstall-libexecPROGRAMS uninstall-libexecSCRIPTS

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs:
	$(mkinstalldirs)  $(DATADIR)$(libexecdir) $(DATADIR)$(libexecdir)


mostlyclean-generic:
	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-rm -f Makefile $(DISTCLEANFILES)
	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
mostlyclean:  mostlyclean-noinstLIBRARIES mostlyclean-compile \
		mostlyclean-libtool mostlyclean-libexecPROGRAMS \
		mostlyclean-tags mostlyclean-generic

clean:  clean-noinstLIBRARIES clean-compile clean-libtool \
		clean-libexecPROGRAMS clean-tags clean-generic \
		mostlyclean

distclean:  distclean-noinstLIBRARIES distclean-compile \
		distclean-libtool distclean-libexecPROGRAMS \
		distclean-tags distclean-generic clean
	-rm -f config.status
	-rm -f libtool

maintainer-clean:  maintainer-clean-noinstLIBRARIES \
		maintainer-clean-compile maintainer-clean-libtool \
		maintainer-clean-libexecPROGRAMS maintainer-clean-tags \
		maintainer-clean-generic distclean
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
clean-libtool maintainer-clean-libtool mostlyclean-libexecPROGRAMS \
distclean-libexecPROGRAMS clean-libexecPROGRAMS \
maintainer-clean-libexecPROGRAMS uninstall-libexecPROGRAMS \
install-libexecPROGRAMS uninstall-libexecSCRIPTS install-libexecSCRIPTS \
tags mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
distdir info dvi installcheck install-exec install-data install \
uninstall all installdirs mostlyclean-generic distclean-generic \
clean-generic maintainer-clean-generic clean mostlyclean distclean \
maintainer-clean


.pl:
			cat $< > $@
			chmod a+x $@

.sh:
			cat $< > $@
			chmod a+x $@

install-exec-hook:
	@list="$(sbin_PROGRAMS) $(sbin_SCRIPTS)"; \
	for p in $$list; do \
		pa=$(DESTDIR)$(sbindir)/`echo $$p|sed '$(transform)'`; \
		echo chown $(BINARY_OWNER) $$pa; \
		chown $(BINARY_OWNER) $$pa; \
		echo chgrp $(SETUID_GROUP) $$pa; \
		chgrp $(SETUID_GROUP) $$pa; \
	done
	@list="$(libexec_PROGRAMS) $(libexec_SCRIPTS)"; \
	for p in $$list; do \
		pa=$(DESTDIR)$(libexecdir)/`echo $$p|sed '$(transform)'`; \
		echo chown $(BINARY_OWNER) $$pa; \
		chown $(BINARY_OWNER) $$pa; \
		echo chgrp $(SETUID_GROUP) $$pa; \
		chgrp $(SETUID_GROUP) $$pa; \
	done

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
