death-to-pinstall-20060801
[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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11 CC = ${MT_CC}
12 CFLAGS=${COMMON_CFLAGS} ${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 all: ${TOP_INCDIR}/afs/afs_ptsAdmin.h ${TOP_LIBDIR}/libptsadmin.a
27
28 ${TOP_INCDIR}/afs/afs_ptsAdmin.h: afs_ptsAdmin.h
29         ${INSTALL_DATA} $? $@
30
31 ${TOP_LIBDIR}/libptsadmin.a: libptsadmin.a
32         ${INSTALL_DATA} $? $@
33
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
39
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
45
46 libptsadmin.a: ${LIBOBJS}
47         -$(RM) -f $@
48         $(AR) crv $@ ${LIBOBJS}
49         ${RANLIB} $@
50
51 afs_ptsAdmin.o: afs_ptsAdmin.h
52
53 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
54         ${CCRULE}
55
56 ptint.cs.o: ${PTSERVER}/ptint.cs.c
57         ${CCRULE}
58
59 clean:
60         $(RM) -f *.o libptsadmin*