# 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 server 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 = 

ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4

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

AMANDA_CFLAGS =		 

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

LDADD =	libamserver.$(LIB_EXTENSION) \
	../tape-src/libamtape.$(LIB_EXTENSION) \
	../common-src/libamanda.$(LIB_EXTENSION)

SUFFIXES =		.sh .pl

sbin_PROGRAMS =		amadmin amcheck amflush amlabel amtape amreport

libexec_PROGRAMS =	amindexd amtrmidx driver dumper getconf planner taper

sbin_SCRIPTS =		amcheckdb amcleanup amdump amoverview amrmtape amtoc amverify amstatus

# there are used for testing only:
TEST_PROGS = diskfile conffile infofile

EXTRA_PROGRAMS =	amadmin				amcheck		\
			amflush				amindexd	\
			amlabel				amtape		\
			amtrmidx			driver		\
			dumper				getconf		\
			planner				amreport	\
			taper						\
			$(TEST_PROGS)

EXTRA_SCRIPTS =		amcheckdb			amcleanup	\
			amdump				amoverview	\
			amrmtape			amtoc		\
			amverify			amstatus

CLEANFILES = *.test.c

DISTCLEANFILES = $(EXTRA_SCRIPTS)

amindexd_SOURCES =	amindexd.c					\
			disk_history.c			disk_history.h	\
			list_dir.c			list_dir.h

amreport_SOURCES =	reporter.c

lib_LTLIBRARIES = 	libamserver.la
EXTRA_LTLIBRARIES = 	libamserver.la

noinst_LIBRARIES = 	
EXTRA_LIBRARIES = 	libamserver.a

libamserver_la_SOURCES=	amindex.c	changer.c	clock.c		\
			conffile.c	diskfile.c	driverio.c	\
			holding.c	infofile.c	logfile.c	\
			tapefile.c	find.c

libamserver_la_LDFLAGS= -release $(VERSION) -rpath $(libdir)

libamserver_a_SOURCES=	$(libamserver_la_SOURCES)

noinst_HEADERS = 	amindex.h	changer.h	clock.h		\
			conffile.h	diskfile.h	driverio.h	\
			holding.h	infofile.h	logfile.h	\
			tapefile.h	find.h

diskfile_SOURCES = diskfile.test.c
conffile_SOURCES = conffile.test.c
infofile_SOURCES = infofile.test.c
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = ../config/config.h
CONFIG_CLEAN_FILES =  amcheckdb.sh amcleanup.sh amdump.sh amfreetapes.sh \
amoverview.pl amrmtape.sh amtoc.pl amverify.sh amstatus.pl
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   
libamserver_a_LIBADD = 
libamserver_a_OBJECTS =  amindex.o changer.o clock.o conffile.o \
diskfile.o driverio.o holding.o infofile.o logfile.o tapefile.o find.o
LTLIBRARIES =  $(lib_LTLIBRARIES)

libamserver_la_LIBADD = 
libamserver_la_OBJECTS =  amindex.lo changer.lo clock.lo conffile.lo \
diskfile.lo driverio.lo holding.lo infofile.lo logfile.lo tapefile.lo \
find.lo
PROGRAMS =  $(libexec_PROGRAMS) $(sbin_PROGRAMS)

