Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / bind / dist / lib / bind9 / win32 / libbind9.mak
blobe630b9068af99a5fb5f39c1ce245003894212f11
1 # Microsoft Developer Studio Generated NMAKE File, Based on libbind9.dsp
2 !IF "$(CFG)" == ""
3 CFG=libbind9 - Win32 Release
4 !MESSAGE No configuration specified. Defaulting to libbind9 - Win32 Release.
5 !ENDIF
7 !IF "$(CFG)" != "libbind9 - Win32 Release" && "$(CFG)" != "libbind9 - Win32 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 "libbind9.mak" CFG="libbind9 - Win32 Release"
13 !MESSAGE
14 !MESSAGE Possible choices for configuration are:
15 !MESSAGE
16 !MESSAGE "libbind9 - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
17 !MESSAGE "libbind9 - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
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 MTL=midl.exe
30 RSC=rc.exe
32 !IF "$(CFG)" == "libbind9 - Win32 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)" == "libbind9 - Win32 Release"
109 OUTDIR=.\Release
110 INTDIR=.\Release
112 !IF "$(RECURSE)" == "0"
114 ALL : "..\..\..\Build\Release\libbind9.dll"
116 !ELSE
118 ALL : "libisccfg - Win32 Release" "libisc - Win32 Release" "libdns - Win32 Release" "..\..\..\Build\Release\libbind9.dll"
120 !ENDIF
122 !IF "$(RECURSE)" == "1"
123 CLEAN :"libdns - Win32 ReleaseCLEAN" "libisc - Win32 ReleaseCLEAN" "libisccfg - Win32 ReleaseCLEAN"
124 !ELSE
125 CLEAN :
126 !ENDIF
127 -@erase "$(INTDIR)\check.obj"
128 -@erase "$(INTDIR)\DLLMain.obj"
129 -@erase "$(INTDIR)\getaddresses.obj"
130 -@erase "$(INTDIR)\vc60.idb"
131 -@erase "$(INTDIR)\version.obj"
132 -@erase "$(OUTDIR)\libbind9.exp"
133 -@erase "$(OUTDIR)\libbind9.lib"
134 -@erase "..\..\..\Build\Release\libbind9.dll"
135 -@$(_VC_MANIFEST_CLEAN)
137 "$(OUTDIR)" :
138 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
140 CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "../../../../libxml2-2.7.3/include" /I "../../../lib/dns/win32/include" /I "../..../lib/dns/sec/openssl/include" /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isccfg/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /I "../../../lib/isc/noatomic/include" /D "NDEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" /D "OPENSSL" /D "DST_USE_PRIVATE_OPENSSL" /D "LIBBIND9_EXPORTS" /Fp"$(INTDIR)\libbind9.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
141 MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
142 BSC32=bscmake.exe
143 BSC32_FLAGS=/nologo /o"$(OUTDIR)\libbind9.bsc"
144 BSC32_SBRS= \
146 LINK32=link.exe
147 LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /dll /incremental:no /pdb:"$(OUTDIR)\libbind9.pdb" /machine:I386 /def:".\libbind9.def" /out:"../../../Build/Release/libbind9.dll" /implib:"$(OUTDIR)\libbind9.lib"
148 DEF_FILE= \
149 ".\libbind9.def"
150 LINK32_OBJS= \
151 "$(INTDIR)\check.obj" \
152 "$(INTDIR)\DLLMain.obj" \
153 "$(INTDIR)\getaddresses.obj" \
154 "$(INTDIR)\version.obj" \
155 "..\..\dns\win32\Release\libdns.lib" \
156 "..\..\isc\win32\Release\libisc.lib" \
157 "..\..\isccfg\win32\Release\libisccfg.lib"
159 "..\..\..\Build\Release\libbind9.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
160 $(LINK32) @<<
161 $(LINK32_FLAGS) $(LINK32_OBJS)
163 $(_VC_MANIFEST_EMBED_DLL)
165 !ELSEIF "$(CFG)" == "libbind9 - Win32 Debug"
167 OUTDIR=.\Debug
168 INTDIR=.\Debug
169 # Begin Custom Macros
170 OutDir=.\Debug
171 # End Custom Macros
173 !IF "$(RECURSE)" == "0"
175 ALL : "..\..\..\Build\Debug\libbind9.dll" "$(OUTDIR)\libbind9.bsc"
177 !ELSE
179 ALL : "libisccfg - Win32 Debug" "libisc - Win32 Debug" "libdns - Win32 Debug" "..\..\..\Build\Debug\libbind9.dll" "$(OUTDIR)\libbind9.bsc"
181 !ENDIF
183 !IF "$(RECURSE)" == "1"
184 CLEAN :"libdns - Win32 DebugCLEAN" "libisc - Win32 DebugCLEAN" "libisccfg - Win32 DebugCLEAN"
185 !ELSE
186 CLEAN :
187 !ENDIF
188 -@erase "$(INTDIR)\check.obj"
189 -@erase "$(INTDIR)\check.sbr"
190 -@erase "$(INTDIR)\DLLMain.obj"
191 -@erase "$(INTDIR)\DLLMain.sbr"
192 -@erase "$(INTDIR)\getaddresses.obj"
193 -@erase "$(INTDIR)\getaddresses.sbr"
194 -@erase "$(INTDIR)\vc60.idb"
195 -@erase "$(INTDIR)\vc60.pdb"
196 -@erase "$(INTDIR)\version.obj"
197 -@erase "$(INTDIR)\version.sbr"
198 -@erase "$(OUTDIR)\libbind9.bsc"
199 -@erase "$(OUTDIR)\libbind9.exp"
200 -@erase "$(OUTDIR)\libbind9.lib"
201 -@erase "$(OUTDIR)\libbind9.pdb"
202 -@erase "..\..\..\Build\Debug\libbind9.dll"
203 -@erase "..\..\..\Build\Debug\libbind9.ilk"
204 -@$(_VC_MANIFEST_CLEAN)
206 "$(OUTDIR)" :
207 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
209 CPP_PROJ=/nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../libxml2-2.7.3/include" /I "../../../lib/isccfg/include" /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /I "../../../lib/isc/noatomic/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" /D "OPENSSL" /D "DST_USE_PRIVATE_OPENSSL" /D "LIBBIND9_EXPORTS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\libbind9.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
210 MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
211 BSC32=bscmake.exe
212 BSC32_FLAGS=/nologo /o"$(OUTDIR)\libbind9.bsc"
213 BSC32_SBRS= \
214 "$(INTDIR)\check.sbr" \
215 "$(INTDIR)\DLLMain.sbr" \
216 "$(INTDIR)\getaddresses.sbr" \
217 "$(INTDIR)\version.sbr"
219 "$(OUTDIR)\libbind9.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
220 $(BSC32) @<<
221 $(BSC32_FLAGS) $(BSC32_SBRS)
224 LINK32=link.exe
225 LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/debug/libisc.lib ../../dns/win32/debug/libdns.lib ../../isccfg/win32/debug/libisccfg.lib /nologo /dll /incremental:yes /pdb:"$(OUTDIR)\libbind9.pdb" /debug /machine:I386 /def:".\libbind9.def" /out:"../../../Build/Debug/libbind9.dll" /implib:"$(OUTDIR)\libbind9.lib" /pdbtype:sept
226 DEF_FILE= \
227 ".\libbind9.def"
228 LINK32_OBJS= \
229 "$(INTDIR)\check.obj" \
230 "$(INTDIR)\DLLMain.obj" \
231 "$(INTDIR)\getaddresses.obj" \
232 "$(INTDIR)\version.obj" \
233 "..\..\dns\win32\Debug\libdns.lib" \
234 "..\..\isc\win32\Debug\libisc.lib" \
235 "..\..\isccfg\win32\Debug\libisccfg.lib"
237 "..\..\..\Build\Debug\libbind9.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
238 $(LINK32) @<<
239 $(LINK32_FLAGS) $(LINK32_OBJS)
241 $(_VC_MANIFEST_EMBED_DLL)
243 !ENDIF
245 .c{$(INTDIR)}.obj::
246 $(CPP) @<<
247 $(CPP_PROJ) $<
250 .cpp{$(INTDIR)}.obj::
251 $(CPP) @<<
252 $(CPP_PROJ) $<
255 .cxx{$(INTDIR)}.obj::
256 $(CPP) @<<
257 $(CPP_PROJ) $<
260 .c{$(INTDIR)}.sbr::
261 $(CPP) @<<
262 $(CPP_PROJ) $<
265 .cpp{$(INTDIR)}.sbr::
266 $(CPP) @<<
267 $(CPP_PROJ) $<
270 .cxx{$(INTDIR)}.sbr::
271 $(CPP) @<<
272 $(CPP_PROJ) $<
276 !IF "$(NO_EXTERNAL_DEPS)" != "1"
277 !IF EXISTS("libbind9.dep")
278 !INCLUDE "libbind9.dep"
279 !ELSE
280 !MESSAGE Warning: cannot find "libbind9.dep"
281 !ENDIF
282 !ENDIF
285 !IF "$(CFG)" == "libbind9 - Win32 Release" || "$(CFG)" == "libbind9 - Win32 Debug"
286 SOURCE=..\check.c
288 !IF "$(CFG)" == "libbind9 - Win32 Release"
291 "$(INTDIR)\check.obj" : $(SOURCE) "$(INTDIR)"
292 $(CPP) $(CPP_PROJ) $(SOURCE)
295 !ELSEIF "$(CFG)" == "libbind9 - Win32 Debug"
298 "$(INTDIR)\check.obj" "$(INTDIR)\check.sbr" : $(SOURCE) "$(INTDIR)"
299 $(CPP) $(CPP_PROJ) $(SOURCE)
302 !ENDIF
304 SOURCE=.\DLLMain.c
306 !IF "$(CFG)" == "libbind9 - Win32 Release"
309 "$(INTDIR)\DLLMain.obj" : $(SOURCE) "$(INTDIR)"
312 !ELSEIF "$(CFG)" == "libbind9 - Win32 Debug"
315 "$(INTDIR)\DLLMain.obj" "$(INTDIR)\DLLMain.sbr" : $(SOURCE) "$(INTDIR)"
318 !ENDIF
320 SOURCE=..\getaddresses.c
322 !IF "$(CFG)" == "libbind9 - Win32 Release"
325 "$(INTDIR)\getaddresses.obj" : $(SOURCE) "$(INTDIR)"
326 $(CPP) $(CPP_PROJ) $(SOURCE)
329 !ELSEIF "$(CFG)" == "libbind9 - Win32 Debug"
332 "$(INTDIR)\getaddresses.obj" "$(INTDIR)\getaddresses.sbr" : $(SOURCE) "$(INTDIR)"
333 $(CPP) $(CPP_PROJ) $(SOURCE)
336 !ENDIF
338 SOURCE=.\version.c
340 !IF "$(CFG)" == "libbind9 - Win32 Release"
343 "$(INTDIR)\version.obj" : $(SOURCE) "$(INTDIR)"
346 !ELSEIF "$(CFG)" == "libbind9 - Win32 Debug"
349 "$(INTDIR)\version.obj" "$(INTDIR)\version.sbr" : $(SOURCE) "$(INTDIR)"
352 !ENDIF
354 !IF "$(CFG)" == "libbind9 - Win32 Release"
356 "libdns - Win32 Release" :
357 cd "..\..\dns\win32"
358 $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - Win32 Release"
359 cd "..\..\bind9\win32"
361 "libdns - Win32 ReleaseCLEAN" :
362 cd "..\..\dns\win32"
363 $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - Win32 Release" RECURSE=1 CLEAN
364 cd "..\..\bind9\win32"
366 !ELSEIF "$(CFG)" == "libbind9 - Win32 Debug"
368 "libdns - Win32 Debug" :
369 cd "..\..\dns\win32"
370 $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - Win32 Debug"
371 cd "..\..\bind9\win32"
373 "libdns - Win32 DebugCLEAN" :
374 cd "..\..\dns\win32"
375 $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - Win32 Debug" RECURSE=1 CLEAN
376 cd "..\..\bind9\win32"
378 !ENDIF
380 !IF "$(CFG)" == "libbind9 - Win32 Release"
382 "libisc - Win32 Release" :
383 cd "..\..\isc\win32"
384 $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - Win32 Release"
385 cd "..\..\bind9\win32"
387 "libisc - Win32 ReleaseCLEAN" :
388 cd "..\..\isc\win32"
389 $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - Win32 Release" RECURSE=1 CLEAN
390 cd "..\..\bind9\win32"
392 !ELSEIF "$(CFG)" == "libbind9 - Win32 Debug"
394 "libisc - Win32 Debug" :
395 cd "..\..\isc\win32"
396 $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - Win32 Debug"
397 cd "..\..\bind9\win32"
399 "libisc - Win32 DebugCLEAN" :
400 cd "..\..\isc\win32"
401 $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - Win32 Debug" RECURSE=1 CLEAN
402 cd "..\..\bind9\win32"
404 !ENDIF
406 !IF "$(CFG)" == "libbind9 - Win32 Release"
408 "libisccfg - Win32 Release" :
409 cd "..\..\isccfg\win32"
410 $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - Win32 Release"
411 cd "..\..\bind9\win32"
413 "libisccfg - Win32 ReleaseCLEAN" :
414 cd "..\..\isccfg\win32"
415 $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - Win32 Release" RECURSE=1 CLEAN
416 cd "..\..\bind9\win32"
418 !ELSEIF "$(CFG)" == "libbind9 - Win32 Debug"
420 "libisccfg - Win32 Debug" :
421 cd "..\..\isccfg\win32"
422 $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - Win32 Debug"
423 cd "..\..\bind9\win32"
425 "libisccfg - Win32 DebugCLEAN" :
426 cd "..\..\isccfg\win32"
427 $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - Win32 Debug" RECURSE=1 CLEAN
428 cd "..\..\bind9\win32"
430 !ENDIF
433 !ENDIF
435 ####################################################
436 # Commands to generate initial empty manifest file and the RC file
437 # that references it, and for generating the .res file:
439 $(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
441 $(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
442 type <<$@
443 #include <winuser.h>
444 1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
445 << KEEP
447 $(_VC_MANIFEST_BASENAME).auto.manifest :
448 type <<$@
449 <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
450 <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
451 </assembly>
452 << KEEP