# Copyright 2000, International Business Machines Corporation and others.
# All Rights Reserved.
# 
# This software has been released under the terms of the IBM Public
# License.  For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html

srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@

CC = ${MT_CC}
CFLAGS = ${DBG} ${OPTMZ} -DAFS_PTHREAD_ENV -I${SRCDIR}/include ${MT_CFLAGS}


########################################################################
# build tests

CFGTESTLIBS =\
	$(DESTDIR)/lib/afs/libafsadminutil.a \
	$(DESTDIR)/lib/afs/libclientadmin.a \
	$(DESTDIR)/lib/afs/libcfgadmin.a \
	$(DESTDIR)/lib/afs/libbosadmin.a \
	$(DESTDIR)/lib/afs/libvosadmin.a \
	$(DESTDIR)/lib/afs/libkasadmin.a \
	$(DESTDIR)/lib/afs/libptsadmin.a \
	$(DESTDIR)/lib/libafsauthent.a \
	$(DESTDIR)/lib/libafsrpc.a \
	$(DESTDIR)/lib/afs/libcmd.a  # static library

cfgtest: cfgtest.o $(CFGTESTLIBS)
	$(CC) $(CFLAGS) -o cfgtest cfgtest.o -LDEST/lib/afs $(CFGTESTLIBS) $(XLIBS)

#######################################################################
test tests: cfgtest

clean:
	$(RM) -f *.o cfgtest core
