b7600d810b635509635ae7f85b5afe0b4fcc4377
[openafs.git] / src / libadmin / kas / 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} -I../../kauth -I${srcdir}/../../kauth
17 CCRULE = ${CC} ${CFLAGS} -c $?
18
19 KAUTH= ${srcdir}/../../kauth/
20
21 ADMINOBJS = afs_kasAdmin.o
22
23 KAUTHOBJS = \
24         kauth.cs.o \
25         kauth.xdr.o \
26         kaaux.o
27
28 LIBOBJS = ${ADMINOBJS} ${KAUTHOBJS}
29
30 all: ${TOP_INCDIR}/afs/afs_kasAdmin.h ${TOP_LIBDIR}/libkasadmin.a
31
32 ${TOP_INCDIR}/afs/afs_kasAdmin.h: afs_kasAdmin.h
33         ${INSTALL_DATA} $? $@
34
35 ${TOP_LIBDIR}/libkasadmin.a: libkasadmin.a
36         ${INSTALL_DATA} $? $@
37
38 install: afs_kasAdmin.h libkasadmin.a
39         ${INSTALL} -d ${DESTDIR}${includedir}/afs
40         ${INSTALL} -d ${DESTDIR}${libdir}/afs
41         ${INSTALL_DATA} afs_kasAdmin.h ${DESTDIR}${includedir}/afs/afs_kasAdmin.h
42         ${INSTALL_DATA} libkasadmin.a ${DESTDIR}${libdir}/afs/libkasadmin.a
43
44 dest: afs_kasAdmin.h libkasadmin.a
45         ${INSTALL} -d ${DEST}/include/afs
46         ${INSTALL} -d ${DEST}/lib/afs
47         ${INSTALL_DATA} afs_kasAdmin.h ${DEST}/include/afs/afs_kasAdmin.h
48         ${INSTALL_DATA} libkasadmin.a ${DEST}/lib/afs/libkasadmin.a
49
50 libkasadmin.a: ${LIBOBJS}
51         -$(RM) -f $@
52         $(AR) crv $@ ${LIBOBJS}
53         ${RANLIB} $@
54
55 afs_kasAdmin.o: afs_kasAdmin.h
56
57 kauth.cs.o: ../../kauth/kauth.cs.c
58         ${CCRULE}
59
60 kauth.xdr.o: ../../kauth/kauth.xdr.c
61         ${CCRULE}
62
63 kaaux.o: ${KAUTH}/kaaux.c
64         ${CCRULE}
65
66 clean:
67         $(RM) -f *.o libkasadmin*