amadmin_SOURCES = amadmin.c
amadmin_OBJECTS =  amadmin.o
amadmin_LDADD = $(LDADD)
amadmin_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
amadmin_LDFLAGS = 
amcheck_SOURCES = amcheck.c
amcheck_OBJECTS =  amcheck.o
amcheck_LDADD = $(LDADD)
amcheck_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
amcheck_LDFLAGS = 
amflush_SOURCES = amflush.c
amflush_OBJECTS =  amflush.o
amflush_LDADD = $(LDADD)
amflush_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
amflush_LDFLAGS = 
amindexd_OBJECTS =  amindexd.o disk_history.o list_dir.o
amindexd_LDADD = $(LDADD)
amindexd_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
amindexd_LDFLAGS = 
amlabel_SOURCES = amlabel.c
amlabel_OBJECTS =  amlabel.o
amlabel_LDADD = $(LDADD)
amlabel_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
amlabel_LDFLAGS = 
amtape_SOURCES = amtape.c
amtape_OBJECTS =  amtape.o
amtape_LDADD = $(LDADD)
amtape_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
amtape_LDFLAGS = 
amtrmidx_SOURCES = amtrmidx.c
amtrmidx_OBJECTS =  amtrmidx.o
amtrmidx_LDADD = $(LDADD)
amtrmidx_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
amtrmidx_LDFLAGS = 
driver_SOURCES = driver.c
driver_OBJECTS =  driver.o
driver_LDADD = $(LDADD)
driver_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
driver_LDFLAGS = 
dumper_SOURCES = dumper.c
dumper_OBJECTS =  dumper.o
dumper_LDADD = $(LDADD)
dumper_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
dumper_LDFLAGS = 
getconf_SOURCES = getconf.c
getconf_OBJECTS =  getconf.o
getconf_LDADD = $(LDADD)
getconf_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
getconf_LDFLAGS = 
planner_SOURCES = planner.c
planner_OBJECTS =  planner.o
planner_LDADD = $(LDADD)
planner_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
planner_LDFLAGS = 
amreport_OBJECTS =  reporter.o
amreport_LDADD = $(LDADD)
amreport_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
amreport_LDFLAGS = 
taper_SOURCES = taper.c
taper_OBJECTS =  taper.o
taper_LDADD = $(LDADD)
taper_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
taper_LDFLAGS = 
diskfile_OBJECTS =  diskfile.test.o
diskfile_LDADD = $(LDADD)
diskfile_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
diskfile_LDFLAGS = 
conffile_OBJECTS =  conffile.test.o
conffile_LDADD = $(LDADD)
conffile_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
conffile_LDFLAGS = 
infofile_OBJECTS =  infofile.test.o
infofile_LDADD = $(LDADD)
infofile_DEPENDENCIES =  libamserver.$(LIB_EXTENSION) \
../tape-src/libamtape.$(LIB_EXTENSION) \
../common-src/libamanda.$(LIB_EXTENSION)
infofile_LDFLAGS = 
SCRIPTS =  $(sbin_SCRIPTS)

CFLAGS = -g
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
HEADERS =  $(noinst_HEADERS)

DIST_COMMON =  Makefile.am Makefile.in amcheckdb.sh.in amcleanup.sh.in \
amdump.sh.in amfreetapes.sh.in amoverview.pl.in amrmtape.sh.in \
amstatus.pl.in amtoc.pl.in amverify.sh.in


PACKAGE = amanda
VERSION = 2.4.1p1

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

TAR = tar
SOURCES = $(libamserver_a_SOURCES) $(libamserver_la_SOURCES) amadmin.c amcheck.c amflush.c $(amindexd_SOURCES) amlabel.c amtape.c amtrmidx.c driver.c dumper.c getconf.c planner.c $(amreport_SOURCES) taper.c $(diskfile_SOURCES) $(conffile_SOURCES) $(infofile_SOURCES)
OBJECTS = $(libamserver_a_OBJECTS) $(libamserver_la_OBJECTS) amadmin.o amcheck.o amflush.o $(amindexd_OBJECTS) amlabel.o amtape.o amtrmidx.o driver.o dumper.o getconf.o planner.o $(amreport_OBJECTS) taper.o $(diskfile_OBJECTS) $(conffile_OBJECTS) $(infofile_OBJECTS)

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

.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 server-src/Makefile

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

amcheckdb.sh: $(top_builddir)/config.status amcheckdb.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
amcleanup.sh: $(top_builddir)/config.status amcleanup.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
amdump.sh: $(top_builddir)/config.status amdump.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
amfreetapes.sh: $(top_builddir)/config.status amfreetapes.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
amoverview.pl: $(top_builddir)/config.status amoverview.pl.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
amrmtape.sh: $(top_builddir)/config.status amrmtape.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
amtoc.pl: $(top_builddir)/config.status amtoc.pl.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
amverify.sh: $(top_builddir)/config.status amverify.sh.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
amstatus.pl: $(top_builddir)/config.status amstatus.pl.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:

