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