Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / bubasics / NTMakefile
CommitLineData
805e021f
CE
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
8RELDIR=bubasics
9!INCLUDE ..\config\NTMakefile.$(SYS_NAME)
10!INCLUDE ..\config\NTMakefile.version
11
12############################################################################
13# Install headers
14
15INCFILEDIR = $(DESTDIR)\include\afs
16
17INCFILES =\
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
29LIBFILE = $(DESTDIR)\lib\afs\afsbubasics.lib
30
31LIBOBJS =\
32 $(OUT)\butc.ss.obj \
33 $(OUT)\butc.cs.obj \
34 $(OUT)\butc.xdr.obj \
35 $(OUT)\bumon.ss.obj \
36 $(OUT)\bumon.cs.obj \
37 $(OUT)\bumon.xdr.obj \
38 $(OUT)\butc_errs.obj \
39 $(OUT)\butm_errs.obj \
40 $(OUT)\butx_errs.obj \
41 $(OUT)\AFS_component_version_number.obj
42
43$(LIBFILE): $(LIBOBJS)
44 $(LIBARCH)
45
46############################################################################
47# rxgen on butc.xg and bumon.xg
48
49butc.xdr.c: butc.xg butc.h
50 $(RXGEN) -A -c -x -o $@ butc.xg
51
52butc.ss.c: butc.xg butc.h
53 $(RXGEN) -A -S -o $@ butc.xg
54
55butc.cs.c: butc.xg butc.h
56 $(RXGEN) -A -C -o $@ butc.xg
57
58butc.h: butc.xg
59 $(RXGEN) -A -h -o $@ butc.xg
60
61bumon.xdr.c: bumon.xg bumon.h
62 $(RXGEN) -A -c -x -o $@ bumon.xg
63
64bumon.ss.c: bumon.xg bumon.h
65 $(RXGEN) -A -S -o $@ bumon.xg
66
67bumon.cs.c: bumon.xg bumon.h
68 $(RXGEN) -A -C -o $@ bumon.xg
69
70bumon.h: bumon.xg
71 $(RXGEN) -A -h -o $@ bumon.xg
72
73############################################################################
74# compile_et on butm_errs.et and butc_errs.et
75
76butm.h butm_errs.c: butm_errs.et butm.p.h
77 $(DEL) butm.h butm_errs.c
78 $(COMPILE_ET) butm_errs -h butm
79
80tcdata.h butc_errs.c: butc_errs.et tcdata.p.h butm.h
81 $(DEL) tcdata.h butc_errs.c
82 $(COMPILE_ET) butc_errs -h tcdata
83
84butx_errs.c butx.h: butx_errs.et
85 $(DEL) butx.h butx_errs.c
86 $(COMPILE_ET) butx_errs -h butx
87
88############################################################################
89# install targets
90
91install: $(LIBFILE) $(INCFILES)
92
93
94############################################################################
95# Local clean target; augments predefined clean target
96
97clean::
98 $(DEL) *.xdr.c *.ss.c *.cs.c butc.h bumon.h butm.h tcdata.h butx.h \
99 butc_errs.c butm_errs.c butx_errs.c
100
101mkdir:
102