85d8bd26e9f927a23846e5b20e84f678dd0f4212
[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 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
15 CC = ${MT_CC}
16 CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS}
17 CCRULE = ${CC} ${CFLAGS} -c $?
18
19 PTSERVER = ../../ptserver/
20
21 ADMINOBJS = \
22         afs_ptsAdmin.o
23
24 PTSERVEROBJS = \
25         ptint.xdr.o \
26         ptint.cs.o
27
28 LIBOBJS = ${ADMINOBJS} ${PTSERVEROBJS}
29
30 all: ${TOP_INCDIR}/afs/afs_ptsAdmin.h ${TOP_LIBDIR}/libptsadmin.a
31
32 ${TOP_INCDIR}/afs/afs_ptsAdmin.h: afs_ptsAdmin.h
33         ${INSTALL_DATA} $? $@
34
35 ${TOP_LIBDIR}/libptsadmin.a: libptsadmin.a
36         ${INSTALL_DATA} $? $@
37
38 install: afs_ptsAdmin.h libptsadmin.a
39         ${INSTALL} -d ${DESTDIR}${includedir}/afs
40         ${INSTALL} -d ${DESTDIR}${libdir}/afs
41         ${INSTALL_DATA} afs_ptsAdmin.h ${DESTDIR}${includedir}/afs/afs_ptsAdmin.h
42         ${INSTALL_DATA} libptsadmin.a ${DESTDIR}${libdir}/afs/libptsadmin.a
43
44 dest: afs_ptsAdmin.h libptsadmin.a
45         ${INSTALL} -d ${DEST}/include/afs
46         ${INSTALL} -d ${DEST}/lib/afs
47         ${INSTALL_DATA} afs_ptsAdmin.h ${DEST}/include/afs/afs_ptsAdmin.h
48         ${INSTALL_DATA} libptsadmin.a ${DEST}/lib/afs/libptsadmin.a
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*