win95-initial-port-20010430
[openafs.git] / src / vlserver / 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 # Override default definitions in NTMakefile.$(SYS_NAME) before including.
9
10 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
11 !include ..\config\NTMakefile.version
12
13
14 ############################################################################
15 # Definitions for installing header files
16
17 INCFILEDIR = $(DESTDIR)\include 
18
19 INCFILES = \
20         $(INCFILEDIR)\afs\vl_opcodes.h \
21         $(INCFILEDIR)\afs\vlserver.h \
22         $(INCFILEDIR)\afs\vldbint.h
23
24 ############################################################################
25 # build afsvldb.lib
26
27 LIBFILE = $(DESTDIR)\lib\afs\afsvldb.lib
28
29 LIBOBJS =\
30         vl_errors.obj \
31         vldbint.cs.obj \
32         vldbint.xdr.obj \
33         AFS_component_version_number.obj
34
35
36 $(LIBFILE): $(LIBOBJS)  
37         $(LIBARCH) 
38
39 ############################################################################
40 # build mtafsvldb.lib
41
42 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsvldb.lib
43
44 MT_LIBOBJS =\
45         vl_errors_mt.obj \
46         vldbint.cs_mt.obj \
47         vldbint.xdr_mt.obj \
48         AFS_component_version_number.obj
49
50 vl_errors_mt.obj:vl_errors.c
51         $(C2OBJ) vl_errors.c -DAFS_PTHREAD_ENV /Fovl_errors_mt.obj
52
53 vldbint.cs_mt.obj:vldbint.cs.c
54         $(C2OBJ) vldbint.cs.c -DAFS_PTHREAD_ENV /Fovldbint.cs_mt.obj
55
56 vldbint.xdr_mt.obj:vldbint.xdr.c
57         $(C2OBJ) vldbint.xdr.c -DAFS_PTHREAD_ENV /Fovldbint.xdr_mt.obj
58
59 $(MT_LIBFILE): $(MT_LIBOBJS)  
60         $(LIBARCH) 
61
62 ############################################################################
63 # build vlserver.exe
64
65 VLSERVER = $(DESTDIR)\root.server\usr\afs\bin\vlserver.exe
66
67 VLSERVER_EXEOBJS =\
68         vldbint.ss.obj \
69         vldbint.xdr.obj \
70         vlprocs.obj \
71         vlserver.obj \
72         vlutils.obj \
73         vlserver.res
74
75 VLSERVER_EXECLIBS = \
76         $(DESTDIR)\lib\afsubik.lib \
77         $(DESTDIR)\lib\afs\afsauth.lib \
78         $(DESTDIR)\lib\afsrxkad.lib \
79         $(DESTDIR)\lib\afsrxstat.lib \
80         $(DESTDIR)\lib\afsrx.lib \
81         $(DESTDIR)\lib\afslwp.lib \
82         $(DESTDIR)\lib\afsdes.lib \
83         $(DESTDIR)\lib\afs\afscom_err.lib \
84         $(DESTDIR)\lib\afs\afsutil.lib \
85         $(DESTDIR)\lib\afs\afsaudit.lib \
86         $(DESTDIR)\lib\afs\afseventlog.lib \
87         $(DESTDIR)\lib\afs\afsreg.lib \
88         $(DESTDIR)\lib\afs\afsprocmgmt.lib
89
90         
91 $(VLSERVER): $(VLSERVER_EXEOBJS) $(LIBFILE) $(VLSERVER_EXECLIBS)
92         $(EXECONLINK)
93         $(EXEPREP) 
94
95 ############################################################################
96 # generate versioninfo resources
97 vlserver.res: vlserver.rc AFS_component_version_number.h
98         $(RC) $*.rc
99
100 ############################################################################
101 # rxgen on vldbint.xg
102
103 vldbint.ss.c vldbint.cs.c vldbint.xdr.c $(DESTDIR)\include\afs\vldbint.h: vldbint.xg
104         $(RXGEN) -x $**
105         $(COPY) vldbint.h $(DESTDIR)\include\afs\vldbint.h
106
107 ############################################################################
108 # Definitions for generating files via COMPILE_ET
109 # Need an explicit copy here, since we've fussed with the general rule.
110
111 $(INCFILEDIR)\afs\vlserver.h vl_errors.c: vl_errors.et vlserver.p.h
112         $(DEL) vlserver.h vl_errors.c
113         $(COMPILE_ET) vl_errors  -h vlserver
114         $(COPY) vlserver.h $(INCFILEDIR)\afs\vlserver.h
115
116 ############################################################################
117 # build local vldb_check
118
119 VLDB_CHECK_LIBS =\
120         $(DESTDIR)\lib\afs\afsutil.lib  \
121         $(DESTDIR)\lib\afs\afsreg.lib \
122         $(DESTDIR)\lib\afs\afseventlog.lib \
123         $(DESTDIR)\lib\afs\afscmd.lib
124
125 vldb_check.exe: vldb_check.obj $(VLDB_CHECK_LIBS)
126         $(EXECONLINK)
127
128 ############################################################################
129 # build local vlclient
130 VLCLIENT_LIBS = \
131         $(DESTDIR)\lib\afs\afscmd.lib \
132         $(DESTDIR)\lib\afs\afspioctl.lib
133
134 vlclient.exe: vlclient.obj  $(LIBFILE) $(VLSERVER_EXECLIBS) $(VLCLIENT_LIBS)
135         $(EXECONLINK)
136
137
138 ############################################################################
139 # install vlserver components
140
141 install: $(INCFILES) $(LIBFILE) $(VLSERVER) vldb_check.exe vlclient.exe \
142          $(MT_LIBFILE)
143
144 install9x: install
145
146 install_libutils: $(INCFILES) $(LIBFILE)
147
148 ############################################################################
149 # clean up
150
151 clean::
152         $(DEL) vldbint.cs.c vldbint.ss.c vldbint.xdr.c vldbint.h
153         $(DEL) vlserver.h vl_errors.c