Standardize License information
[openafs.git] / src / libadmin / bos / Makefile
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 SHELL = /bin/sh
9 include ../../config/Makefile.${SYS_NAME}
10
11 CC = ${MT_CC}
12 CFLAGS = ${OPTMZ} ${DBG} -I${SRCDIR}include ${MT_CFLAGS} 
13 CCRULE = ${CC} ${CFLAGS} -c $?
14
15 BOZO = ../../bozo/
16
17 ADMINOBJS = afs_bosAdmin.o
18
19 BOZOOBJS = bosint.xdr.o bosint.cs.o
20
21 LIBOBJS = ${ADMINOBJS} ${BOZOOBJS}
22
23 LIBBOSADMIN = ${DESTDIR}/lib/afs/libbosadmin.a
24
25 system install: ${LIBBOSADMIN}
26
27 ${LIBBOSADMIN}: libbosadmin.a
28         ${INSTALL} afs_bosAdmin.h ${DESTDIR}include/afs
29         ${INSTALL} libbosadmin.a ${LIBBOSADMIN}
30
31 libbosadmin.a: ${LIBOBJS}
32         -rm -f $@
33         ar rv $@ ${LIBOBJS}
34         ${RANLIB} $@
35
36 afs_bosAdmin.o: afs_bosAdmin.h
37
38 bosint.xdr.o: ${BOZO}/bosint.xdr.c
39         ${CCRULE}
40
41 bosint.cs.o: ${BOZO}/bosint.cs.c
42         ${CCRULE}
43
44 clean:
45         rm -f *.o libbosadmin*