libamserver.a: $(libamserver_a_OBJECTS) $(libamserver_a_DEPENDENCIES)
	-rm -f libamserver.a
	$(AR) cru libamserver.a $(libamserver_a_OBJECTS) $(libamserver_a_LIBADD)
	$(RANLIB) libamserver.a

mostlyclean-libLTLIBRARIES:

clean-libLTLIBRARIES:
	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)

distclean-libLTLIBRARIES:

maintainer-clean-libLTLIBRARIES:

install-libLTLIBRARIES: $(lib_LTLIBRARIES)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(libdir)
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo "$(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
	    $(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
	  else :; fi; \
	done

uninstall-libLTLIBRARIES:
	@$(NORMAL_UNINSTALL)
	list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  $(LIBTOOL)  --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
	done

libamserver.la: $(libamserver_la_OBJECTS) $(libamserver_la_DEPENDENCIES)
	$(LINK)  $(libamserver_la_LDFLAGS) $(libamserver_la_OBJECTS) $(libamserver_la_LIBADD) $(LIBS)

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

mostlyclean-sbinPROGRAMS:

clean-sbinPROGRAMS:
	-test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)

distclean-sbinPROGRAMS:

maintainer-clean-sbinPROGRAMS:

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

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

amadmin: $(amadmin_OBJECTS) $(amadmin_DEPENDENCIES)
	@rm -f amadmin
	$(LINK) $(amadmin_LDFLAGS) $(amadmin_OBJECTS) $(amadmin_LDADD) $(LIBS)

amcheck: $(amcheck_OBJECTS) $(amcheck_DEPENDENCIES)
	@rm -f amcheck
	$(LINK) $(amcheck_LDFLAGS) $(amcheck_OBJECTS) $(amcheck_LDADD) $(LIBS)

amflush: $(amflush_OBJECTS) $(amflush_DEPENDENCIES)
	@rm -f amflush
	$(LINK) $(amflush_LDFLAGS) $(amflush_OBJECTS) $(amflush_LDADD) $(LIBS)

amindexd: $(amindexd_OBJECTS) $(amindexd_DEPENDENCIES)
	@rm -f amindexd
	$(LINK) $(amindexd_LDFLAGS) $(amindexd_OBJECTS) $(amindexd_LDADD) $(LIBS)

amlabel: $(amlabel_OBJECTS) $(amlabel_DEPENDENCIES)
	@rm -f amlabel
	$(LINK) $(amlabel_LDFLAGS) $(amlabel_OBJECTS) $(amlabel_LDADD) $(LIBS)

amtape: $(amtape_OBJECTS) $(amtape_DEPENDENCIES)
	@rm -f amtape
	$(LINK) $(amtape_LDFLAGS) $(amtape_OBJECTS) $(amtape_LDADD) $(LIBS)

amtrmidx: $(amtrmidx_OBJECTS) $(amtrmidx_DEPENDENCIES)
	@rm -f amtrmidx
	$(LINK) $(amtrmidx_LDFLAGS) $(amtrmidx_OBJECTS) $(amtrmidx_LDADD) $(LIBS)

driver: $(driver_OBJECTS) $(driver_DEPENDENCIES)
	@rm -f driver
	$(LINK) $(driver_LDFLAGS) $(driver_OBJECTS) $(driver_LDADD) $(LIBS)

dumper: $(dumper_OBJECTS) $(dumper_DEPENDENCIES)
	@rm -f dumper
	$(LINK) $(dumper_LDFLAGS) $(dumper_OBJECTS) $(dumper_LDADD) $(LIBS)

getconf: $(getconf_OBJECTS) $(getconf_DEPENDENCIES)
	@rm -f getconf
	$(LINK) $(getconf_LDFLAGS) $(getconf_OBJECTS) $(getconf_LDADD) $(LIBS)

