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
This commit is contained in:
helixhorned 2012-11-15 14:27:49 +00:00
parent 1cd11d06ef
commit f20a001618
5 changed files with 42 additions and 11 deletions

View file

@ -208,7 +208,7 @@ endif
# compiler flags etc. # compiler flags etc.
BASECFLAGS= -Wno-attributes BASECFLAGS= -Wno-attributes
BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement 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 BASEASFLAGS=-s #-g
BASELDFLAGS= BASELDFLAGS=

View file

@ -1,5 +1,5 @@
# EDuke32 Makefile for Microsoft NMake # EDuke32 Makefile for Microsoft NMake
CPLUSPLUS=1
SRC=source SRC=source
OBJ=obj_win OBJ=obj_win
EROOT=build EROOT=build
@ -25,16 +25,20 @@ DXROOT="H:\Microsoft DirectX SDK (February 2010)"
!ifdef DEBUG !ifdef DEBUG
# debugging options # debugging options
flags_cl= /Od /Zi flags_cl=/Od /Zi
flags_link=/DEBUG flags_link=/DEBUG
!else !else
# release options # release options
flags_cl=/O2 /GL /arch:SSE /MP /I$(WDKROOT)\inc\crt 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 flags_link=/RELEASE /LTCG # /LIBPATH:$(WDKROOT)\lib\wxp\i386 /LIBPATH:$(WDKROOT)\lib\Crt\i386
!endif !endif
ENGINEOPTS=/DUSE_OPENGL /DPOLYMER ENGINEOPTS=/DUSE_OPENGL /DPOLYMER
!ifdef CPLUSPLUS
ENGINEOPTS=$(ENGINEOPTS) /TP
!endif
CC=cl CC=cl
AS=ml AS=ml
LINK=link /nologo /opt:ref LINK=link /nologo /opt:ref
@ -57,7 +61,7 @@ CFLAGS=$(CFLAGS) /DDEBUGGINGAIDS /D "_CRT_SECURE_NO_DEPRECATE"
LIBS=$(LIBS) msvcrtd.lib LIBS=$(LIBS) msvcrtd.lib
!else !else
# comment msvcrt_winxp.obj if not using the WDK # comment msvcrt_winxp.obj if not using the WDK
LIBS=$(LIBS) msvcrt.lib msvcrt_winxp.obj LIBS=$(LIBS) msvcrt.lib # msvcrt_winxp.obj
!endif !endif
JMACTOBJ=$(OBJ)\file_lib.$o \ JMACTOBJ=$(OBJ)\file_lib.$o \
@ -71,7 +75,9 @@ JMACTOBJ=$(OBJ)\file_lib.$o \
AUDIOLIBOBJ=$(OBJ)\midi.$o $(OBJ)\music.$o $(OBJ)\mpu401.$o AUDIOLIBOBJ=$(OBJ)\midi.$o $(OBJ)\music.$o $(OBJ)\mpu401.$o
GAMEOBJS=$(OBJ)\game.$o \ GAMEOBJS=$(OBJ)\game.$o \
$(OBJ)\game_inline.$o \
$(OBJ)\actors.$o \ $(OBJ)\actors.$o \
$(OBJ)\actors_inline.$o \
$(OBJ)\anim.$o \ $(OBJ)\anim.$o \
$(OBJ)\common.$o \ $(OBJ)\common.$o \
$(OBJ)\demo.$o \ $(OBJ)\demo.$o \
@ -87,6 +93,7 @@ GAMEOBJS=$(OBJ)\game.$o \
$(OBJ)\premap.$o \ $(OBJ)\premap.$o \
$(OBJ)\savegame.$o \ $(OBJ)\savegame.$o \
$(OBJ)\sector.$o \ $(OBJ)\sector.$o \
$(OBJ)\sector_inline.$o \
$(OBJ)\rts.$o \ $(OBJ)\rts.$o \
$(OBJ)\config.$o \ $(OBJ)\config.$o \
$(OBJ)\animlib.$o\ $(OBJ)\animlib.$o\

View file

