windows-build-updates-20030314
[openafs.git] / src / bubasics / NTMakefile
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 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
9 !INCLUDE ..\config\NTMakefile.version
10
11
12 ############################################################################
13 # Install headers
14
15 INCFILEDIR = $(DESTDIR)\include\afs
16
17 INCFILES =\
18         $(INCFILEDIR)\bubasics.h \
19         $(INCFILEDIR)\butc.h \
20         $(INCFILEDIR)\bumon.h \
21         $(INCFILEDIR)\butm.h \
22         $(INCFILEDIR)\butx.h \
23         $(INCFILEDIR)\tcdata.h
24
25
26 ############################################################################
27 # build afsbubasics.lib
28
29 LIBFILE = $(DESTDIR)\lib\afs\afsbubasics.lib
30
31 LIBOBJS =\
32         $(OJT)\butc.ss.obj \
33         $(OJT)\butc.cs.obj \
34         $(OJT)\butc.xdr.obj \
35         $(OJT)\bumon.ss.obj \
36         $(OJT)\bumon.cs.obj \
37         $(OJT)\bumon.xdr.obj \
38         $(OJT)\butc_errs.obj \
39         $(OJT)\butm_errs.obj \
40         $(OJT)\butx_errs.obj \
41         $(OJT)\AFS_component_version_number.obj
42
43 $(LIBFILE): $(LIBOBJS) 
44         $(LIBARCH) 
45
46 ############################################################################
47 # rxgen on butc.xg and bumon.xg
48
49 butc.h butc.xdr.c butc.ss.c butc.cs.c: butc.xg
50         $(RXGEN) $**
51
52 bumon.h bumon.xdr.c bumon.ss.c bumon.cs.c: bumon.xg
53         $(RXGEN) $**
54
55
56 ############################################################################
57 # compile_et on butm_errs.et and butc_errs.et 
58
59 butm.h butm_errs.c: butm_errs.et butm.p.h
60         $(DEL) butm.h butm_errs.c
61         $(COMPILE_ET) butm_errs -h butm
62         
63 tcdata.h butc_errs.c: butc_errs.et tcdata.p.h butm.h
64         $(DEL) tcdata.h butc_errs.c
65         $(COMPILE_ET) butc_errs -h tcdata
66
67 butx_errs.c butx.h: butx_errs.et
68         $(DEL) butx.h butx_errs.c
69         $(COMPILE_ET) butx_errs -h butx
70
71 ############################################################################
72 # install targets
73
74 install: $(LIBFILE) $(INCFILES)
75
76
77 ############################################################################
78 # Local clean target; augments predefined clean target
79
80 clean::
81         $(DEL) *.xdr.c *.ss.c *.cs.c butc.h bumon.h butm.h tcdata.h butx.h \
82                 butc_errs.c butm_errs.c butx_errs.c
83
84 mkdir:
85