0d08af27a174dc4fc465f992af49427ed9936c8f
[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=-I. -I${srcdir} ${OPTMZ} ${DBG} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${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 install: ${DESTDIR}${includedir}/afs/afs_ptsAdmin.h ${DESTDIR}${libdir}/afs/libptsadmin.a
29
30 dest: ${DEST}/include/afs/afs_ptsAdmin.h ${DEST}/lib/afs/libptsadmin.a
31
32 ${TOP_INCDIR}/afs/afs_ptsAdmin.h: afs_ptsAdmin.h
33         ${INSTALL} $? $@
34
35 ${DESTDIR}${includedir}/afs/afs_ptsAdmin.h: afs_ptsAdmin.h
36         ${INSTALL} $? $@
37
38 ${DEST}/include/afs/afs_ptsAdmin.h: afs_ptsAdmin.h
39         ${INSTALL} $? $@
40
41 ${TOP_LIBDIR}/libptsadmin.a: libptsadmin.a
42         ${INSTALL} $? $@
43
44 ${DESTDIR}${libdir}/afs/libptsadmin.a: libptsadmin.a
45         ${INSTALL} $? $@
46
47 ${DEST}/lib/afs/libptsadmin.a: libptsadmin.a
48         ${INSTALL} $? $@
49
50 libptsadmin.a: ${LIBOBJS}
51         -$(RM) -f $@
52         $(AR) crv $@ ${LIBOBJS}
53         ${RANLIB} $@
54
55 afs_ptsAdmin.o: afs_ptsAdmin.h
56
57 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
58         ${CCRULE}
59
60 ptint.cs.o: ${PTSERVER}/ptint.cs.c
61         ${CCRULE}
62
63 clean:
64         $(RM) -f *.o libptsadmin*