planner: $(planner_OBJECTS) $(planner_DEPENDENCIES)
	@rm -f planner
	$(LINK) $(planner_LDFLAGS) $(planner_OBJECTS) $(planner_LDADD) $(LIBS)

amreport: $(amreport_OBJECTS) $(amreport_DEPENDENCIES)
	@rm -f amreport
	$(LINK) $(amreport_LDFLAGS) $(amreport_OBJECTS) $(amreport_LDADD) $(LIBS)

taper: $(taper_OBJECTS) $(taper_DEPENDENCIES)
	@rm -f taper
	$(LINK) $(taper_LDFLAGS) $(taper_OBJECTS) $(taper_LDADD) $(LIBS)

diskfile: $(diskfile_OBJECTS) $(diskfile_DEPENDENCIES)
	@rm -f diskfile
	$(LINK) $(diskfile_LDFLAGS) $(diskfile_OBJECTS) $(diskfile_LDADD) $(LIBS)

conffile: $(conffile_OBJECTS) $(conffile_DEPENDENCIES)
	@rm -f conffile
	$(LINK) $(conffile_LDFLAGS) $(conffile_OBJECTS) $(conffile_LDADD) $(LIBS)

infofile: $(infofile_OBJECTS) $(infofile_DEPENDENCIES)
	@rm -f infofile
	$(LINK) $(infofile_LDFLAGS) $(infofile_OBJECTS) $(infofile_LDADD) $(LIBS)

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

uninstall-sbinSCRIPTS:
	@$(NORMAL_UNINSTALL)
	list='$(sbin_SCRIPTS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(sbindir)/`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 = server-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
amadmin.o: amadmin.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h diskfile.h tapefile.h \
	infofile.h logfile.h ../common-src/version.h holding.h \
	../common-src/fileheader.h find.h
amcheck.o: amcheck.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h ../common-src/statfs.h \
	diskfile.h tapefile.h ../tape-src/tapeio.h changer.h \
	../common-src/protocol.h ../common-src/dgram.h clock.h \
	../common-src/version.h amindex.h
amflush.o: amflush.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h diskfile.h tapefile.h \
	logfile.h clock.h ../common-src/version.h holding.h \
	../common-src/fileheader.h driverio.h
amindex.lo amindex.o: amindex.c amindex.h ../common-src/amanda.h \
	../config/config.h ../common-src/arglist.h
amindexd.o: amindexd.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h diskfile.h \
	../common-src/dgram.h ../common-src/version.h \
	../common-src/protocol.h amindex.h disk_history.h list_dir.h \
	logfile.h ../common-src/token.h
amlabel.o: amlabel.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h tapefile.h \
	../tape-src/tapeio.h changer.h
amtape.o: amtape.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h tapefile.h \
	../tape-src/tapeio.h clock.h changer.h ../common-src/version.h
amtrmidx.o: amtrmidx.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h diskfile.h tapefile.h find.h \
	../common-src/version.h
changer.lo changer.o: changer.c ../common-src/amanda.h \
	../config/config.h ../common-src/arglist.h conffile.h \
	../common-src/version.h changer.h
clock.lo clock.o: clock.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h clock.h
conffile.lo conffile.o: conffile.c ../common-src/amanda.h \
	../config/config.h ../common-src/arglist.h conffile.h clock.h
disk_history.o: disk_history.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h disk_history.h
diskfile.lo diskfile.o: diskfile.c ../common-src/amanda.h \
	../config/config.h ../common-src/arglist.h conffile.h \
	diskfile.h
driver.o: driver.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h clock.h conffile.h diskfile.h holding.h \
	../common-src/fileheader.h infofile.h logfile.h \
	../common-src/statfs.h ../common-src/token.h \
	../common-src/version.h driverio.h
driverio.lo driverio.o: driverio.c ../common-src/amanda.h \
	../config/config.h ../common-src/arglist.h clock.h conffile.h \
	diskfile.h infofile.h logfile.h ../common-src/token.h \
	driverio.h
