# 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
include @TOP_OBJDIR@/src/config/Makefile.pthread
top_builddir=@TOP_OBJDIR@

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

AFSCPLIBS =\
	$(TOP_LIBDIR)/libafsadminutil.a \
	$(TOP_LIBDIR)/libclientadmin.a \
	$(TOP_LIBDIR)/libbosadmin.a \
	$(TOP_LIBDIR)/libvosadmin.a \
	$(TOP_LIBDIR)/libkasadmin.a \
	$(TOP_LIBDIR)/libptsadmin.a \
	$(TOP_LIBDIR)/libafsauthent.a \
	$(TOP_LIBDIR)/libafsrpc.a \
	$(top_builddir)/src/cmd/liboafs_cmd.la \
	$(top_builddir)/src/opr/liboafs_opr.la \
	$(top_builddir)/src/util/liboafs_util.la \
	${TOP_LIBDIR}/libafshcrypto_lwp.a

AFSCPOBJS =\
	bos.o \
	client.o \
	kas.o \
	pts.o \
	util.o \
	vos.o

all test tests: afscp

CFLAGS_client.o = @CFLAGS_NOERROR@

afscp: afscp.o $(AFSCPOBJS) $(AFSCPLIBS)
	$(LT_LDRULE_static) afscp.o $(AFSCPOBJS) $(AFSCPLIBS) \
		$(LIB_roken) $(LIB_crypt) ${MT_LIBS}

#######################################################################
install:

dest:

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