c512c7cc388844d02f327b04858d89e305baf404
[openafs.git] / src / libadmin / client / 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${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS}
13
14 ADMINOBJS = afs_clientAdmin.o
15
16 LIBOBJS = ${ADMINOBJS}
17
18 LIBCLIENTADMIN = ${DESTDIR}/lib/afs/libclientadmin.a
19
20 system install: ${LIBCLIENTADMIN}
21
22 ${LIBCLIENTADMIN}: libclientadmin.a
23         ${INSTALL} afs_clientAdmin.h ${DESTDIR}include/afs
24         ${INSTALL} libclientadmin.a ${LIBCLIENTADMIN}
25
26 libclientadmin.a: ${LIBOBJS}
27         -rm -f $@
28         ar rv $@ ${LIBOBJS}
29         ${RANLIB} $@
30
31 afs_clientAdmin.o: afs_clientAdmin.h
32
33 clean:
34         rm -f *.o libclientadmin*