cab8766adbfc47686678e81b19733a5eeef2580e
[openafs.git] / src / libadmin / test / Makefile
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 include ../../config/Makefile.${SYS_NAME}
9
10 CC = ${MT_CC}
11 CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
12
13
14 ########################################################################
15 # build tests
16
17 AFSCPLIBS =\
18         $(DESTDIR)/lib/afs/libafsadminutil.a \
19         $(DESTDIR)/lib/afs/libclientadmin.a \
20         $(DESTDIR)/lib/afs/libbosadmin.a \
21         $(DESTDIR)/lib/afs/libvosadmin.a \
22         $(DESTDIR)/lib/afs/libkasadmin.a \
23         $(DESTDIR)/lib/afs/libptsadmin.a \
24         $(DESTDIR)/lib/libafsauthent.a \
25         $(DESTDIR)/lib/libafsrpc.a \
26         $(DESTDIR)/lib/afs/libcmd.a  # static library
27
28 AFSCPOBJS =\
29         bos.o \
30         client.o \
31         kas.o \
32         pts.o \
33         util.o \
34         vos.o
35
36 afscp: afscp.o $(AFSCPOBJS) $(AFSCPLIBS)
37         $(CC) $(CFLAGS) -o afscp afscp.o $(AFSCPOBJS) \
38         -LDEST/lib/afs $(AFSCPLIBS) ${MTLIBS} $(XLIBS)
39
40 #######################################################################
41 install test tests: afscp
42
43 clean:
44         $(RM) -f *.o afscp core