f045fa4903b55afe8def95b7661dc7a67429197a
[openafs.git] / src / libadmin / bos / 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 BOZO = ../../bozo/
21
22 ADMINOBJS = afs_bosAdmin.o
23
24 BOZOOBJS = bosint.xdr.o bosint.cs.o
25
26 LIBOBJS = ${ADMINOBJS} ${BOZOOBJS}
27
28 LIBBOSADMIN = ${DESTDIR}/lib/afs/libbosadmin.a
29
30 system install: ${LIBBOSADMIN}
31
32 ${LIBBOSADMIN}: libbosadmin.a
33         ${INSTALL} afs_bosAdmin.h ${DESTDIR}include/afs
34         ${INSTALL} libbosadmin.a ${LIBBOSADMIN}
35
36 libbosadmin.a: ${LIBOBJS}
37         -rm -f $@
38         ar rv $@ ${LIBOBJS}
39         ${RANLIB} $@
40
41 afs_bosAdmin.o: afs_bosAdmin.h
42
43 bosint.xdr.o: ${BOZO}/bosint.xdr.c
44         ${CCRULE}
45
46 bosint.cs.o: ${BOZO}/bosint.cs.c
47         ${CCRULE}
48
49 clean:
50         rm -f *.o libbosadmin*