xref: /minix3/external/bsd/bind/dist/bin/tests/db/win32/t_db.mak.in (revision 00b67f09dd46474d133c95011a48590a8e8f94c7)
1# Microsoft Developer Studio Generated NMAKE File, Based on t_db.dsp
2!IF "$(CFG)" == ""
3CFG=t_db - @PLATFORM@ Debug
4!MESSAGE No configuration specified. Defaulting to t_db - @PLATFORM@ Debug.
5!ENDIF
6
7!IF "$(CFG)" != "t_db - @PLATFORM@ Release" && "$(CFG)" != "t_db - @PLATFORM@ Debug"
8!MESSAGE Invalid configuration "$(CFG)" specified.
9!MESSAGE You can specify a configuration when running NMAKE
10!MESSAGE by defining the macro CFG on the command line. For example:
11!MESSAGE
12!MESSAGE NMAKE /f "t_db.mak" CFG="t_db - @PLATFORM@ Debug"
13!MESSAGE
14!MESSAGE Possible choices for configuration are:
15!MESSAGE
16!MESSAGE "t_db - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
17!MESSAGE "t_db - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
18!MESSAGE
19!ERROR An invalid configuration is specified.
20!ENDIF
21
22!IF "$(OS)" == "Windows_NT"
23NULL=
24!ELSE
25NULL=nul
26!ENDIF
27
28CPP=cl.exe
29RSC=rc.exe
30LIBXML=@LIBXML2_LIB@
31
32!IF  "$(CFG)" == "t_db - @PLATFORM@ Release"
33_VC_MANIFEST_INC=0
34_VC_MANIFEST_BASENAME=__VC80
35!ELSE
36_VC_MANIFEST_INC=1
37_VC_MANIFEST_BASENAME=__VC80.Debug
38!ENDIF
39
40####################################################
41# Specifying name of temporary resource file used only in incremental builds:
42
43!if "$(_VC_MANIFEST_INC)" == "1"
44_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
45!else
46_VC_MANIFEST_AUTO_RES=
47!endif
48
49####################################################
50# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
51
52!if "$(_VC_MANIFEST_INC)" == "1"
53
54#MT_SPECIAL_RETURN=1090650113
55#MT_SPECIAL_SWITCH=-notify_resource_update
56MT_SPECIAL_RETURN=0
57MT_SPECIAL_SWITCH=
58_VC_MANIFEST_EMBED_EXE= \
59if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
60if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
61rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
62link $** /out:$@ $(LFLAGS)
63
64!else
65
66_VC_MANIFEST_EMBED_EXE= \
67if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
68
69!endif
70
71####################################################
72# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
73
74!if "$(_VC_MANIFEST_INC)" == "1"
75
76#MT_SPECIAL_RETURN=1090650113
77#MT_SPECIAL_SWITCH=-notify_resource_update
78MT_SPECIAL_RETURN=0
79MT_SPECIAL_SWITCH=
80_VC_MANIFEST_EMBED_EXE= \
81if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
82if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
83rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
84link $** /out:$@ $(LFLAGS)
85
86!else
87
88_VC_MANIFEST_EMBED_EXE= \
89if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
90
91!endif
92####################################################
93# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
94
95!if "$(_VC_MANIFEST_INC)" == "1"
96
97_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
98    $(_VC_MANIFEST_BASENAME).auto.rc \
99    $(_VC_MANIFEST_BASENAME).auto.manifest
100
101!else
102
103_VC_MANIFEST_CLEAN=
104
105!endif
106
107!IF  "$(CFG)" == "t_db - @PLATFORM@ Release"
108
109OUTDIR=.\Release
110INTDIR=.\Release
111
112!IF "$(RECURSE)" == "0"
113
114ALL : "..\..\..\..\Build\Release\t_db.exe"
115
116!ELSE
117
118ALL : "libtests - @PLATFORM@ Release" "libisccfg - @PLATFORM@ Release" "libisc - @PLATFORM@ Release" "libdns - @PLATFORM@ Release" "..\..\..\..\Build\Release\t_db.exe"
119
120!ENDIF
121
122!IF "$(RECURSE)" == "1"
123CLEAN :"libdns - @PLATFORM@ ReleaseCLEAN" "libisc - @PLATFORM@ ReleaseCLEAN" "libtests - @PLATFORM@ ReleaseCLEAN" "libisccfg - @PLATFORM@ ReleaseCLEAN"
124!ELSE
125CLEAN :
126!ENDIF
127	-@erase "$(INTDIR)\t_db.obj"
128	-@erase "$(INTDIR)\vc60.idb"
129	-@erase "..\..\..\..\Build\Release\t_db.exe"
130	-@$(_VC_MANIFEST_CLEAN)
131
132"$(OUTDIR)" :
133    if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
134
135CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "./" /I "../../../../" @LIBXML2_INC@ /I "../../../../lib/isc/win32" /I "../../../../lib/isc/win32/include" /I "../../../../lib/isc/include" /I "../../../../lib/dns/win32/include" /I "../../../../lib/dns/include" /I "../../../../lib/isccfg/include" /I "../../../../lib/tests/include" /D "WIN32" /D "NDEBUG" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /Fp"$(INTDIR)\t_db.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
136BSC32=bscmake.exe
137BSC32_FLAGS=/nologo /o"$(OUTDIR)\t_db.bsc"
138BSC32_SBRS= \
139
140LINK32=link.exe
141LINK32_FLAGS=user32.lib advapi32.lib kernel32.lib ws2_32.lib ../../../../lib/isc/win32/Release/libisc.lib ../../../../lib/dns/win32/Release/libdns.lib ../../../../lib/isccfg/win32/Release/libisccfg.lib ../../../../lib/tests/win32/Release/libtests.lib $(LIBXML) /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\t_db.pdb" @MACHINE@ /out:"../../../../Build/Release/t_db.exe"
142LINK32_OBJS= \
143	"$(INTDIR)\t_db.obj" \
144	"..\..\..\..\lib\dns\win32\Release\libdns.lib" \
145	"..\..\..\..\lib\isc\win32\Release\libisc.lib" \
146	"..\..\..\..\lib\isccfg\win32\Release\libisccfg.lib" \
147	"..\..\..\..\lib\tests\win32\Release\libtests.lib"
148
149"..\..\..\..\Build\Release\t_db.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
150    $(LINK32) @<<
151  $(LINK32_FLAGS) $(LINK32_OBJS)
152<<
153    $(_VC_MANIFEST_EMBED_EXE)
154
155!ELSEIF  "$(CFG)" == "t_db - @PLATFORM@ Debug"
156
157OUTDIR=.\Debug
158INTDIR=.\Debug
159# Begin Custom Macros
160OutDir=.\Debug
161# End Custom Macros
162
163!IF "$(RECURSE)" == "0"
164
165ALL : "..\..\..\..\Build\Debug\t_db.exe" "$(OUTDIR)\t_db.bsc"
166
167!ELSE
168
169ALL : "libtests - @PLATFORM@ Debug" "libisccfg - @PLATFORM@ Debug" "libisc - @PLATFORM@ Debug" "libdns - @PLATFORM@ Debug" "..\..\..\..\Build\Debug\t_db.exe" "$(OUTDIR)\t_db.bsc"
170
171!ENDIF
172
173!IF "$(RECURSE)" == "1"
174CLEAN :"libdns - @PLATFORM@ DebugCLEAN" "libisc - @PLATFORM@ DebugCLEAN" "libtests - @PLATFORM@ DebugCLEAN" "libisccfg - @PLATFORM@ DebugCLEAN"
175!ELSE
176CLEAN :
177!ENDIF
178	-@erase "$(INTDIR)\t_db.obj"
179	-@erase "$(INTDIR)\t_db.sbr"
180	-@erase "$(INTDIR)\vc60.idb"
181	-@erase "$(INTDIR)\vc60.pdb"
182	-@erase "$(OUTDIR)\t_db.bsc"
183	-@erase "$(OUTDIR)\t_db.map"
184	-@erase "$(OUTDIR)\t_db.pdb"
185	-@erase "..\..\..\..\Build\Debug\t_db.exe"
186	-@erase "..\..\..\..\Build\Debug\t_db.ilk"
187	-@$(_VC_MANIFEST_CLEAN)
188
189"$(OUTDIR)" :
190    if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
191
192CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "./" /I "../../../../" @LIBXML2_INC@ /I "../../../../lib/isc/win32" /I "../../../../lib/isc/win32/include" /I "../../../../lib/isc/include" /I "../../../../lib/dns/win32/include" /I "../../../../lib/dns/include" /I "../../../../lib/isccfg/include" /I "../../../../lib/tests/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "i386" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
193BSC32=bscmake.exe
194BSC32_FLAGS=/nologo /o"$(OUTDIR)\t_db.bsc"
195BSC32_SBRS= \
196	"$(INTDIR)\t_db.sbr"
197
198"$(OUTDIR)\t_db.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
199    $(BSC32) @<<
200  $(BSC32_FLAGS) $(BSC32_SBRS)
201<<
202
203LINK32=link.exe
204LINK32_FLAGS=user32.lib advapi32.lib kernel32.lib ws2_32.lib ../../../../lib/isc/win32/Debug/libisc.lib ../../../../lib/dns/win32/Debug/libdns.lib ../../../../lib/isccfg/win32/Debug/libisccfg.lib ../../../../lib/tests/win32/Debug/libtests.lib $(LIBXML) /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\t_db.pdb" /map:"$(INTDIR)\t_db.map" /debug @MACHINE@ /out:"../../../../Build/Debug/t_db.exe" /pdbtype:sept
205LINK32_OBJS= \
206	"$(INTDIR)\t_db.obj" \
207	"..\..\..\..\lib\dns\win32\Debug\libdns.lib" \
208	"..\..\..\..\lib\isc\win32\Debug\libisc.lib" \
209	"..\..\..\..\lib\isccfg\win32\Debug\libisccfg.lib" \
210	"..\..\..\..\lib\tests\win32\Debug\libtests.lib"
211
212"..\..\..\..\Build\Debug\t_db.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
213    $(LINK32) @<<
214  $(LINK32_FLAGS) $(LINK32_OBJS)
215<<
216    $(_VC_MANIFEST_EMBED_EXE)
217
218!ENDIF
219
220.c{$(INTDIR)}.obj::
221   $(CPP) @<<
222   $(CPP_PROJ) $<
223<<
224
225.cpp{$(INTDIR)}.obj::
226   $(CPP) @<<
227   $(CPP_PROJ) $<
228<<
229
230.cxx{$(INTDIR)}.obj::
231   $(CPP) @<<
232   $(CPP_PROJ) $<
233<<
234
235.c{$(INTDIR)}.sbr::
236   $(CPP) @<<
237   $(CPP_PROJ) $<
238<<
239
240.cpp{$(INTDIR)}.sbr::
241   $(CPP) @<<
242   $(CPP_PROJ) $<
243<<
244
245.cxx{$(INTDIR)}.sbr::
246   $(CPP) @<<
247   $(CPP_PROJ) $<
248<<
249
250
251!IF "$(NO_EXTERNAL_DEPS)" != "1"
252!IF EXISTS("t_db.dep")
253!INCLUDE "t_db.dep"
254!ELSE
255!MESSAGE Warning: cannot find "t_db.dep"
256!ENDIF
257!ENDIF
258
259
260!IF "$(CFG)" == "t_db - @PLATFORM@ Release" || "$(CFG)" == "t_db - @PLATFORM@ Debug"
261SOURCE=..\t_db.c
262
263!IF  "$(CFG)" == "t_db - @PLATFORM@ Release"
264
265
266"$(INTDIR)\t_db.obj" : $(SOURCE) "$(INTDIR)"
267	$(CPP) $(CPP_PROJ) $(SOURCE)
268
269
270!ELSEIF  "$(CFG)" == "t_db - @PLATFORM@ Debug"
271
272
273"$(INTDIR)\t_db.obj"	"$(INTDIR)\t_db.sbr" : $(SOURCE) "$(INTDIR)"
274	$(CPP) $(CPP_PROJ) $(SOURCE)
275
276
277!ENDIF
278
279!IF  "$(CFG)" == "t_db - @PLATFORM@ Release"
280
281"libdns - @PLATFORM@ Release" :
282   cd "..\..\..\..\lib\dns\win32"
283   $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release"
284   cd "..\..\..\bin\tests\db\win32"
285
286"libdns - @PLATFORM@ ReleaseCLEAN" :
287   cd "..\..\..\..\lib\dns\win32"
288   $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release" RECURSE=1 CLEAN
289   cd "..\..\..\bin\tests\db\win32"
290
291!ELSEIF  "$(CFG)" == "t_db - @PLATFORM@ Debug"
292
293"libdns - @PLATFORM@ Debug" :
294   cd "..\..\..\..\lib\dns\win32"
295   $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug"
296   cd "..\..\..\bin\tests\db\win32"
297
298"libdns - @PLATFORM@ DebugCLEAN" :
299   cd "..\..\..\..\lib\dns\win32"
300   $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug" RECURSE=1 CLEAN
301   cd "..\..\..\bin\tests\db\win32"
302
303!ENDIF
304
305!IF  "$(CFG)" == "t_db - @PLATFORM@ Release"
306
307"libisc - @PLATFORM@ Release" :
308   cd "..\..\..\..\lib\isc\win32"
309   $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release"
310   cd "..\..\..\bin\tests\db\win32"
311
312"libisc - @PLATFORM@ ReleaseCLEAN" :
313   cd "..\..\..\..\lib\isc\win32"
314   $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release" RECURSE=1 CLEAN
315   cd "..\..\..\bin\tests\db\win32"
316
317!ELSEIF  "$(CFG)" == "t_db - @PLATFORM@ Debug"
318
319"libisc - @PLATFORM@ Debug" :
320   cd "..\..\..\..\lib\isc\win32"
321   $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug"
322   cd "..\..\..\bin\tests\db\win32"
323
324"libisc - @PLATFORM@ DebugCLEAN" :
325   cd "..\..\..\..\lib\isc\win32"
326   $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug" RECURSE=1 CLEAN
327   cd "..\..\..\bin\tests\db\win32"
328
329!ENDIF
330
331!IF  "$(CFG)" == "t_db - @PLATFORM@ Release"
332
333"libisccfg - @PLATFORM@ Release" :
334   cd "..\..\..\..\lib\isccfg\win32"
335   $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release"
336   cd "..\..\..\bin\tests\db\win32"
337
338"libisccfg - @PLATFORM@ ReleaseCLEAN" :
339   cd "..\..\..\..\lib\isccfg\win32"
340   $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release" RECURSE=1 CLEAN
341   cd "..\..\..\bin\tests\db\win32"
342
343!ELSEIF  "$(CFG)" == "t_db - @PLATFORM@ Debug"
344
345"libisccfg - @PLATFORM@ Debug" :
346   cd "..\..\..\..\lib\isccfg\win32"
347   $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug"
348   cd "..\..\..\bin\tests\db\win32"
349
350"libisccfg - @PLATFORM@ DebugCLEAN" :
351   cd "..\..\..\..\lib\isccfg\win32"
352   $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug" RECURSE=1 CLEAN
353   cd "..\..\..\bin\tests\db\win32"
354
355!ENDIF
356
357!IF  "$(CFG)" == "t_db - @PLATFORM@ Release"
358
359"libtests - @PLATFORM@ Release" :
360   cd "..\..\..\..\lib\tests\win32"
361   $(MAKE) /$(MAKEFLAGS) /F ".\libtests.mak" CFG="libtests - @PLATFORM@ Release"
362   cd "..\..\..\bin\tests\db\win32"
363
364"libtests - @PLATFORM@ ReleaseCLEAN" :
365   cd "..\..\..\..\lib\tests\win32"
366   $(MAKE) /$(MAKEFLAGS) /F ".\libtests.mak" CFG="libtests - @PLATFORM@ Release" RECURSE=1 CLEAN
367   cd "..\..\..\bin\tests\db\win32"
368
369!ELSEIF  "$(CFG)" == "t_db - @PLATFORM@ Debug"
370
371"libtests - @PLATFORM@ Debug" :
372   cd "..\..\..\..\lib\tests\win32"
373   $(MAKE) /$(MAKEFLAGS) /F ".\libtests.mak" CFG="libtests - @PLATFORM@ Debug"
374   cd "..\..\..\bin\tests\db\win32"
375
376"libtests - @PLATFORM@ DebugCLEAN" :
377   cd "..\..\..\..\lib\tests\win32"
378   $(MAKE) /$(MAKEFLAGS) /F ".\libtests.mak" CFG="libtests - @PLATFORM@ Debug" RECURSE=1 CLEAN
379   cd "..\..\..\bin\tests\db\win32"
380
381!ENDIF
382
383
384!ENDIF
385
386####################################################
387# Commands to generate initial empty manifest file and the RC file
388# that references it, and for generating the .res file:
389
390$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
391
392$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
393    type <<$@
394#include <winuser.h>
3951RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
396<< KEEP
397
398$(_VC_MANIFEST_BASENAME).auto.manifest :
399    type <<$@
400<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
401<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
402</assembly>
403<< KEEP
404