From f20a001618a6c409881e9067f26425354416bc39 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Thu, 15 Nov 2012 14:27:49 +0000 Subject: [PATCH] Split r3159..r3161, part 1: Makefile and MSVC project file changes. git-svn-id: https://svn.eduke32.com/eduke32@3166 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.common | 2 +- polymer/eduke32/Makefile.msvc | 17 ++++++++++++----- polymer/eduke32/build/Makefile.msvc | 6 +++--- polymer/eduke32/eduke32.vcxproj | 8 +++++++- polymer/eduke32/eduke32.vcxproj.filters | 20 +++++++++++++++++++- 5 files changed, 42 insertions(+), 11 deletions(-) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index 2a6ee04f4..14b40e255 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -208,7 +208,7 @@ endif # compiler flags etc. BASECFLAGS= -Wno-attributes BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement -BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive +BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing BASEASFLAGS=-s #-g BASELDFLAGS= diff --git a/polymer/eduke32/Makefile.msvc b/polymer/eduke32/Makefile.msvc index 3aa4c8617..da401019a 100644 --- a/polymer/eduke32/Makefile.msvc +++ b/polymer/eduke32/Makefile.msvc @@ -1,5 +1,5 @@ # EDuke32 Makefile for Microsoft NMake - +CPLUSPLUS=1 SRC=source OBJ=obj_win EROOT=build @@ -25,16 +25,20 @@ DXROOT="H:\Microsoft DirectX SDK (February 2010)" !ifdef DEBUG # debugging options -flags_cl= /Od /Zi +flags_cl=/Od /Zi flags_link=/DEBUG !else # release options -flags_cl=/O2 /GL /arch:SSE /MP /I$(WDKROOT)\inc\crt -flags_link=/RELEASE /LTCG /LIBPATH:$(WDKROOT)\lib\wxp\i386 /LIBPATH:$(WDKROOT)\lib\Crt\i386 +flags_cl=/O2 /GL /arch:SSE /MP # /I$(WDKROOT)\inc\crt /I$(WDKROOT)\inc\api +flags_link=/RELEASE /LTCG # /LIBPATH:$(WDKROOT)\lib\wxp\i386 /LIBPATH:$(WDKROOT)\lib\Crt\i386 !endif ENGINEOPTS=/DUSE_OPENGL /DPOLYMER +!ifdef CPLUSPLUS +ENGINEOPTS=$(ENGINEOPTS) /TP +!endif + CC=cl AS=ml LINK=link /nologo /opt:ref @@ -57,7 +61,7 @@ CFLAGS=$(CFLAGS) /DDEBUGGINGAIDS /D "_CRT_SECURE_NO_DEPRECATE" LIBS=$(LIBS) msvcrtd.lib !else # comment msvcrt_winxp.obj if not using the WDK -LIBS=$(LIBS) msvcrt.lib msvcrt_winxp.obj +LIBS=$(LIBS) msvcrt.lib # msvcrt_winxp.obj !endif JMACTOBJ=$(OBJ)\file_lib.$o \ @@ -71,7 +75,9 @@ JMACTOBJ=$(OBJ)\file_lib.$o \ AUDIOLIBOBJ=$(OBJ)\midi.$o $(OBJ)\music.$o $(OBJ)\mpu401.$o GAMEOBJS=$(OBJ)\game.$o \ + $(OBJ)\game_inline.$o \ $(OBJ)\actors.$o \ + $(OBJ)\actors_inline.$o \ $(OBJ)\anim.$o \ $(OBJ)\common.$o \ $(OBJ)\demo.$o \ @@ -87,6 +93,7 @@ GAMEOBJS=$(OBJ)\game.$o \ $(OBJ)\premap.$o \ $(OBJ)\savegame.$o \ $(OBJ)\sector.$o \ + $(OBJ)\sector_inline.$o \ $(OBJ)\rts.$o \ $(OBJ)\config.$o \ $(OBJ)\animlib.$o\ diff --git a/polymer/eduke32/build/Makefile.msvc b/polymer/eduke32/build/Makefile.msvc index 6809462bd..c5dd79217 100644 --- a/polymer/eduke32/build/Makefile.msvc +++ b/polymer/eduke32/build/Makefile.msvc @@ -35,8 +35,8 @@ flags_link=/DEBUG flags_lib= !else # release options -flags_cl=/O2 /GL /arch:SSE /MP /I$(WDKROOT)\inc\crt -flags_link=/RELEASE /LTCG /LIBPATH:$(WDKROOT)\lib\Crt\i386 /LIBPATH:$(WDKROOT)\lib\wxp\i386 +flags_cl=/O2 /GL /arch:SSE /MP # /I$(WDKROOT)\inc\crt +flags_link=/RELEASE /LTCG # /LIBPATH:$(WDKROOT)\lib\Crt\i386 /LIBPATH:$(WDKROOT)\lib\wxp\i386 flags_lib=/LTCG !endif @@ -45,7 +45,7 @@ AS=ml RC=rc LINK=link /opt:ref /nologo CFLAGS=$(CFLAGS) /nologo /MT /J $(flags_cl) $(TARGETOPTS) /I$(INC) -ASFLAGS=/nologo /coff /c +ASFLAGS=/nologo /coff /c EXESUFFIX=.exe !ifdef DEBUG CFLAGS=$(CFLAGS) /DDEBUGGINGAIDS /D "_CRT_SECURE_NO_DEPRECATE" diff --git a/polymer/eduke32/eduke32.vcxproj b/polymer/eduke32/eduke32.vcxproj index 572194708..30e08fbbb 100644 --- a/polymer/eduke32/eduke32.vcxproj +++ b/polymer/eduke32/eduke32.vcxproj @@ -104,12 +104,16 @@ + + + + @@ -215,9 +219,11 @@ + + @@ -285,4 +291,4 @@ - + \ No newline at end of file diff --git a/polymer/eduke32/eduke32.vcxproj.filters b/polymer/eduke32/eduke32.vcxproj.filters index ee41839af..fe0a9c290 100644 --- a/polymer/eduke32/eduke32.vcxproj.filters +++ b/polymer/eduke32/eduke32.vcxproj.filters @@ -390,6 +390,18 @@ eduke32\headers + + build\headers + + + build\headers + + + build\headers + + + eduke32\headers + @@ -677,6 +689,12 @@ eduke32\source + + eduke32\source + + + enet\source + @@ -686,4 +704,4 @@ build - + \ No newline at end of file