dumper.o: dumper.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h amindex.h clock.h conffile.h logfile.h \
	../common-src/protocol.h ../common-src/dgram.h \
	../common-src/stream.h ../common-src/token.h \
	../common-src/version.h ../common-src/fileheader.h
find.lo find.o: find.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h tapefile.h logfile.h holding.h \
	diskfile.h conffile.h ../common-src/fileheader.h find.h
getconf.o: getconf.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h
holding.lo holding.o: holding.c ../common-src/amanda.h \
	../config/config.h ../common-src/arglist.h holding.h diskfile.h \
	conffile.h ../common-src/fileheader.h
infofile.lo infofile.o: infofile.c ../common-src/amanda.h \
	../config/config.h ../common-src/arglist.h conffile.h \
	infofile.h ../common-src/token.h
list_dir.o: list_dir.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h disk_history.h list_dir.h
logfile.lo logfile.o: logfile.c ../common-src/amanda.h \
	../config/config.h ../common-src/arglist.h conffile.h logfile.h
planner.o: planner.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h diskfile.h tapefile.h \
	infofile.h logfile.h clock.h ../common-src/dgram.h \
	../common-src/protocol.h ../common-src/version.h
reporter.o: reporter.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h tapefile.h diskfile.h \
	infofile.h logfile.h ../common-src/version.h
tapefile.lo tapefile.o: tapefile.c ../common-src/amanda.h \
	../config/config.h ../common-src/arglist.h tapefile.h \
	conffile.h
taper.o: taper.c ../common-src/amanda.h ../config/config.h \
	../common-src/arglist.h conffile.h tapefile.h clock.h \
	../common-src/stream.h logfile.h ../tape-src/tapeio.h changer.h \
	../common-src/version.h ../common-src/token.h \
	../common-src/fileheader.h

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

install-data: 
	@$(NORMAL_INSTALL)

install: install-exec install-data all
	@:

uninstall: uninstall-libLTLIBRARIES uninstall-libexecPROGRAMS uninstall-sbinPROGRAMS uninstall-sbinSCRIPTS

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


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-libLTLIBRARIES \
		mostlyclean-libexecPROGRAMS mostlyclean-sbinPROGRAMS \
		mostlyclean-tags mostlyclean-generic

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

distclean:  distclean-noinstLIBRARIES distclean-compile \
		distclean-libtool distclean-libLTLIBRARIES \
		distclean-libexecPROGRAMS distclean-sbinPROGRAMS \
		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-libLTLIBRARIES \
		maintainer-clean-libexecPROGRAMS \
		maintainer-clean-sbinPROGRAMS 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-libLTLIBRARIES \
distclean-libLTLIBRARIES clean-libLTLIBRARIES \
maintainer-clean-libLTLIBRARIES uninstall-libLTLIBRARIES \
install-libLTLIBRARIES mostlyclean-libexecPROGRAMS \
distclean-libexecPROGRAMS clean-libexecPROGRAMS \
maintainer-clean-libexecPROGRAMS uninstall-libexecPROGRAMS \
install-libexecPROGRAMS mostlyclean-sbinPROGRAMS distclean-sbinPROGRAMS \
clean-sbinPROGRAMS maintainer-clean-sbinPROGRAMS uninstall-sbinPROGRAMS \
install-sbinPROGRAMS uninstall-sbinSCRIPTS install-sbinSCRIPTS 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
	@list="$(sbindir)/amcheck $(libexecdir)/dumper $(libexecdir)/planner"; \
	for p in $$list; do \
		if echo "$(sbin_PROGRAMS) $(sbin_SCRIPTS) $(libexec_PROGRAMS) $(libexec_SCRIPTS)" | grep `basename $$p` >/dev/null 2>&1; then \
			pa=$(DESTDIR)`echo $$p|sed '$(transform)'`; \
			echo chown root $$pa; \
			chown root $$pa; \
			echo chmod u+s,o-rwx $$pa; \
			chmod u+s,o-rwx $$pa; \
		else true; \
		fi; \
	done

%.test.c: $(srcdir)/%.c
	echo '#define TEST' >$@
	echo '#include "$<"' >>$@

# 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:
