1 # Copyright 2000, International Business Machines Corporation and others.
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
9 include @TOP_OBJDIR@/src/config/Makefile.config
12 CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS}
13 CCRULE = ${CC} ${CFLAGS} -c $?
15 PTSERVER = ../../ptserver/
24 LIBOBJS = ${ADMINOBJS} ${PTSERVEROBJS}
26 all: ${TOP_INCDIR}/afs/afs_ptsAdmin.h ${TOP_LIBDIR}/libptsadmin.a
28 ${TOP_INCDIR}/afs/afs_ptsAdmin.h: afs_ptsAdmin.h
31 ${TOP_LIBDIR}/libptsadmin.a: libptsadmin.a
34 install: afs_ptsAdmin.h libptsadmin.a
35 ${INSTALL} -d ${DESTDIR}${includedir}/afs
36 ${INSTALL} -d ${DESTDIR}${libdir}/afs
37 ${INSTALL_DATA} afs_ptsAdmin.h ${DESTDIR}${includedir}/afs/afs_ptsAdmin.h
38 ${INSTALL_DATA} libptsadmin.a ${DESTDIR}${libdir}/afs/libptsadmin.a
40 dest: afs_ptsAdmin.h libptsadmin.a
41 ${INSTALL} -d ${DEST}/include/afs
42 ${INSTALL} -d ${DEST}/lib/afs
43 ${INSTALL_DATA} afs_ptsAdmin.h ${DEST}/include/afs/afs_ptsAdmin.h
44 ${INSTALL_DATA} libptsadmin.a ${DEST}/lib/afs/libptsadmin.a
46 libptsadmin.a: ${LIBOBJS}
48 $(AR) crv $@ ${LIBOBJS}
51 afs_ptsAdmin.o: afs_ptsAdmin.h
53 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
56 ptint.cs.o: ${PTSERVER}/ptint.cs.c
60 $(RM) -f *.o libptsadmin*