diff options
Diffstat (limited to 'CPP/Build.mak')
-rwxr-xr-x | CPP/Build.mak | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/CPP/Build.mak b/CPP/Build.mak index 9d4ac524..3356b8e5 100755 --- a/CPP/Build.mak +++ b/CPP/Build.mak @@ -1,3 +1,5 @@ +LIBS = $(LIBS) oleaut32.lib ole32.lib + !IFDEF CPU !IFNDEF NO_BUFFEROVERFLOWU LIBS = $(LIBS) bufferoverflowU.lib @@ -21,9 +23,22 @@ MY_ML = ml64 !ENDIF !ENDIF + +!IFDEF UNDER_CE +RFLAGS = $(RFLAGS) -dUNDER_CE +!IFDEF MY_CONSOLE +LFLAGS = $(LFLAGS) /ENTRY:mainACRTStartup +!ENDIF +!ELSE +LFLAGS = $(LFLAGS) -OPT:NOWIN98 +CFLAGS = $(CFLAGS) -Gr +LIBS = $(LIBS) user32.lib advapi32.lib shell32.lib +!ENDIF + + COMPL_ASM = $(MY_ML) -c -Fo$O/ $** -CFLAGS = $(CFLAGS) -nologo -c -Fo$O/ -WX -EHsc -Gr -Gy -GR- +CFLAGS = $(CFLAGS) -nologo -c -Fo$O/ -WX -EHsc -Gy -GR- !IFDEF MY_STATIC_LINK !IFNDEF MY_SINGLE_THREAD @@ -42,7 +57,7 @@ CFLAGS = $(CFLAGS) -W3 CFLAGS_O1 = $(CFLAGS) -O1 CFLAGS_O2 = $(CFLAGS) -O2 -LFLAGS = $(LFLAGS) -nologo -OPT:NOWIN98 -OPT:REF -OPT:ICF +LFLAGS = $(LFLAGS) -nologo -OPT:REF -OPT:ICF !IFDEF DEF_FILE LFLAGS = $(LFLAGS) -DLL -DEF:$(DEF_FILE) @@ -50,10 +65,10 @@ LFLAGS = $(LFLAGS) -DLL -DEF:$(DEF_FILE) PROGPATH = $O\$(PROG) -COMPL_O1 = $(CPP) $(CFLAGS_O1) $** -COMPL_O2 = $(CPP) $(CFLAGS_O2) $** -COMPL_PCH = $(CPP) $(CFLAGS_O1) -Yc"StdAfx.h" -Fp$O/a.pch $** -COMPL = $(CPP) $(CFLAGS_O1) -Yu"StdAfx.h" -Fp$O/a.pch $** +COMPL_O1 = $(CC) $(CFLAGS_O1) $** +COMPL_O2 = $(CC) $(CFLAGS_O2) $** +COMPL_PCH = $(CC) $(CFLAGS_O1) -Yc"StdAfx.h" -Fp$O/a.pch $** +COMPL = $(CC) $(CFLAGS_O1) -Yu"StdAfx.h" -Fp$O/a.pch $** all: $(PROGPATH) @@ -65,7 +80,10 @@ $O: $(PROGPATH): $O $(OBJS) $(DEF_FILE) link $(LFLAGS) -out:$(PROGPATH) $(OBJS) $(LIBS) + +!IFNDEF NO_DEFAULT_RES $O\resource.res: $(*B).rc - rc -fo$@ $** + rc $(RFLAGS) -fo$@ $** +!ENDIF $O\StdAfx.obj: $(*B).cpp $(COMPL_PCH) |