045c2281cbd1dc6f4d529b5c6cebe7bfd439559e
[openafs.git] / src / fsint / 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
11 OBJS=afsaux.o afscbint.cs.o afscbint.ss.o afscbint.xdr.o afsint.cs.o afsint.ss.o afsint.xdr.o
12 CFLAGS=-I. -I${srcdir} ${DBUG} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS}
13
14 all: \
15         ${TOP_LIBDIR}/libafsint.a depinstall
16
17 depinstall: \
18         ${TOP_INCDIR}/afs/afsint.h \
19         ${TOP_INCDIR}/afs/afscbint.h \
20         Kcallback.ss.c Kcallback.h Kvice.cs.c Kvice.h Kvice.xdr.c afscbint.h afsint.h 
21
22 libafsint.a: ${OBJS} AFS_component_version_number.o
23         -$(RM) -f $@
24         $(AR) crv $@ ${OBJS} AFS_component_version_number.o
25         $(RANLIB) $@
26
27 afsaux.o: afsaux.c afsint.h
28
29 Kcallback.cs.c: common.xg afscbint.xg Kvice.h Kcallback.h
30         ${RXGEN} -x -k -C -o Kcallback.cs.c ${srcdir}/afscbint.xg
31
32 Kcallback.ss.c: common.xg afscbint.xg Kvice.h Kcallback.h
33         ${RXGEN} -x -k -S -o Kcallback.ss.c ${srcdir}/afscbint.xg
34
35 Kcallback.xdr.c: common.xg afscbint.xg Kvice.h Kcallback.h
36         ${RXGEN} -x -k -y -c -o Kcallback.xdr.c ${srcdir}/afscbint.xg
37
38 Kvice.cs.c: common.xg afsint.xg Kvice.h
39         ${RXGEN} -x -k -C -o Kvice.cs.c ${srcdir}/afsint.xg
40
41 Kvice.ss.c: common.xg afsint.xg Kvice.h
42         ${RXGEN} -x -k -S -o Kvice.ss.c ${srcdir}/afsint.xg
43
44 Kvice.xdr.c: common.xg afsint.xg
45         ${RXGEN} -x -k -c -o Kvice.xdr.c ${srcdir}/afsint.xg
46
47 Kvice.h: common.xg afsint.xg
48         ${RXGEN} -x -k -h -o Kvice.h ${srcdir}/afsint.xg
49
50 Kcallback.h: common.xg afscbint.xg
51         ${RXGEN} -x -k -h -o Kcallback.h ${srcdir}/afscbint.xg
52
53 afscbint.cs.c: common.xg afscbint.xg afsint.h afscbint.h 
54         ${RXGEN} -x -C -o afscbint.cs.c ${srcdir}/afscbint.xg
55
56 afscbint.ss.c: common.xg afscbint.xg afsint.h afscbint.h
57         ${RXGEN} -x -S -o afscbint.ss.c ${srcdir}/afscbint.xg
58
59 afscbint.xdr.c: common.xg afscbint.xg afsint.h afscbint.h
60         ${RXGEN} -x -y -c -o afscbint.xdr.c ${srcdir}/afscbint.xg
61
62 afsint.cs.c: common.xg afsint.xg afsint.h
63         ${RXGEN} -x -C -o afsint.cs.c ${srcdir}/afsint.xg
64
65 afsint.ss.c: common.xg afsint.xg afsint.h
66         ${RXGEN} -x -S -o afsint.ss.c ${srcdir}/afsint.xg
67
68 afsint.xdr.c: common.xg afsint.xg
69         ${RXGEN} -x -c -o afsint.xdr.c ${srcdir}/afsint.xg
70
71 afsint.h: common.xg afsint.xg
72         ${RXGEN} -x -h -o afsint.h ${srcdir}/afsint.xg
73
74 afscbint.h: common.xg afscbint.xg
75         ${RXGEN} -x -h -o afscbint.h ${srcdir}/afscbint.xg
76
77 #
78 # Installation targets
79 #
80 ${TOP_LIBDIR}/libafsint.a: libafsint.a
81         ${INSTALL} $? $@
82
83 ${TOP_INCDIR}/afs/afsint.h: afsint.h
84         ${INSTALL} $? $@
85
86 ${TOP_INCDIR}/afs/afscbint.h: afscbint.h
87         ${INSTALL} $? $@
88
89 install: \
90         ${DESTDIR}${libdir}/afs/libafsint.a \
91         ${DESTDIR}${includedir}/afs/afsint.h \
92         ${DESTDIR}${includedir}/afs/afscbint.h
93
94 ${DESTDIR}${libdir}/afs/libafsint.a: libafsint.a
95         ${INSTALL} $? $@
96
97 ${DESTDIR}${includedir}/afs/afsint.h: afsint.h
98         ${INSTALL} $? $@
99
100 ${DESTDIR}${includedir}/afs/afscbint.h: afscbint.h
101         ${INSTALL} $? $@
102
103 dest: \
104         ${DEST}/lib/afs/libafsint.a \
105         ${DEST}/include/afs/afsint.h \
106         ${DEST}/include/afs/afscbint.h
107
108 ${DEST}/lib/afs/libafsint.a: libafsint.a
109         ${INSTALL} $? $@
110
111 ${DEST}/include/afs/afscbint.h: afscbint.h
112         ${INSTALL} $? $@
113
114 ${DEST}/include/afs/afsint.h: afsint.h
115         ${INSTALL} $? $@
116
117 #
118 # Misc targets
119 #
120
121 clean:
122         $(RM) -f *.o *.cs.c *.ss.c *.er.c *.a *.xdr.c core \
123                 afsint.h afscbint.h AFS_component_version_number.c 
124
125 include ../config/Makefile.version
126