etc/services - sync with NetBSD-8
[minix.git] / external / bsd / bind / dist / bin / rndc / win32 / rndc.mak.in
blob242f0bbca690de26c5bea9ac9e5cad43ae348158
1 # Microsoft Developer Studio Generated NMAKE File, Based on rndc.dsp
2 !IF "$(CFG)" == ""
3 CFG=rndc - @PLATFORM@ Debug
4 !MESSAGE No configuration specified. Defaulting to rndc - @PLATFORM@ Debug.
5 !ENDIF
7 !IF "$(CFG)" != "rndc - @PLATFORM@ Release" && "$(CFG)" != "rndc - @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 "rndc.mak" CFG="rndc - @PLATFORM@ Debug"
13 !MESSAGE
14 !MESSAGE Possible choices for configuration are:
15 !MESSAGE
16 !MESSAGE "rndc - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
17 !MESSAGE "rndc - @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
31 !IF "$(CFG)" == "rndc - @PLATFORM@ Release"
32 _VC_MANIFEST_INC=0
33 _VC_MANIFEST_BASENAME=__VC80
34 !ELSE
35 _VC_MANIFEST_INC=1
36 _VC_MANIFEST_BASENAME=__VC80.Debug
37 !ENDIF
39 ####################################################
40 # Specifying name of temporary resource file used only in incremental builds:
42 !if "$(_VC_MANIFEST_INC)" == "1"
43 _VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
44 !else
45 _VC_MANIFEST_AUTO_RES=
46 !endif
48 ####################################################
49 # _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
51 !if "$(_VC_MANIFEST_INC)" == "1"
53 #MT_SPECIAL_RETURN=1090650113
54 #MT_SPECIAL_SWITCH=-notify_resource_update
55 MT_SPECIAL_RETURN=0
56 MT_SPECIAL_SWITCH=
57 _VC_MANIFEST_EMBED_EXE= \
58 if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
59 if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
60 rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
61 link $** /out:$@ $(LFLAGS)
63 !else
65 _VC_MANIFEST_EMBED_EXE= \
66 if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
68 !endif
70 ####################################################
71 # _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
73 !if "$(_VC_MANIFEST_INC)" == "1"
75 #MT_SPECIAL_RETURN=1090650113
76 #MT_SPECIAL_SWITCH=-notify_resource_update
77 MT_SPECIAL_RETURN=0
78 MT_SPECIAL_SWITCH=
79 _VC_MANIFEST_EMBED_EXE= \
80 if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
81 if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
82 rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
83 link $** /out:$@ $(LFLAGS)
85 !else
87 _VC_MANIFEST_EMBED_EXE= \
88 if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
90 !endif
91 ####################################################
92 # _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
94 !if "$(_VC_MANIFEST_INC)" == "1"
96 _VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
97 $(_VC_MANIFEST_BASENAME).auto.rc \
98 $(_VC_MANIFEST_BASENAME).auto.manifest
100 !else
102 _VC_MANIFEST_CLEAN=
104 !endif
106 !IF "$(CFG)" == "rndc - @PLATFORM@ Release"
108 OUTDIR=.\Release
109 INTDIR=.\Release
111 !IF "$(RECURSE)" == "0"
113 ALL : "..\..\..\Build\Release\rndc.exe"
115 !ELSE
117 ALL : "libbind9 - @PLATFORM@ Release" "libisccfg - @PLATFORM@ Release" "libisccc - @PLATFORM@ Release" "libisc - @PLATFORM@ Release" "..\..\..\Build\Release\rndc.exe"
119 !ENDIF
121 !IF "$(RECURSE)" == "1"
122 CLEAN :"libisc - @PLATFORM@ ReleaseCLEAN" "libisccc - @PLATFORM@ ReleaseCLEAN" "libisccfg - @PLATFORM@ ReleaseCLEAN" "libbind9 - @PLATFORM@ ReleaseCLEAN"
123 !ELSE
124 CLEAN :
125 !ENDIF
126 -@erase "$(INTDIR)\rndc.obj"
127 -@erase "$(INTDIR)\util.obj"
128 -@erase "$(INTDIR)\vc60.idb"
129 -@erase "..\..\..\Build\Release\rndc.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/isccc/include" /I "../../../lib/isccfg/include" /I "../../../lib/bind9/include" /I "../../../lib/dns/include" /D "WIN32" /D "NDEBUG" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /Fp"$(INTDIR)\rndc.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
136 BSC32=bscmake.exe
137 BSC32_FLAGS=/nologo /o"$(OUTDIR)\rndc.bsc"
138 BSC32_SBRS= \
140 LINK32=link.exe
141 LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../../lib/isc/win32/Release/libisc.lib ../../../lib/dns/win32/Release/libdns.lib ../../../lib/isccfg/win32/Release/libisccfg.lib ../../../lib/isccc/win32/Release/libisccc.lib ../../../lib/bind9/win32/Release/libbind9.lib /nologo /subsystem:console /profile @MACHINE@ /out:"../../../Build/Release/rndc.exe"
142 LINK32_OBJS= \
143 "$(INTDIR)\rndc.obj" \
144 "$(INTDIR)\util.obj" \
145 "..\..\..\lib\isc\win32\Release\libisc.lib" \
146 "..\..\..\lib\isccc\win32\Release\libisccc.lib" \
147 "..\..\..\lib\isccfg\win32\Release\libisccfg.lib" \
148 "..\..\..\lib\bind9\win32\Release\libbind9.lib"
150 "..\..\..\Build\Release\rndc.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
151 $(LINK32) @<<
152 $(LINK32_FLAGS) $(LINK32_OBJS)
154 $(_VC_MANIFEST_EMBED_EXE)
156 !ELSEIF "$(CFG)" == "rndc - @PLATFORM@ Debug"
158 OUTDIR=.\Debug
159 INTDIR=.\Debug
160 # Begin Custom Macros
161 OutDir=.\Debug
162 # End Custom Macros
164 !IF "$(RECURSE)" == "0"
166 ALL : "..\..\..\Build\Debug\rndc.exe" "$(OUTDIR)\rndc.bsc"
168 !ELSE
170 ALL : "libbind9 - @PLATFORM@ Debug" "libisccfg - @PLATFORM@ Debug" "libisccc - @PLATFORM@ Debug" "libisc - @PLATFORM@ Debug" "..\..\..\Build\Debug\rndc.exe" "$(OUTDIR)\rndc.bsc"
172 !ENDIF
174 !IF "$(RECURSE)" == "1"
175 CLEAN :"libisc - @PLATFORM@ DebugCLEAN" "libisccc - @PLATFORM@ DebugCLEAN" "libisccfg - @PLATFORM@ DebugCLEAN" "libbind9 - @PLATFORM@ DebugCLEAN"
176 !ELSE
177 CLEAN :
178 !ENDIF
179 -@erase "$(INTDIR)\rndc.obj"
180 -@erase "$(INTDIR)\rndc.sbr"
181 -@erase "$(INTDIR)\util.obj"
182 -@erase "$(INTDIR)\util.sbr"
183 -@erase "$(INTDIR)\vc60.idb"
184 -@erase "$(INTDIR)\vc60.pdb"
185 -@erase "$(OUTDIR)\rndc.bsc"
186 -@erase "$(OUTDIR)\rndc.pdb"
187 -@erase "..\..\..\Build\Debug\rndc.exe"
188 -@erase "..\..\..\Build\Debug\rndc.ilk"
189 -@$(_VC_MANIFEST_CLEAN)
191 "$(OUTDIR)" :
192 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
194 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/isccc/include" /I "../../../lib/isccfg/include" /I "../../../lib/bind9/include" /I "../../../lib/dns/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
195 BSC32=bscmake.exe
196 BSC32_FLAGS=/nologo /o"$(OUTDIR)\rndc.bsc"
197 BSC32_SBRS= \
198 "$(INTDIR)\rndc.sbr" \
199 "$(INTDIR)\util.sbr"
201 "$(OUTDIR)\rndc.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
202 $(BSC32) @<<
203 $(BSC32_FLAGS) $(BSC32_SBRS)
206 LINK32=link.exe
207 LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../../lib/isc/win32/Debug/libisc.lib ../../../lib/dns/win32/Debug/libdns.lib ../../../lib/isccfg/win32/Debug/libisccfg.lib ../../../lib/isccc/win32/Debug/libisccc.lib ../../../lib/bind9/win32/Debug/libbind9.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\rndc.pdb" /debug @MACHINE@ /out:"../../../Build/Debug/rndc.exe" /pdbtype:sept
208 LINK32_OBJS= \
209 "$(INTDIR)\rndc.obj" \
210 "$(INTDIR)\util.obj" \
211 "..\..\..\lib\isc\win32\Debug\libisc.lib" \
212 "..\..\..\lib\isccc\win32\Debug\libisccc.lib" \
213 "..\..\..\lib\isccfg\win32\Debug\libisccfg.lib" \
214 "..\..\..\lib\bind9\win32\Debug\libbind9.lib"
216 "..\..\..\Build\Debug\rndc.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
217 $(LINK32) @<<
218 $(LINK32_FLAGS) $(LINK32_OBJS)
220 $(_VC_MANIFEST_EMBED_EXE)
222 !ENDIF
224 .c{$(INTDIR)}.obj::
225 $(CPP) @<<
226 $(CPP_PROJ) $<
229 .cpp{$(INTDIR)}.obj::
230 $(CPP) @<<
231 $(CPP_PROJ) $<
234 .cxx{$(INTDIR)}.obj::
235 $(CPP) @<<
236 $(CPP_PROJ) $<
239 .c{$(INTDIR)}.sbr::
240 $(CPP) @<<
241 $(CPP_PROJ) $<
244 .cpp{$(INTDIR)}.sbr::
245 $(CPP) @<<
246 $(CPP_PROJ) $<
249 .cxx{$(INTDIR)}.sbr::
250 $(CPP) @<<
251 $(CPP_PROJ) $<
255 !IF "$(NO_EXTERNAL_DEPS)" != "1"
256 !IF EXISTS("rndc.dep")
257 !INCLUDE "rndc.dep"
258 !ELSE
259 !MESSAGE Warning: cannot find "rndc.dep"
260 !ENDIF
261 !ENDIF
264 !IF "$(CFG)" == "rndc - @PLATFORM@ Release" || "$(CFG)" == "rndc - @PLATFORM@ Debug"
265 SOURCE=..\rndc.c
267 !IF "$(CFG)" == "rndc - @PLATFORM@ Release"
270 "$(INTDIR)\rndc.obj" : $(SOURCE) "$(INTDIR)"
271 $(CPP) $(CPP_PROJ) $(SOURCE)
274 !ELSEIF "$(CFG)" == "rndc - @PLATFORM@ Debug"
277 "$(INTDIR)\rndc.obj" "$(INTDIR)\rndc.sbr" : $(SOURCE) "$(INTDIR)"
278 $(CPP) $(CPP_PROJ) $(SOURCE)
281 !ENDIF
283 SOURCE=..\util.c
285 !IF "$(CFG)" == "rndc - @PLATFORM@ Release"
288 "$(INTDIR)\util.obj" : $(SOURCE) "$(INTDIR)"
289 $(CPP) $(CPP_PROJ) $(SOURCE)
292 !ELSEIF "$(CFG)" == "rndc - @PLATFORM@ Debug"
295 "$(INTDIR)\util.obj" "$(INTDIR)\util.sbr" : $(SOURCE) "$(INTDIR)"
296 $(CPP) $(CPP_PROJ) $(SOURCE)
299 !ENDIF
301 !IF "$(CFG)" == "rndc - @PLATFORM@ Release"
303 "libisc - @PLATFORM@ Release" :
304 cd "..\..\..\lib\isc\win32"
305 $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release"
306 cd "..\..\..\bin\rndc\win32"
308 "libisc - @PLATFORM@ ReleaseCLEAN" :
309 cd "..\..\..\lib\isc\win32"
310 $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release" RECURSE=1 CLEAN
311 cd "..\..\..\bin\rndc\win32"
313 !ELSEIF "$(CFG)" == "rndc - @PLATFORM@ Debug"
315 "libisc - @PLATFORM@ Debug" :
316 cd "..\..\..\lib\isc\win32"
317 $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug"
318 cd "..\..\..\bin\rndc\win32"
320 "libisc - @PLATFORM@ DebugCLEAN" :
321 cd "..\..\..\lib\isc\win32"
322 $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug" RECURSE=1 CLEAN
323 cd "..\..\..\bin\rndc\win32"
325 !ENDIF
327 !IF "$(CFG)" == "rndc - @PLATFORM@ Release"
329 "libisccc - @PLATFORM@ Release" :
330 cd "..\..\..\lib\isccc\win32"
331 $(MAKE) /$(MAKEFLAGS) /F ".\libisccc.mak" CFG="libisccc - @PLATFORM@ Release"
332 cd "..\..\..\bin\rndc\win32"
334 "libisccc - @PLATFORM@ ReleaseCLEAN" :
335 cd "..\..\..\lib\isccc\win32"
336 $(MAKE) /$(MAKEFLAGS) /F ".\libisccc.mak" CFG="libisccc - @PLATFORM@ Release" RECURSE=1 CLEAN
337 cd "..\..\..\bin\rndc\win32"
339 !ELSEIF "$(CFG)" == "rndc - @PLATFORM@ Debug"
341 "libisccc - @PLATFORM@ Debug" :
342 cd "..\..\..\lib\isccc\win32"
343 $(MAKE) /$(MAKEFLAGS) /F ".\libisccc.mak" CFG="libisccc - @PLATFORM@ Debug"
344 cd "..\..\..\bin\rndc\win32"
346 "libisccc - @PLATFORM@ DebugCLEAN" :
347 cd "..\..\..\lib\isccc\win32"
348 $(MAKE) /$(MAKEFLAGS) /F ".\libisccc.mak" CFG="libisccc - @PLATFORM@ Debug" RECURSE=1 CLEAN
349 cd "..\..\..\bin\rndc\win32"
351 !ENDIF
353 !IF "$(CFG)" == "rndc - @PLATFORM@ Release"
355 "libisccfg - @PLATFORM@ Release" :
356 cd "..\..\..\lib\isccfg\win32"
357 $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release"
358 cd "..\..\..\bin\rndc\win32"
360 "libisccfg - @PLATFORM@ ReleaseCLEAN" :
361 cd "..\..\..\lib\isccfg\win32"
362 $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release" RECURSE=1 CLEAN
363 cd "..\..\..\bin\rndc\win32"
365 !ELSEIF "$(CFG)" == "rndc - @PLATFORM@ Debug"
367 "libisccfg - @PLATFORM@ Debug" :
368 cd "..\..\..\lib\isccfg\win32"
369 $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug"
370 cd "..\..\..\bin\rndc\win32"
372 "libisccfg - @PLATFORM@ DebugCLEAN" :
373 cd "..\..\..\lib\isccfg\win32"
374 $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug" RECURSE=1 CLEAN
375 cd "..\..\..\bin\rndc\win32"
377 !ENDIF
379 !IF "$(CFG)" == "rndc - @PLATFORM@ Release"
381 "libbind9 - @PLATFORM@ Release" :
382 cd "..\..\..\lib\bind9\win32"
383 $(MAKE) /$(MAKEFLAGS) /F ".\libbind9.mak" CFG="libbind9 - @PLATFORM@ Release"
384 cd "..\..\..\bin\rndc\win32"
386 "libbind9 - @PLATFORM@ ReleaseCLEAN" :
387 cd "..\..\..\lib\bind9\win32"
388 $(MAKE) /$(MAKEFLAGS) /F ".\libbind9.mak" CFG="libbind9 - @PLATFORM@ Release" RECURSE=1 CLEAN
389 cd "..\..\..\bin\rndc\win32"
391 !ELSEIF "$(CFG)" == "rndc - @PLATFORM@ Debug"
393 "libbind9 - @PLATFORM@ Debug" :
394 cd "..\..\..\lib\bind9\win32"
395 $(MAKE) /$(MAKEFLAGS) /F ".\libbind9.mak" CFG="libbind9 - @PLATFORM@ Debug"
396 cd "..\..\..\bin\rndc\win32"
398 "libbind9 - @PLATFORM@ DebugCLEAN" :
399 cd "..\..\..\lib\bind9\win32"
400 $(MAKE) /$(MAKEFLAGS) /F ".\libbind9.mak" CFG="libbind9 - @PLATFORM@ Debug" RECURSE=1 CLEAN
401 cd "..\..\..\bin\rndc\win32"
403 !ENDIF
406 !ENDIF
408 ####################################################
409 # Commands to generate initial empty manifest file and the RC file
410 # that references it, and for generating the .res file:
412 $(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
414 $(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
415 type <<$@
416 #include <winuser.h>
417 1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
418 << KEEP
420 $(_VC_MANIFEST_BASENAME).auto.manifest :
421 type <<$@
422 <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
423 <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
424 </assembly>
425 << KEEP