@ -35,8 +35,8 @@ flags_link=/DEBUG
flags_lib= flags_lib=
!else !else
# release options # release options
flags_cl=/O2 /GL /arch:SSE /MP /I$(WDKROOT)\inc\crt 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_link=/RELEASE /LTCG # /LIBPATH:$(WDKROOT)\lib\Crt\i386 /LIBPATH:$(WDKROOT)\lib\wxp\i386
flags_lib=/LTCG flags_lib=/LTCG
!endif !endif

View file

@ -104,12 +104,16 @@
<ClInclude Include="build\include\scriptfile.h" /> <ClInclude Include="build\include\scriptfile.h" />
<ClInclude Include="build\include\sdlayer.h" /> <ClInclude Include="build\include\sdlayer.h" />
<ClInclude Include="build\include\startwin.editor.h" /> <ClInclude Include="build\include\startwin.editor.h" />
<ClInclude Include="build\include\tracker.hpp" />
<ClInclude Include="build\include\tracker_operator.hpp" />
<ClInclude Include="build\include\tracker_operators.hpp" />
<ClInclude Include="build\include\winlayer.h" /> <ClInclude Include="build\include\winlayer.h" />
<ClInclude Include="build\include\msvc\inttypes.h" /> <ClInclude Include="build\include\msvc\inttypes.h" />
<ClInclude Include="build\include\msvc\stdint.h" /> <ClInclude Include="build\include\msvc\stdint.h" />
<ClInclude Include="build\src\engine_priv.h" /> <ClInclude Include="build\src\engine_priv.h" />
<ClInclude Include="source\actors.h" /> <ClInclude Include="source\actors.h" />
<ClInclude Include="source\anim.h" /> <ClInclude Include="source\anim.h" />
<ClInclude Include="source\animvpx.h" />
<ClInclude Include="source\demo.h" /> <ClInclude Include="source\demo.h" />
<ClInclude Include="source\game.h" /> <ClInclude Include="source\game.h" />
<ClInclude Include="source\gameexec.h" /> <ClInclude Include="source\gameexec.h" />
@ -215,9 +219,11 @@
<ClCompile Include="build\src\winlayer.c" /> <ClCompile Include="build\src\winlayer.c" />
<ClCompile Include="source\actors.c" /> <ClCompile Include="source\actors.c" />
<ClCompile Include="source\anim.c" /> <ClCompile Include="source\anim.c" />
<ClCompile Include="source\animvpx.c" />
<ClCompile Include="source\astub.c" /> <ClCompile Include="source\astub.c" />
<ClCompile Include="source\config.c" /> <ClCompile Include="source\config.c" />
<ClCompile Include="source\demo.c" /> <ClCompile Include="source\demo.c" />
<ClCompile Include="source\enet\src\compress.c" />
<ClCompile Include="source\game.c" /> <ClCompile Include="source\game.c" />
<ClCompile Include="source\gamedef.c" /> <ClCompile Include="source\gamedef.c" />
<ClCompile Include="source\gameexec.c" /> <ClCompile Include="source\gameexec.c" />

View file

@ -390,6 +390,18 @@
<ClInclude Include="source\input.h"> <ClInclude Include="source\input.h">
<Filter>eduke32\headers</Filter> <Filter>eduke32\headers</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="build\include\tracker_operator.hpp">
<Filter>build\headers</Filter>
</ClInclude>
<ClInclude Include="build\include\tracker_operators.hpp">
<Filter>build\headers</Filter>
</ClInclude>
<ClInclude Include="build\include\tracker.hpp">
<Filter>build\headers</Filter>
</ClInclude>
<ClInclude Include="source\animvpx.h">
<Filter>eduke32\headers</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="build\src\a-c.c"> <ClCompile Include="build\src\a-c.c">
@ -677,6 +689,12 @@
<ClCompile Include="source\input.c"> <ClCompile Include="source\input.c">
<Filter>eduke32\source</Filter> <Filter>eduke32\source</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="source\animvpx.c">
<Filter>eduke32\source</Filter>
</ClCompile>
<ClCompile Include="source\enet\src\compress.c">
<Filter>enet\source</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="Makefile.msvc"> <None Include="Makefile.msvc">