Standardize License information
[openafs.git] / src / libadmin / pts / 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 SHELL = /bin/sh
9 include ../../config/Makefile.${SYS_NAME}
10
11 CC = ${MT_CC}
12 CFLAGS = ${OPTMZ} ${DBG} -I${SRCDIR}include ${MT_CFLAGS}
13 CCRULE = ${CC} ${CFLAGS} -c $?
14
15 PTSERVER = ../../ptserver/
16
17 ADMINOBJS = \
18         afs_ptsAdmin.o
19
20 PTSERVEROBJS = \
21         ptint.xdr.o \
22         ptint.cs.o
23
24 LIBOBJS = ${ADMINOBJS} ${PTSERVEROBJS}
25
26 LIBPTSADMIN = ${DESTDIR}/lib/afs/libptsadmin.a
27
28 system install: ${LIBPTSADMIN}
29
30 ${LIBPTSADMIN}: libptsadmin.a
31         ${INSTALL} afs_ptsAdmin.h ${DESTDIR}include/afs
32         ${INSTALL} libptsadmin.a ${LIBPTSADMIN}
33
34 libptsadmin.a: ${LIBOBJS}
35         -rm -f $@
36         ar rv $@ ${LIBOBJS}
37         ${RANLIB} $@
38
39 afs_ptsAdmin.o: afs_ptsAdmin.h
40
41 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
42         ${CCRULE};
43
44 ptint.cs.o: ${PTSERVER}/ptint.cs.c
45         ${CCRULE};
46
47 clean:
48         rm -f *.o libptsadmin*