etc/services - sync with NetBSD-8
[minix.git] / external / bsd / bind / dist / bin / tests / db / win32 / t_db.mak.in
blobb285b735da4582ec79b7563486222c99200d1f69
1 # Microsoft Developer Studio Generated NMAKE File, Based on t_db.dsp
2 !IF "$(CFG)" == ""
3 CFG=t_db - @PLATFORM@ Debug
4 !MESSAGE No configuration specified. Defaulting to t_db - @PLATFORM@ Debug.
5 !ENDIF
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
22 !IF "$(OS)" == "Windows_NT"
23 NULL=
24 !ELSE
25 NULL=nul
26 !ENDIF
28 CPP=cl.exe
29 RSC=rc.exe
30 LIBXML=@LIBXML2_LIB@
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
40 ####################################################
41 # Specifying name of temporary resource file used only in incremental builds:
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
49 ####################################################
50 # _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
52 !if "$(_VC_MANIFEST_INC)" == "1"
54 #MT_SPECIAL_RETURN=1090650113
55 #MT_SPECIAL_SWITCH=-notify_resource_update
56 MT_SPECIAL_RETURN=0
57 MT_SPECIAL_SWITCH=
58 _VC_MANIFEST_EMBED_EXE= \
59 if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
60 if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
61 rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
62 link $** /out:$@ $(LFLAGS)
64 !else
66 _VC_MANIFEST_EMBED_EXE= \
67 if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
69 !endif
71 ####################################################
72 # _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
74 !if "$(_VC_MANIFEST_INC)" == "1"
76 #MT_SPECIAL_RETURN=1090650113
77 #MT_SPECIAL_SWITCH=-notify_resource_update
78 MT_SPECIAL_RETURN=0
79 MT_SPECIAL_SWITCH=
80 _VC_MANIFEST_EMBED_EXE= \
81 if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
82 if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
83 rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
84 link $** /out:$@ $(LFLAGS)
86 !else
88 _VC_MANIFEST_EMBED_EXE= \
89 if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
91 !endif
92 ####################################################
93 # _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
95 !if "$(_VC_MANIFEST_INC)" == "1"
97 _VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
98 $(_VC_MANIFEST_BASENAME).auto.rc \
99 $(_VC_MANIFEST_BASENAME).auto.manifest
101 !else
103 _VC_MANIFEST_CLEAN=
105 !endif
107 !IF "$(CFG)" == "t_db - @PLATFORM@ Release"
109 OUTDIR=.\Release
110 INTDIR=.\Release
112 !IF "$(RECURSE)" == "0"
114 ALL : "..\..\..\..\Build\Release\t_db.exe"
116 !ELSE
118 ALL : "libtests - @PLATFORM@ Release" "libisccfg - @PLATFORM@ Release" "libisc - @PLATFORM@ Release" "libdns - @PLATFORM@ Release" "..\..\..\..\Build\Release\t_db.exe"
120 !ENDIF
122 !IF "$(RECURSE)" == "1"
123 CLEAN :"libdns - @PLATFORM@ ReleaseCLEAN" "libisc - @PLATFORM@ ReleaseCLEAN" "libtests - @PLATFORM@ ReleaseCLEAN" "libisccfg - @PLATFORM@ ReleaseCLEAN"
124 !ELSE
125 CLEAN :
126 !ENDIF
127 -@erase "$(INTDIR)\t_db.obj"
128 -@erase "$(INTDIR)\vc60.idb"
129 -@erase "..\..\..\..\Build\Release\t_db.exe"
130 -@$(_VC_MANIFEST_CLEAN)
132 "$(OUTDIR)" :
133 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
135 CPP_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
136 BSC32=bscmake.exe
137 BSC32_FLAGS=/nologo /o"$(OUTDIR)\t_db.bsc"
138 BSC32_SBRS= \
140 LINK32=link.exe
141 LINK32_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"
142 LINK32_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"
149 "..\..\..\..\Build\Release\t_db.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
150 $(LINK32) @<<
151 $(LINK32_FLAGS) $(LINK32_OBJS)
153 $(_VC_MANIFEST_EMBED_EXE)
155 !ELSEIF "$(CFG)" == "t_db - @PLATFORM@ Debug"
157 OUTDIR=.\Debug
158 INTDIR=.\Debug
159 # Begin Custom Macros
160 OutDir=.\Debug
161 # End Custom Macros
163 !IF "$(RECURSE)" == "0"
165 ALL : "..\..\..\..\Build\Debug\t_db.exe" "$(OUTDIR)\t_db.bsc"
167 !ELSE
169 ALL : "libtests - @PLATFORM@ Debug" "libisccfg - @PLATFORM@ Debug" "libisc - @PLATFORM@ Debug" "libdns - @PLATFORM@ Debug" "..\..\..\..\Build\Debug\t_db.exe" "$(OUTDIR)\t_db.bsc"
171 !ENDIF
173 !IF "$(RECURSE)" == "1"
174 CLEAN :"libdns - @PLATFORM@ DebugCLEAN" "libisc - @PLATFORM@ DebugCLEAN" "libtests - @PLATFORM@ DebugCLEAN" "libisccfg - @PLATFORM@ DebugCLEAN"
175 !ELSE
176 CLEAN :
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)
189 "$(OUTDIR)" :
190 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
192 CPP_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
193 BSC32=bscmake.exe
194 BSC32_FLAGS=/nologo /o"$(OUTDIR)\t_db.bsc"
195 BSC32_SBRS= \
196 "$(INTDIR)\t_db.sbr"
198 "$(OUTDIR)\t_db.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
199 $(BSC32) @<<
200 $(BSC32_FLAGS) $(BSC32_SBRS)
203 LINK32=link.exe
204 LINK32_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
205 LINK32_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"
212 "..\..\..\..\Build\Debug\t_db.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
213 $(LINK32) @<<
214 $(LINK32_FLAGS) $(LINK32_OBJS)
216 $(_VC_MANIFEST_EMBED_EXE)
218 !ENDIF
220 .c{$(INTDIR)}.obj::
221 $(CPP) @<<
222 $(CPP_PROJ) $<
225 .cpp{$(INTDIR)}.obj::
226 $(CPP) @<<
227 $(CPP_PROJ) $<
230 .cxx{$(INTDIR)}.obj::
231 $(CPP) @<<
232 $(CPP_PROJ) $<
235 .c{$(INTDIR)}.sbr::
236 $(CPP) @<<
237 $(CPP_PROJ) $<
240 .cpp{$(INTDIR)}.sbr::
241 $(CPP) @<<
242 $(CPP_PROJ) $<
245 .cxx{$(INTDIR)}.sbr::
246 $(CPP) @<<
247 $(CPP_PROJ) $<
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
260 !IF "$(CFG)" == "t_db - @PLATFORM@ Release" || "$(CFG)" == "t_db - @PLATFORM@ Debug"
261 SOURCE=..\t_db.c
263 !IF "$(CFG)" == "t_db - @PLATFORM@ Release"
266 "$(INTDIR)\t_db.obj" : $(SOURCE) "$(INTDIR)"
267 $(CPP) $(CPP_PROJ) $(SOURCE)
270 !ELSEIF "$(CFG)" == "t_db - @PLATFORM@ Debug"
273 "$(INTDIR)\t_db.obj" "$(INTDIR)\t_db.sbr" : $(SOURCE) "$(INTDIR)"
274 $(CPP) $(CPP_PROJ) $(SOURCE)
277 !ENDIF
279 !IF "$(CFG)" == "t_db - @PLATFORM@ Release"
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"
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"
291 !ELSEIF "$(CFG)" == "t_db - @PLATFORM@ Debug"
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"
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"
303 !ENDIF
305 !IF "$(CFG)" == "t_db - @PLATFORM@ Release"
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"
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"
317 !ELSEIF "$(CFG)" == "t_db - @PLATFORM@ Debug"
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"
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"
329 !ENDIF
331 !IF "$(CFG)" == "t_db - @PLATFORM@ Release"
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"
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"
343 !ELSEIF "$(CFG)" == "t_db - @PLATFORM@ Debug"
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"
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"
355 !ENDIF
357 !IF "$(CFG)" == "t_db - @PLATFORM@ Release"
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"
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"
369 !ELSEIF "$(CFG)" == "t_db - @PLATFORM@ Debug"
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"
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"
381 !ENDIF
384 !ENDIF
386 ####################################################
387 # Commands to generate initial empty manifest file and the RC file
388 # that references it, and for generating the .res file:
390 $(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
392 $(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
393 type <<$@
394 #include <winuser.h>
395 1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
396 << KEEP
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