Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / lib / dns / win32 / gen.mak.in
blob57533efc2235041b928ca629ee4398547dbc5201
1 # Microsoft Developer Studio Generated NMAKE File, Based on gen.dsp
2 !IF "$(CFG)" == ""
3 CFG=gen - @BUILD_PLATFORM@ Debug
4 !MESSAGE No configuration specified. Defaulting to gen - @BUILD_PLATFORM@ Debug.
5 !ENDIF
7 !IF "$(CFG)" != "gen - @BUILD_PLATFORM@ Release" && "$(CFG)" != "gen - @BUILD_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 "gen.mak" CFG="gen - @BUILD_PLATFORM@ Debug"
13 !MESSAGE
14 !MESSAGE Possible choices for configuration are:
15 !MESSAGE
16 !MESSAGE "gen - @BUILD_PLATFORM@ Release" (based on "@BUILD_PLATFORM@ (x86) Console Application")
17 !MESSAGE "gen - @BUILD_PLATFORM@ Debug" (based on "@BUILD_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)" == "gen - @BUILD_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)" == "gen - @BUILD_PLATFORM@ Release"
108 OUTDIR=.\Release
109 INTDIR=.\Release
111 ALL : "..\gen.exe"
114 CLEAN :
115 -@erase "$(INTDIR)\gen.obj"
116 -@erase "$(INTDIR)\vc60.idb"
117 -@erase "..\gen.exe"
118 -@$(_VC_MANIFEST_CLEAN)
120 "$(OUTDIR)" :
121 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
123 CPP_PROJ=/nologo @COPTML@ /W3 @COPTX@ @COPTI@ /O2 /I "./" /I "../../../" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "LIBISC_EXPORTS" /Fp"$(INTDIR)\gen.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
124 BSC32=bscmake.exe
125 BSC32_FLAGS=/nologo /o"$(OUTDIR)\gen.bsc"
126 BSC32_SBRS= \
128 LINK32=link.exe
129 LINK32_FLAGS=user32.lib advapi32.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\gen.pdb" @BUILD_MACHINE@ /out:"../gen.exe"
130 LINK32_OBJS= \
131 "$(INTDIR)\gen.obj"
133 "..\gen.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
134 $(LINK32) @<<
135 $(LINK32_FLAGS) $(LINK32_OBJS)
137 $(_VC_MANIFEST_EMBED_EXE)
139 !ELSEIF "$(CFG)" == "gen - @BUILD_PLATFORM@ Debug"
141 OUTDIR=.\Debug
142 INTDIR=.\Debug
143 # Begin Custom Macros
144 OutDir=.\Debug
145 # End Custom Macros
147 ALL : "..\gen.exe" "$(OUTDIR)\gen.bsc"
150 CLEAN :
151 -@erase "$(INTDIR)\gen.obj"
152 -@erase "$(INTDIR)\gen.sbr"
153 -@erase "$(INTDIR)\vc60.idb"
154 -@erase "$(INTDIR)\vc60.pdb"
155 -@erase "$(OUTDIR)\gen.bsc"
156 -@erase "$(OUTDIR)\gen.pdb"
157 -@erase "..\gen.exe"
158 -@erase "..\gen.ilk"
159 -@$(_VC_MANIFEST_CLEAN)
161 "$(OUTDIR)" :
162 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
164 CPP_PROJ=/nologo @COPTMLD@ /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "./" /I "../../../" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isc/include" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "LIBISC_EXPORTS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
165 BSC32=bscmake.exe
166 BSC32_FLAGS=/nologo /o"$(OUTDIR)\gen.bsc"
167 BSC32_SBRS= \
168 "$(INTDIR)\gen.sbr"
170 "$(OUTDIR)\gen.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
171 $(BSC32) @<<
172 $(BSC32_FLAGS) $(BSC32_SBRS)
175 LINK32=link.exe
176 LINK32_FLAGS=user32.lib advapi32.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\gen.pdb" /debug @BUILD_MACHINE@ /out:"../gen.exe" /pdbtype:sept
177 LINK32_OBJS= \
178 "$(INTDIR)\gen.obj"
180 "..\gen.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
181 $(LINK32) @<<
182 $(LINK32_FLAGS) $(LINK32_OBJS)
184 $(_VC_MANIFEST_EMBED_EXE)
186 !ENDIF
188 .c{$(INTDIR)}.obj::
189 $(CPP) @<<
190 $(CPP_PROJ) $<
193 .cpp{$(INTDIR)}.obj::
194 $(CPP) @<<
195 $(CPP_PROJ) $<
198 .cxx{$(INTDIR)}.obj::
199 $(CPP) @<<
200 $(CPP_PROJ) $<
203 .c{$(INTDIR)}.sbr::
204 $(CPP) @<<
205 $(CPP_PROJ) $<
208 .cpp{$(INTDIR)}.sbr::
209 $(CPP) @<<
210 $(CPP_PROJ) $<
213 .cxx{$(INTDIR)}.sbr::
214 $(CPP) @<<
215 $(CPP_PROJ) $<
219 !IF "$(NO_EXTERNAL_DEPS)" != "1"
220 !IF EXISTS("gen.dep")
221 !INCLUDE "gen.dep"
222 !ELSE
223 !MESSAGE Warning: cannot find "gen.dep"
224 !ENDIF
225 !ENDIF
228 !IF "$(CFG)" == "gen - @BUILD_PLATFORM@ Release" || "$(CFG)" == "gen - @BUILD_PLATFORM@ Debug"
229 SOURCE=..\gen.c
231 !IF "$(CFG)" == "gen - @BUILD_PLATFORM@ Release"
234 "$(INTDIR)\gen.obj" : $(SOURCE) "$(INTDIR)"
235 $(CPP) $(CPP_PROJ) $(SOURCE)
238 !ELSEIF "$(CFG)" == "gen - @BUILD_PLATFORM@ Debug"
241 "$(INTDIR)\gen.obj" "$(INTDIR)\gen.sbr" : $(SOURCE) "$(INTDIR)"
242 $(CPP) $(CPP_PROJ) $(SOURCE)
245 !ENDIF
248 !ENDIF
250 ####################################################
251 # Commands to generate initial empty manifest file and the RC file
252 # that references it, and for generating the .res file:
254 $(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
256 $(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
257 type <<$@
258 #include <winuser.h>
259 1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
260 << KEEP
262 $(_VC_MANIFEST_BASENAME).auto.manifest :
263 type <<$@
264 <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
265 <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
266 </assembly>
267 << KEEP