linux-and-64bit-cleanup-20050710
[openafs.git] / src / budb / 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 RELDIR=budb
9 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -DNOGDI -DWIN32_LEAN_AND_MEAN
10 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
11 !INCLUDE ..\config\NTMakefile.version
12
13 ############################################################################
14 # install headers
15 INCFILEDIR = $(DESTDIR)\include\afs  # header file install directory
16
17 INCFILES =\
18         $(INCFILEDIR)\budb.h \
19         $(INCFILEDIR)\budb_errs.h \
20         $(INCFILEDIR)\budb_client.h
21         
22
23
24 ############################################################################
25 # Definitions for building a static library
26
27 LIBFILE = $(DESTDIR)\lib\afs\afsbudb.lib
28
29 LIBOBJS =\
30         $(OUT)\budb_errs.obj \
31         $(OUT)\budb.cs.obj \
32         $(OUT)\budb.xdr.obj \
33         $(OUT)\struct_ops.obj \
34         $(OUT)\AFS_component_version_number.obj
35
36 $(LIBFILE): $(LIBOBJS) 
37         $(LIBARCH) 
38
39
40 ############################################################################
41 # Definitions for building a EXE.
42
43 EXEFILE = $(DESTDIR)\root.server\usr\afs\bin\buserver.exe
44
45 EXEOBJS =\
46         $(OUT)\database.obj \
47         $(OUT)\db_alloc.obj \
48         $(OUT)\db_dump.obj \
49         $(OUT)\db_hash.obj \
50         $(OUT)\struct_ops.obj \
51         $(OUT)\ol_verify.obj \
52         $(OUT)\budb.ss.obj \
53         $(OUT)\budb.xdr.obj \
54         $(OUT)\dbs_dump.obj \
55         $(OUT)\db_lock.obj \
56         $(OUT)\db_text.obj \
57         $(OUT)\procs.obj \
58         $(OUT)\budb_errs.obj \
59         $(OUT)\server.obj \
60         $(OUT)\buserver.res
61
62
63 EXELIBS =\
64         $(DESTDIR)\lib\afs\afsbubasics.lib \
65         $(DESTDIR)\lib\afs\afsprot.lib \
66         $(DESTDIR)\lib\afsrx.lib \
67         $(DESTDIR)\lib\afslwp.lib \
68         $(DESTDIR)\lib\afs\afscom_err.lib \
69         $(DESTDIR)\lib\afs\afsaudit.lib \
70         $(DESTDIR)\lib\afsdes.lib \
71         $(DESTDIR)\lib\afsrxkad.lib \
72         $(DESTDIR)\lib\afs\afskauth.lib \
73         $(DESTDIR)\lib\afs\afsauth.lib \
74         $(DESTDIR)\lib\afs\afscmd.lib \
75         $(DESTDIR)\lib\afs\afsutil.lib \
76         $(DESTDIR)\lib\afsubik.lib \
77         $(DESTDIR)\lib\afs\afseventlog.lib \
78         $(DESTDIR)\lib\afs\afsreg.lib \
79         $(DESTDIR)\lib\afs\afsprocmgmt.lib \
80         $(DESTDIR)\lib\cm_dns.obj
81
82
83 $(EXEFILE): $(EXEOBJS)  $(EXELIBS)
84         $(EXECONLINK) dnsapi.lib iphlpapi.lib
85         $(EXEPREP) 
86
87 ############################################################################
88 # Definitions for generating versioninfo resources
89
90 $(OUT)\buserver.res: AFS_component_version_number.h
91
92 ############################################################################
93 # rxgen budb.rg
94 budb.xdr.c budb.cs.c budb.ss.c  $(INCFILEDIR)\budb.h: budb.rg
95         $(RXGEN) $**
96         $(COPY) budb.h $(INCFILEDIR)\budb.h 
97
98 ############################################################################
99 # compile_et on budb_errs.et
100 $(INCFILEDIR)\budb_errs.h : budb_errs.et
101         $(COMPILE_ET) budb_errs -h budb_errs
102         $(COPY) budb_errs.h $(INCFILEDIR)\budb_errs.h
103
104 budb_errs.c $(INCFILEDIR)\budb_client.h: budb_errs.et budb_client.p.h
105         $(DEL) budb_client.h budb_errs.c;
106         $(COMPILE_ET) budb_errs -h budb_client
107         $(COPY) budb_client.h $(INCFILEDIR)\budb_client.h
108
109 ############################################################################
110 # install 
111
112 install: $(INCFILES) $(LIBFILE) $(EXEFILE)
113
114
115 ############################################################################
116 # Local clean target; augments predefined clean target
117
118 clean::
119         $(DEL) budb_errs.c budb_errs.h budb.h budb_client.h     
120         $(DEL) budb.cs.c budb.ss.c budb.xdr.c
121
122 mkdir:
123