Log binding ip address and port during startup
[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 RELDIR=vlserver
11 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
12 !include ..\config\NTMakefile.version
13
14 ############################################################################
15 # Definitions for installing header files
16
17 INCFILEDIR = $(DESTDIR)\include\afs
18
19 INCFILES = \
20         $(INCFILEDIR)\vl_opcodes.h \
21         $(INCFILEDIR)\vlserver.h \
22         $(INCFILEDIR)\vldbint.h
23
24 $(INCFILEDIR)\vl_opcodes.h: vl_opcodes.h
25         $(COPY) vl_opcodes.h $(INCFILEDIR)\vl_opcodes.h
26
27 ############################################################################
28 # build afsvldb.lib
29
30 LIBFILE = $(DESTDIR)\lib\afs\afsvldb.lib
31
32 LIBOBJS =\
33         $(OUT)\vl_errors.obj \
34         $(OUT)\vldbint.cs.obj \
35         $(OUT)\vldbint.xdr.obj \
36         $(OUT)\AFS_component_version_number.obj
37
38 $(LIBFILE): $(LIBOBJS)
39         $(LIBARCH)
40
41 ############################################################################
42 # build mtafsvldb.lib
43
44 MT_LIBFILE = $(DESTDIR)\lib\afs\mtafsvldb.lib
45
46 MT_LIBOBJS =\
47         $(OUT)\vl_errors_mt.obj \
48         $(OUT)\vldbint.cs_mt.obj \
49         $(OUT)\vldbint.xdr_mt.obj \
50         $(OUT)\AFS_component_version_number.obj
51
52 $(OUT)\vl_errors_mt.obj:vl_errors.c
53         $(C2OBJ) $** -DAFS_PTHREAD_ENV
54
55 $(OUT)\vldbint.cs_mt.obj:vldbint.cs.c
56         $(C2OBJ) $** -DAFS_PTHREAD_ENV
57
58 $(OUT)\vldbint.xdr_mt.obj:vldbint.xdr.c
59         $(C2OBJ) $** -DAFS_PTHREAD_ENV
60
61 $(MT_LIBFILE): $(MT_LIBOBJS)
62         $(LIBARCH)
63
64 ############################################################################
65 # build vlserver.exe
66
67 VLSERVER = $(DESTDIR)\root.server\usr\afs\bin\vlserver.exe
68
69 VLSERVER_EXEOBJS =\
70         $(OUT)\vldbint.ss.obj \
71         $(OUT)\vldbint.xdr.obj \
72         $(OUT)\vlprocs.obj \
73         $(OUT)\vlserver.obj \
74         $(OUT)\vlutils.obj \
75         $(OUT)\vlserver.res
76
77 VLSERVER_EXECLIBS = \
78         $(DESTDIR)\lib\afs\afscmd.lib \
79         $(DESTDIR)\lib\afsubik.lib \
80         $(DESTDIR)\lib\afs\afsauth.lib \
81         $(DESTDIR)\lib\afsrxkad.lib \
82         $(DESTDIR)\lib\afsrxstat.lib \
83         $(DESTDIR)\lib\afsrx.lib \
84         $(DESTDIR)\lib\afslwp.lib \
85         $(DESTDIR)\lib\afs\afscom_err.lib \
86         $(DESTDIR)\lib\afs\afsutil.lib \
87         $(DESTDIR)\lib\afs\afsaudit.lib \
88         $(DESTDIR)\lib\afs\afseventlog.lib \
89         $(DESTDIR)\lib\afs\afsreg.lib \
90         $(DESTDIR)\lib\afs\afsprocmgmt.lib \
91         $(DESTDIR)\lib\libafsconf.lib \
92         $(DESTDIR)\lib\afs\afspioctl.lib \
93         $(DESTDIR)\lib\opr.lib \
94         $(DESTDIR)\lib\afshcrypto.lib \
95         $(DESTDIR)\lib\afsroken.lib \
96         $(DESTDIR)\lib\afsrfc3961.lib
97
98 $(VLSERVER): $(VLSERVER_EXEOBJS) $(LIBFILE) $(VLSERVER_EXECLIBS)
99         $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib shell32.lib
100         $(_VC_MANIFEST_EMBED_EXE)
101         $(EXEPREP)
102         $(CODESIGN_USERLAND)
103         $(SYMSTORE_IMPORT)
104
105 ############################################################################
106 # generate versioninfo resources
107 $(OUT)\vlserver.res: AFS_component_version_number.h
108 #       $(RC) $*.rc
109
110 ############################################################################
111 # rxgen on vldbint.xg
112
113 vldbint.cs.c: vldbint.xg vldbint.h
114         $(RXGEN) -u -x -C -o $@ vldbint.xg
115
116 vldbint.ss.c: vldbint.xg vldbint.h
117         $(RXGEN) -x -S -o $@ vldbint.xg
118
119 vldbint.xdr.c: vldbint.xg vldbint.h
120         $(RXGEN) -x -c -o $@ vldbint.xg
121
122 vldbint.h: vldbint.xg
123         $(RXGEN) -u -x -h -o $@ vldbint.xg
124
125 $(INCFILEDIR)\vldbint.h: vldbint.h
126         $(COPY) vldbint.h $(INCFILEDIR)\vldbint.h
127
128 ############################################################################
129 # Definitions for generating files via COMPILE_ET
130 # Need an explicit copy here, since we've fussed with the general rule.
131
132 vlserver.h vl_errors.c: vl_errors.et vlserver.p.h
133         $(DEL) vlserver.h vl_errors.c
134         $(COMPILE_ET) vl_errors  -h vlserver
135
136 $(INCFILEDIR)\vlserver.h: vlserver.h
137         $(COPY) vlserver.h $(INCFILEDIR)\vlserver.h
138
139 ############################################################################
140 # build local vldb_check
141
142 VLDB_CHECK_LIBS =\
143         $(DESTDIR)\lib\afs\afsutil.lib  \
144         $(DESTDIR)\lib\afs\afsreg.lib \
145         $(DESTDIR)\lib\afs\afseventlog.lib \
146         $(DESTDIR)\lib\afs\afscmd.lib \
147         $(DESTDIR)\lib\afsroken.lib
148
149 $(OUT)\vldb_check.exe: $(OUT)\vldb_check.obj $(VLDB_CHECK_LIBS)
150         $(EXECONLINK)
151         $(_VC_MANIFEST_EMBED_EXE)
152         $(CODESIGN_USERLAND)
153         $(SYMSTORE_IMPORT)
154
155 ############################################################################
156 # build local vlclient
157 VLCLIENT_LIBS = \
158         $(DESTDIR)\lib\afs\afscmd.lib \
159         $(DESTDIR)\lib\afs\afspioctl.lib \
160         $(DESTDIR)\lib\afsroken.lib
161
162 $(OUT)\vlclient.exe: $(OUT)\vlclient.obj  $(LIBFILE) $(VLSERVER_EXECLIBS) $(VLCLIENT_LIBS)
163         $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib shell32.lib
164         $(_VC_MANIFEST_EMBED_EXE)
165         $(CODESIGN_USERLAND)
166         $(SYMSTORE_IMPORT)
167
168
169 ############################################################################
170 # install vlserver components
171
172 install: $(INCFILES) $(LIBFILE) $(VLSERVER) $(OUT)\vldb_check.exe $(OUT)\vlclient.exe \
173          $(MT_LIBFILE)
174
175 install_libutils: $(INCFILES) $(LIBFILE)
176
177 install_headers: $(INCFILES)
178
179 ############################################################################
180 # clean up
181
182 clean::
183         $(DEL) vldbint.cs.c vldbint.ss.c vldbint.xdr.c vldbint.h
184         $(DEL) vlserver.h vl_errors.c $(INCFILES)
185
186 mkdir:
187