Build system: Move install definitions to include
[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 include @TOP_OBJDIR@/src/config/Makefile.pthread
11
12
13 KAUTH= ${srcdir}/../../kauth
14
15 ADMINOBJS = afs_kasAdmin.o
16
17 KAUTHOBJS = \
18         kauth.cs.o \
19         kauth.xdr.o \
20         kaaux.o
21
22 LIBOBJS = ${ADMINOBJS} ${KAUTHOBJS}
23
24 all: ${TOP_INCDIR}/afs/afs_kasAdmin.h ${TOP_LIBDIR}/libkasadmin.a
25
26 ${TOP_INCDIR}/afs/afs_kasAdmin.h: afs_kasAdmin.h
27         ${INSTALL_DATA} $? $@
28
29 ${TOP_LIBDIR}/libkasadmin.a: libkasadmin.a
30         ${INSTALL_DATA} $? $@
31
32 install: afs_kasAdmin.h libkasadmin.a
33         ${INSTALL} -d ${DESTDIR}${includedir}/afs
34         ${INSTALL} -d ${DESTDIR}${libdir}/afs
35         ${INSTALL_DATA} ${srcdir}/afs_kasAdmin.h ${DESTDIR}${includedir}/afs/afs_kasAdmin.h
36         ${INSTALL_DATA} libkasadmin.a ${DESTDIR}${libdir}/afs/libkasadmin.a
37
38 dest: afs_kasAdmin.h libkasadmin.a
39         ${INSTALL} -d ${DEST}/include/afs
40         ${INSTALL} -d ${DEST}/lib/afs
41         ${INSTALL_DATA} ${srcdir}/afs_kasAdmin.h ${DEST}/include/afs/afs_kasAdmin.h
42         ${INSTALL_DATA} libkasadmin.a ${DEST}/lib/afs/libkasadmin.a
43
44 libkasadmin.a: ${LIBOBJS}
45         -$(RM) -f $@
46         $(AR) crv $@ ${LIBOBJS}
47         ${RANLIB} $@
48
49 CFLAGS_afs_kasAdmin.o = @CFLAGS_NOERROR@
50 afs_kasAdmin.o: afs_kasAdmin.c afs_kasAdmin.h
51
52 kauth.cs.o: ../../kauth/kauth.cs.c
53         $(AFS_CCRULE) ../../kauth/kauth.cs.c
54
55 kauth.xdr.o: ../../kauth/kauth.xdr.c
56         $(AFS_CCRULE) ../../kauth/kauth.xdr.c
57
58 kaaux.o: ${KAUTH}/kaaux.c
59         $(AFS_CCRULE) $(KAUTH)/kaaux.c
60
61 clean:
62         $(RM) -f *.o libkasadmin*