# $Id: Makefile.in,v 1.1 1999/10/23 17:49:33 lha Exp $

srcdir		= @srcdir@
VPATH		= @srcdir@

CC		= @CC@
LN_S		= @LN_S@

INSTALL		= @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@
MKINSTALLDIRS 	= @top_srcdir@/mkinstalldirs

prefix 		= @prefix@
exec_prefix 	= @exec_prefix@
libdir 		= @libdir@
libexecdir 	= @libexecdir@
bindir 		= @bindir@
transform	= @program_transform_name@
EXECSUFFIX	= @EXECSUFFIX@

APPL_BIN	= afsaclmgr

DEFS		= @DEFS@

SHELL		= /bin/sh

CFLAGS		= @CFLAGS@
X_CFLAGS	= @X_CFLAGS@

ETAGS		= etags
MAKEDEPEND	= makedepend
RXKADINC	= -I$(srcdir)/../../rxkad
INCLUDES	=
DEFINES		=
REALCFLAGS	= 
RXKAD_LIBS	=
KERNEL_INCLUDE  =
LIB_tgetent	=
READLINE_lib	=
KAFS_LIBS	=
LIBS		=
LIBDEPENDS	=
PROGS		= afsaclmgr
UDEBUG_SRCS	=
SRCS		=
UDEBUG_OBJS	=
HDRS		= 

GUILE_GTK	= @GUILE_GTK@

all:		$(PROGS)

.PHONY: all install uninstall depend tags clean

afsaclmgr: afsaclmgr.in
		sed -e "s!%GUILE_GTK%!$(GUILE_GTK)!" $(srcdir)/afsaclmgr.in > $@
		chmod +x $@


install: all
		$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
		PROG_BIN='$(APPL_BIN)'; for x in $$PROG_BIN; do \
			f=`echo $$x | sed '$(transform)'`; \
			$(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/$$f; \
		done ;\

uninstall:
		PROG_BIN='$(APPL_BIN)'; for x in $$PROG_BIN; do \
			f=`echo $$x | sed '$(transform)'`; \
			rm -f $(DESTDIR)$(bindir)/$$f; \
		done

udebug:		$(UDEBUG_OBJS) $(LIBDEPENDS)
		$(CC) $(LDFLAGS) -o $@ $(UDEBUG_OBJS) $(LIBS)

Makefile:	Makefile.in ../../config.status
		cd ../..; CONFIG_FILES=appl/afsmgr/Makefile CONFIG_HEADERS= $(SHELL) config.status

depend:		$(CFILES)
		$(MAKEDEPEND) -- $(REALCFLAGS) -- $^

tags:		TAGS

TAGS:		$(SRCS) $(HDRS)
		$(ETAGS) -t $(SRCS) $(HDRS)

clean		:
		rm -f $(PROGS) $(OBJS) *~ *.o core

mostlyclean:	clean

distclean:	clean
		rm -f Makefile config.status

realclean:	distclean
		rm -f TAGS
