6 !IF "$(CFG)" != "release" && "$(CFG)" != "debug"
7 !MESSAGE Invalid configuration "$(CFG)" specified.
8 !MESSAGE You can specify a configuration when running NMAKE
9 !MESSAGE by defining the macro CFG on the command line. For example:
11 !MESSAGE nmake /f makefile CFG=debug
13 !MESSAGE Possible choices for configuration are:
15 !MESSAGE "release" ( Win32 x86 release build )
16 !MESSAGE "debug" ( Win32 x86 debug build)
18 !ERROR An invalid configuration is specified.
22 !IF "$(OS)" == "Windows_NT"
33 INCLUDE_DIRS=/I"$(RPATK_DIR)" /I"$(RPATK_DIR)\arch\$(PORT)\$(ARCH)"
36 !IF "$(CFG)" == "release"
39 CPP_FLAGS=/nologo $(INCLUDE_DIRS) /Zp1 /W3 /EHsc /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /Fo"$(OUTDIR)\\" /FD /c
41 !ELSEIF "$(CFG)" == "debug"
44 CPP_FLAGS=/nologo $(INCLUDE_DIRS) /Zp1 /Zi /W3 /EHsc /Od /D "WIN32" /D "_DEBUG" /D "DEBUG" /D "_CONSOLE" /Fo"$(OUTDIR)\\" /FD /c
48 CPP_FLAGS=$(CPP_FLAGS)
50 !IF "$(DBG_CONSOLE)" == "shut"
51 CPP_FLAGS=$(CPP_FLAGS) /D "_SHUT_CONSOLE"
57 LINK32_FLAGS=/nologo /machine:I386 /out:"$(OUTDIR)\$(TARGET)"
59 # 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 ws2_32.lib /nologo /subsystem:console /incremental:no /machine:I386 /out:"$(OUTDIR)\$(TARGET)"