Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / libadmin / bos / Makefile.in
CommitLineData
805e021f
CE
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
8srcdir=@srcdir@
9include @TOP_OBJDIR@/src/config/Makefile.config
10include @TOP_OBJDIR@/src/config/Makefile.pthread
11
12
13BOZO = ../../bozo
14
15ADMINOBJS = afs_bosAdmin.o
16
17BOZOOBJS = bosint.xdr.o bosint.cs.o
18
19LIBOBJS = ${ADMINOBJS} ${BOZOOBJS}
20
21all: ${TOP_INCDIR}/afs/afs_bosAdmin.h ${TOP_LIBDIR}/libbosadmin.a
22
23${TOP_INCDIR}/afs/afs_bosAdmin.h: afs_bosAdmin.h
24 ${INSTALL_DATA} $? $@
25
26${TOP_LIBDIR}/libbosadmin.a: libbosadmin.a
27 ${INSTALL_DATA} $? $@
28
29install: libbosadmin.a afs_bosAdmin.h
30 ${INSTALL} -d ${DESTDIR}${includedir}/afs
31 ${INSTALL} -d ${DESTDIR}${libdir}/afs
32 ${INSTALL_DATA} ${srcdir}/afs_bosAdmin.h ${DESTDIR}${includedir}/afs/afs_bosAdmin.h
33 ${INSTALL_DATA} libbosadmin.a ${DESTDIR}${libdir}/afs/libbosadmin.a
34
35dest: libbosadmin.a afs_bosAdmin.h
36 ${INSTALL} -d ${DEST}/include/afs
37 ${INSTALL} -d ${DEST}/lib/afs
38 ${INSTALL_DATA} ${srcdir}/afs_bosAdmin.h ${DEST}/include/afs/afs_bosAdmin.h
39 ${INSTALL_DATA} libbosadmin.a ${DEST}/lib/afs/libbosadmin.a
40
41libbosadmin.a: ${LIBOBJS}
42 -$(RM) -f $@
43 $(AR) crv $@ ${LIBOBJS}
44 ${RANLIB} $@
45
46afs_bosAdmin.o: afs_bosAdmin.c afs_bosAdmin.h
47
48bosint.xdr.o: ${BOZO}/bosint.xdr.c
49 $(AFS_CCRULE) $(BOZO)/bosint.xdr.c
50
51bosint.cs.o: ${BOZO}/bosint.cs.c
52 $(AFS_CCRULE) $(BOZO)/bosint.cs.c
53
54clean:
55 $(RM) -f *.o libbosadmin*