Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / bind / dist / lib / win32 / bindevt / bindevt.mak
blobf0a4ea16a29d9f272c9caedd3a8f28857c19f610
1 # Microsoft Developer Studio Generated NMAKE File, Based on bindevt.dsp
2 !IF "$(CFG)" == ""
3 CFG=bindevt - Win32 Debug
4 !MESSAGE No configuration specified. Defaulting to bindevt - Win32 Debug.
5 !ENDIF
7 !IF "$(CFG)" != "bindevt - Win32 Release" && "$(CFG)" != "bindevt - 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 "bindevt.mak" CFG="bindevt - Win32 Debug"
13 !MESSAGE
14 !MESSAGE Possible choices for configuration are:
15 !MESSAGE
16 !MESSAGE "bindevt - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
17 !MESSAGE "bindevt - 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)" == "bindevt - 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)" == "bindevt - Win32 Release"
109 OUTDIR=.\Release
110 INTDIR=.\Release
112 ALL : "..\..\..\Build\Release\bindevt.dll"
115 CLEAN :
116 -@erase "$(INTDIR)\bindevt.obj"
117 -@erase "$(INTDIR)\bindevt.res"
118 -@erase "$(INTDIR)\vc60.idb"
119 -@erase "$(OUTDIR)\bindevt.exp"
120 -@erase "..\..\..\Build\Release\bindevt.dll"
121 -@$(_VC_MANIFEST_CLEAN)
123 "$(OUTDIR)" :
124 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
126 CPP_PROJ=/nologo /MT /W3 /GX /O2 /I "..\include" /I "..\..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "BINDEVT_EXPORTS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
127 MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
128 RSC_PROJ=/l 0x409 /fo"$(INTDIR)\bindevt.res" /d "NDEBUG"
129 BSC32=bscmake.exe
130 BSC32_FLAGS=/nologo /o"$(OUTDIR)\bindevt.bsc"
131 BSC32_SBRS= \
133 LINK32=link.exe
134 LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none /machine:I386 /out:"..\..\..\Build\Release\bindevt.dll" /implib:"$(OUTDIR)\bindevt.lib"
135 LINK32_OBJS= \
136 "$(INTDIR)\bindevt.obj" \
137 "$(INTDIR)\bindevt.res"
139 "..\..\..\Build\Release\bindevt.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
140 $(LINK32) @<<
141 $(LINK32_FLAGS) $(LINK32_OBJS)
143 $(_VC_MANIFEST_EMBED_DLL)
145 !ELSEIF "$(CFG)" == "bindevt - Win32 Debug"
147 OUTDIR=.\Debug
148 INTDIR=.\Debug
149 # Begin Custom Macros
150 OutDir=.\Debug
151 # End Custom Macros
153 ALL : "..\..\..\Build\Debug\bindevt.dll" "$(OUTDIR)\bindevt.bsc"
156 CLEAN :
157 -@erase "$(INTDIR)\bindevt.obj"
158 -@erase "$(INTDIR)\bindevt.res"
159 -@erase "$(INTDIR)\bindevt.sbr"
160 -@erase "$(INTDIR)\vc60.idb"
161 -@erase "$(INTDIR)\vc60.pdb"
162 -@erase "$(OUTDIR)\bindevt.bsc"
163 -@erase "$(OUTDIR)\bindevt.exp"
164 -@erase "..\..\..\Build\Debug\bindevt.dll"
165 -@$(_VC_MANIFEST_CLEAN)
167 "$(OUTDIR)" :
168 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
170 CPP_PROJ=/nologo /MTd /W3 /Gm /GX /Zi /Od /I "..\include" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "BINDEVT_EXPORTS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
171 MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
172 RSC_PROJ=/l 0x409 /fo"$(INTDIR)\bindevt.res" /d "_DEBUG"
173 BSC32=bscmake.exe
174 BSC32_FLAGS=/nologo /o"$(OUTDIR)\bindevt.bsc"
175 BSC32_SBRS= \
176 "$(INTDIR)\bindevt.sbr"
178 "$(OUTDIR)\bindevt.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
179 $(BSC32) @<<
180 $(BSC32_FLAGS) $(BSC32_SBRS)
183 LINK32=link.exe
184 LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none /debug /machine:I386 /out:"..\..\..\Build\Debug\bindevt.dll" /implib:"$(OUTDIR)\bindevt.lib"
185 LINK32_OBJS= \
186 "$(INTDIR)\bindevt.obj" \
187 "$(INTDIR)\bindevt.res"
189 "..\..\..\Build\Debug\bindevt.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
190 $(LINK32) @<<
191 $(LINK32_FLAGS) $(LINK32_OBJS)
193 $(_VC_MANIFEST_EMBED_DLL)
195 !ENDIF
197 .c{$(INTDIR)}.obj::
198 $(CPP) @<<
199 $(CPP_PROJ) $<
202 .cpp{$(INTDIR)}.obj::
203 $(CPP) @<<
204 $(CPP_PROJ) $<
207 .cxx{$(INTDIR)}.obj::
208 $(CPP) @<<
209 $(CPP_PROJ) $<
212 .c{$(INTDIR)}.sbr::
213 $(CPP) @<<
214 $(CPP_PROJ) $<
217 .cpp{$(INTDIR)}.sbr::
218 $(CPP) @<<
219 $(CPP_PROJ) $<
222 .cxx{$(INTDIR)}.sbr::
223 $(CPP) @<<
224 $(CPP_PROJ) $<
228 !IF "$(NO_EXTERNAL_DEPS)" != "1"
229 !IF EXISTS("bindevt.dep")
230 !INCLUDE "bindevt.dep"
231 !ELSE
232 !MESSAGE Warning: cannot find "bindevt.dep"
233 !ENDIF
234 !ENDIF
237 !IF "$(CFG)" == "bindevt - Win32 Release" || "$(CFG)" == "bindevt - Win32 Debug"
238 SOURCE=.\bindevt.c
240 !IF "$(CFG)" == "bindevt - Win32 Release"
243 "$(INTDIR)\bindevt.obj" : $(SOURCE) "$(INTDIR)"
246 !ELSEIF "$(CFG)" == "bindevt - Win32 Debug"
249 "$(INTDIR)\bindevt.obj" "$(INTDIR)\bindevt.sbr" : $(SOURCE) "$(INTDIR)"
252 !ENDIF
254 SOURCE=.\bindevt.mc
256 !IF "$(CFG)" == "bindevt - Win32 Release"
258 TargetName=bindevt
259 InputPath=.\bindevt.mc
260 InputName=bindevt
262 ".\bindevt.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
263 <<tempfile.bat
264 @echo off
265 mc $(InputName).mc
269 !ELSEIF "$(CFG)" == "bindevt - Win32 Debug"
271 TargetName=bindevt
272 InputPath=.\bindevt.mc
273 InputName=bindevt
275 ".\bindevt.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
276 <<tempfile.bat
277 @echo off
278 mc $(InputName).mc
282 !ENDIF
284 SOURCE=.\bindevt.rc
286 "$(INTDIR)\bindevt.res" : $(SOURCE) "$(INTDIR)"
287 $(RSC) $(RSC_PROJ) $(SOURCE)
291 !ENDIF
293 ####################################################
294 # Commands to generate initial empty manifest file and the RC file
295 # that references it, and for generating the .res file:
297 $(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
299 $(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
300 type <<$@
301 #include <winuser.h>
302 1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
303 << KEEP
305 $(_VC_MANIFEST_BASENAME).auto.manifest :
306 type <<$@
307 <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
308 <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
309 </assembly>
310 << KEEP