2025-04-27 07:49:33 -04:00

134 lines
3.7 KiB
Makefile

# Copyright (c) 1999-2001 Microsoft Corporation, All Rights Reserved
# In order for this makefile to build, the LIB and INCLUDE
# environment variables must be set to the appropriate framework
# directories for the WBEM SDK.
!IF "$(CFG)" == ""
CFG=%%1 - Win32 Release
!MESSAGE No configuration specified. Defaulting to "$(CFG)"
!ENDIF
DEF_FILE=%%1.def
!IF "$(CFG)" != "%%1 - Win32 Release" && "$(CFG)" != "%%1 - Win32 Debug"
!MESSAGE Invalid configuration "$(CFG)" specified.
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "%%1.mak" CFG="%%1 - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "%%1 - Win32 Release"
!MESSAGE "%%1 - Win32 Debug"
!MESSAGE
!ERROR An invalid configuration is specified.
!ENDIF
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
!IF "$(CFG)" == "%%1 - Win32 Release"
OUTDIR=.\Release
ALL : "$(OUTDIR)\%%1.dll"
CLEAN :
-@erase "$(OUTDIR)\*.OBJ"
-@erase "$(OUTDIR)\vc50.idb"
-@erase "$(OUTDIR)\%%1.dll"
-@erase "$(OUTDIR)\%%1.pch"
-@erase "$(OUTDIR)\%%1.exp"
-@erase "$(OUTDIR)\%%1.lib"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
CPP=cl.exe
CPP_PROJ=/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" -DUSE_POLARITY -D_WINDLL\
/Fp"$(OUTDIR)\%%1.pch" /YX /Fo"$(OUTDIR)\\" /Fd"$(OUTDIR)\\" /FD /c
CPP_OBJS=.\Release/
.cpp{$(CPP_OBJS)}.obj:
$(CPP) @<<
$(CPP_PROJ) $<
<<
LINK32=link.exe
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 framedyn.lib /nologo /subsystem:windows /dll /incremental:no\
/pdb:"$(OUTDIR)\%%1.pdb" /out:"$(OUTDIR)\%%1.dll"\
/implib:"$(OUTDIR)\%%1.lib"
LINK32_OBJS= \
"$(OUTDIR)\MAINDLL.OBJ" \
%%M
"$(OUTDIR)\%%1.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS) /def:$(DEF_FILE)
<<
!ELSEIF "$(CFG)" == "%%1 - Win32 Debug"
OUTDIR=.\debug
ALL : "$(OUTDIR)\%%1.dll"
CLEAN :
-@erase "$(OUTDIR)\*.OBJ"
-@erase "$(OUTDIR)\vc50.idb"
-@erase "$(OUTDIR)\vc50.pdb"
-@erase "$(OUTDIR)\%%1.dll"
-@erase "$(OUTDIR)\%%1.pch"
-@erase "$(OUTDIR)\%%1.exp"
-@erase "$(OUTDIR)\%%1.ilk"
-@erase "$(OUTDIR)\%%1.lib"
-@erase "$(OUTDIR)\%%1.pdb"
"$(OUTDIR)" :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
CPP=cl.exe
CPP_PROJ=/nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" -DUSE_POLARITY -D_WINDLL\
/Fp"$(OUTDIR)\%%1.pch" /YX /Fo"$(OUTDIR)\\" /Fd"$(OUTDIR)\\" /FD /c
CPP_OBJS=.\debug/
.cpp{$(CPP_OBJS)}.obj:
$(CPP) @<<
$(CPP_PROJ) $<
<<
LINK32=link.exe
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 msvcrtd.lib framedyd.lib /nologo /subsystem:windows /dll\
/incremental:yes /pdb:"$(OUTDIR)\%%1.pdb" /debug \
/out:"$(OUTDIR)\%%1.dll" /implib:"$(OUTDIR)\%%1.lib" /pdbtype:sept /NODEFAULTLIB
LINK32_OBJS= \
"$(OUTDIR)\MAINDLL.OBJ" \
%%M
"$(OUTDIR)\%%1.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
$(LINK32) @<<
$(LINK32_FLAGS) $(LINK32_OBJS) /def:$(DEF_FILE)
<<
!ENDIF
!IF "$(CFG)" == "%%1 - Win32 Release" || "$(CFG)" == "%%1 - Win32 Debug"
SOURCE=.\MAINDLL.CPP
"$(OUTDIR)\MAINDLL.OBJ" : $(SOURCE) "$(OUTDIR)"
!ENDIF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The above sequence of tildes must not be removed. This file is included
in MOENGINE as a resource, and is not NULL-terminated, requiring a unique
substring to identify the end of file.