2006-12-21 12:53:11 +00:00
|
|
|
# EDuke32 Makefile for Microsoft NMake
|
2012-11-15 14:27:49 +00:00
|
|
|
CPLUSPLUS=1
|
2014-07-22 07:25:54 +00:00
|
|
|
DUKE3D_SRC=source
|
|
|
|
DUKE3D_OBJ=$(DUKE3D_SRC)\obj_win
|
|
|
|
ENGINE_ROOT=build
|
|
|
|
ENGINE_INC=$(ENGINE_ROOT)\include
|
|
|
|
ENGINE_OBJ=$(DUKE3D_SRC)\eobj_win
|
|
|
|
DUKE3D_INC=$(DUKE3D_SRC)
|
|
|
|
DUKE3D_RSRC=rsrc
|
2006-04-13 20:47:06 +00:00
|
|
|
o=obj
|
|
|
|
|
2014-02-11 07:39:09 +00:00
|
|
|
!ifndef WINBITS
|
|
|
|
WINBITS=32
|
|
|
|
!endif
|
|
|
|
|
2014-02-10 10:59:42 +00:00
|
|
|
WINLIB=\$(WINBITS)
|
Win64 support! (Meaning it works, not that we recommend it for everyday use.)
This includes a complete Windows header and library refresh, including the addition of 64-bit compiled libs:
*libogg 1.3.0
*libvorbis 1.3.3
*zlib 1.2.7
*libpng 1.5.13
*libvpx 9a3de881c0e681ba1a79a166a86308bbc84b4acd
*SDL_mixer 1.2.12 (for RENDERTYPE=SDL)
*DirectX import libraries: dsound and dxguid (now included)
To build in 64-bit, you essentially need MinGW's MSYS (but not MinGW itself) and MinGW-w64 at the top of your PATH. The target is automatically detected using `$(CC) -dumpmachine`. The EDukeWiki will get detailed instrucitons.
All compiler and linker warnings when building in 64-bit mode have been fixed.
Remaining 64-bit to-do:
- The ebacktrace dll does not build under 64-bit. It uses code specific to the format of 32-bit executables and will have to be ported to work with 64-bit executables. A future 64-bit version will be named ebacktrace1-64.dll.
- RENDERTYPE=SDL crashes in SDL_mixer's Mix_Linked_Version().
- DirectInput gives an error and does not function. This only affects joysticks, and the error never happens without any plugged in.
- Port the classic renderer ASM to 64-bit. (Just kidding, this is way out of my league.)
This commit includes a fair bit of Makefile development spanning all platforms, including simplifying the SDLCONFIG code, fixing build on Mac OS X (thanks rhoenie!), globally factoring Apple brew/port inclusion, enforcing that all -L come before all -l, and ensuring that $(shell ) is always :='d.
In addition, I have resurrected the old GCC_MAJOR and GCC_MINOR detection using `$(CC) -dumpversion`, but I have made it failsafe in case the command fails or the version is manually specified. I have applied this new fine-grained detection where applicable, including allowing LTO, and restraining -W's to versions that support them.
git-svn-id: https://svn.eduke32.com/eduke32@3278 1a8010ca-5511-0410-912e-c29ae57300e0
2012-12-13 02:37:20 +00:00
|
|
|
|
2014-02-10 10:59:42 +00:00
|
|
|
!if ($(WINBITS)==32)
|
|
|
|
WINMACHINE=/MACHINE:X86
|
|
|
|
!elseif ($(WINBITS)==64)
|
|
|
|
WINMACHINE=/MACHINE:X64
|
|
|
|
!endif
|
Win64 support! (Meaning it works, not that we recommend it for everyday use.)
This includes a complete Windows header and library refresh, including the addition of 64-bit compiled libs:
*libogg 1.3.0
*libvorbis 1.3.3
*zlib 1.2.7
*libpng 1.5.13
*libvpx 9a3de881c0e681ba1a79a166a86308bbc84b4acd
*SDL_mixer 1.2.12 (for RENDERTYPE=SDL)
*DirectX import libraries: dsound and dxguid (now included)
To build in 64-bit, you essentially need MinGW's MSYS (but not MinGW itself) and MinGW-w64 at the top of your PATH. The target is automatically detected using `$(CC) -dumpmachine`. The EDukeWiki will get detailed instrucitons.
All compiler and linker warnings when building in 64-bit mode have been fixed.
Remaining 64-bit to-do:
- The ebacktrace dll does not build under 64-bit. It uses code specific to the format of 32-bit executables and will have to be ported to work with 64-bit executables. A future 64-bit version will be named ebacktrace1-64.dll.
- RENDERTYPE=SDL crashes in SDL_mixer's Mix_Linked_Version().
- DirectInput gives an error and does not function. This only affects joysticks, and the error never happens without any plugged in.
- Port the classic renderer ASM to 64-bit. (Just kidding, this is way out of my league.)
This commit includes a fair bit of Makefile development spanning all platforms, including simplifying the SDLCONFIG code, fixing build on Mac OS X (thanks rhoenie!), globally factoring Apple brew/port inclusion, enforcing that all -L come before all -l, and ensuring that $(shell ) is always :='d.
In addition, I have resurrected the old GCC_MAJOR and GCC_MINOR detection using `$(CC) -dumpversion`, but I have made it failsafe in case the command fails or the version is manually specified. I have applied this new fine-grained detection where applicable, including allowing LTO, and restraining -W's to versions that support them.
git-svn-id: https://svn.eduke32.com/eduke32@3278 1a8010ca-5511-0410-912e-c29ae57300e0
2012-12-13 02:37:20 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
AUDIOLIB_ROOT=$(DUKE3D_SRC)\jaudiolib
|
2009-07-29 10:33:56 +00:00
|
|
|
JAUDIOLIB=libjfaudiolib.lib
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
ENETDIR=$(DUKE3D_SRC)\enet
|
2009-12-05 09:22:43 +00:00
|
|
|
ENETLIB=libenet.lib
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
ENGINELIB=engine.lib
|
|
|
|
EDITORLIB=build.lib
|
|
|
|
|
2010-05-25 10:56:00 +00:00
|
|
|
# the WDK allows us to link against msvcrt.dll instead of msvcrxxx.dll
|
|
|
|
# this path should match build\Makefile.msvc
|
2012-12-14 17:13:17 +00:00
|
|
|
# WDKROOT="H:\WinDDK\7600.16385.1"
|
2014-02-10 10:59:42 +00:00
|
|
|
PLATFORM=platform\Windows
|
|
|
|
AUDIOINC=source\jaudiolib\third-party\common
|
|
|
|
AUDIOPLATFORM=source\jaudiolib\third-party\Windows
|
2010-05-25 10:56:00 +00:00
|
|
|
|
2014-02-11 07:39:09 +00:00
|
|
|
!ifndef RENDERTYPE
|
|
|
|
RENDERTYPE=WIN
|
|
|
|
!endif
|
|
|
|
!ifndef MIXERTYPE
|
|
|
|
MIXERTYPE=WIN
|
|
|
|
!endif
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
!ifdef DEBUG
|
|
|
|
# debugging options
|
2012-11-15 14:27:49 +00:00
|
|
|
flags_cl=/Od /Zi
|
2006-04-13 20:47:06 +00:00
|
|
|
flags_link=/DEBUG
|
|
|
|
!else
|
|
|
|
# release options
|
2014-02-11 07:39:09 +00:00
|
|
|
flags_cl=/O2 /GL /MP # /I$(WDKROOT)\inc\crt /I$(WDKROOT)\inc\api
|
|
|
|
!if ($(WINBITS)!=64)
|
|
|
|
flags_cl=$(flags_cl) /arch:SSE
|
|
|
|
!endif
|
2012-11-15 14:27:49 +00:00
|
|
|
flags_link=/RELEASE /LTCG # /LIBPATH:$(WDKROOT)\lib\wxp\i386 /LIBPATH:$(WDKROOT)\lib\Crt\i386
|
2006-04-13 20:47:06 +00:00
|
|
|
!endif
|
|
|
|
|
2014-02-10 10:59:42 +00:00
|
|
|
ENGINEOPTS=/DUSE_OPENGL /DPOLYMER /DUSE_LIBPNG /I..\$(PLATFORM)\include
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2012-11-15 14:27:49 +00:00
|
|
|
!ifdef CPLUSPLUS
|
|
|
|
ENGINEOPTS=$(ENGINEOPTS) /TP
|
|
|
|
!endif
|
|
|
|
|
2014-02-10 10:59:42 +00:00
|
|
|
!if ($(WINBITS)==64)
|
|
|
|
NOASM=1
|
|
|
|
!endif
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
CC=cl
|
|
|
|
AS=ml
|
2010-05-18 00:30:30 +00:00
|
|
|
LINK=link /nologo /opt:ref
|
2007-09-11 00:52:38 +00:00
|
|
|
MT=mt
|
2009-06-05 20:09:13 +00:00
|
|
|
CFLAGS= /MT /J /nologo $(flags_cl) \
|
2014-07-22 07:25:54 +00:00
|
|
|
/I$(DUKE3D_INC) /I$(ENGINE_INC)\msvc /I$(ENGINE_INC)\ /I$(DUKE3D_SRC)\jmact /I$(AUDIOLIB_ROOT)\include /I$(ENETDIR)\include \
|
2010-05-25 10:56:00 +00:00
|
|
|
/W2 $(ENGINEOPTS) \
|
2014-02-11 07:39:09 +00:00
|
|
|
/I$(PLATFORM)\include /I$(AUDIOINC)\include /DRENDERTYPE$(RENDERTYPE)=1 /DMIXERTYPE$(MIXERTYPE)=1 /DSDL_FRAMEWORK /DSDL_TARGET=2 /DUSE_LIBVPX
|
2010-05-25 10:56:00 +00:00
|
|
|
|
2014-02-11 07:39:09 +00:00
|
|
|
LIBS=user32.lib gdi32.lib shell32.lib winmm.lib ws2_32.lib comctl32.lib shlwapi.lib oleaut32.lib ole32.lib imm32.lib version.lib \
|
2014-02-10 10:59:42 +00:00
|
|
|
libFLAC.a libogg.a libvorbis.a libvorbisfile.a libvpx.a libpng_mini.a libz_mini.a libcompat-from-mingw-w64.a \
|
|
|
|
dsound.lib advapi32.lib libcompat-to-msvc.a
|
2008-03-09 08:14:12 +00:00
|
|
|
|
2014-02-11 07:39:09 +00:00
|
|
|
!if ("$(RENDERTYPE)"=="SDL")
|
|
|
|
LIBS=libSDL2main.a libSDL2.a libSDL2_mixer.a $(LIBS)
|
|
|
|
!endif
|
|
|
|
|
2010-05-25 10:56:00 +00:00
|
|
|
LIBS=/NODEFAULTLIB:glu32.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcrtd.lib /NODEFAULTLIB:libcmt.lib \
|
|
|
|
/NODEFAULTLIB:libcmtd.lib $(LIBS)
|
2008-03-09 08:14:12 +00:00
|
|
|
|
2014-02-10 10:59:42 +00:00
|
|
|
# NOASM When defined, uses C instead of assembly code
|
|
|
|
!ifdef NOASM
|
|
|
|
CFLAGS=$(CFLAGS) /DNOASM
|
|
|
|
!endif
|
|
|
|
|
2008-11-09 11:09:42 +00:00
|
|
|
ASFLAGS=/nologo /coff /c
|
2006-04-13 20:47:06 +00:00
|
|
|
EXESUFFIX=.exe
|
2008-12-28 23:27:24 +00:00
|
|
|
!ifdef DEBUG
|
2010-05-25 10:56:00 +00:00
|
|
|
CFLAGS=$(CFLAGS) /DDEBUGGINGAIDS /D "_CRT_SECURE_NO_DEPRECATE"
|
|
|
|
LIBS=$(LIBS) msvcrtd.lib
|
2009-06-05 20:09:13 +00:00
|
|
|
!else
|
2010-05-25 10:56:00 +00:00
|
|
|
# comment msvcrt_winxp.obj if not using the WDK
|
2012-11-15 14:27:49 +00:00
|
|
|
LIBS=$(LIBS) msvcrt.lib # msvcrt_winxp.obj
|
2008-12-28 23:27:24 +00:00
|
|
|
!endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
JMACTOBJ=$(DUKE3D_OBJ)\file_lib.$o \
|
|
|
|
$(DUKE3D_OBJ)\control.$o \
|
|
|
|
$(DUKE3D_OBJ)\keyboard.$o \
|
|
|
|
$(DUKE3D_OBJ)\mouse.$o \
|
|
|
|
$(DUKE3D_OBJ)\joystick.$o \
|
|
|
|
$(DUKE3D_OBJ)\mathutil.$o \
|
|
|
|
$(DUKE3D_OBJ)\scriplib.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
GAMEOBJS=$(DUKE3D_OBJ)\game.$o \
|
|
|
|
$(DUKE3D_OBJ)\game_inline.$o \
|
|
|
|
$(DUKE3D_OBJ)\actors.$o \
|
|
|
|
$(DUKE3D_OBJ)\actors_inline.$o \
|
|
|
|
$(DUKE3D_OBJ)\anim.$o \
|
|
|
|
$(DUKE3D_OBJ)\animvpx.$o \
|
|
|
|
$(DUKE3D_OBJ)\common.$o \
|
|
|
|
$(DUKE3D_OBJ)\demo.$o \
|
|
|
|
$(DUKE3D_OBJ)\gamedef.$o \
|
|
|
|
$(DUKE3D_OBJ)\gameexec.$o \
|
|
|
|
$(DUKE3D_OBJ)\gamevars.$o \
|
|
|
|
$(DUKE3D_OBJ)\global.$o \
|
|
|
|
$(DUKE3D_OBJ)\input.$o \
|
|
|
|
$(DUKE3D_OBJ)\menus.$o \
|
|
|
|
$(DUKE3D_OBJ)\namesdyn.$o \
|
|
|
|
$(DUKE3D_OBJ)\net.$o \
|
|
|
|
$(DUKE3D_OBJ)\player.$o \
|
|
|
|
$(DUKE3D_OBJ)\premap.$o \
|
|
|
|
$(DUKE3D_OBJ)\savegame.$o \
|
|
|
|
$(DUKE3D_OBJ)\sector.$o \
|
|
|
|
$(DUKE3D_OBJ)\sector_inline.$o \
|
|
|
|
$(DUKE3D_OBJ)\rev.$o \
|
|
|
|
$(DUKE3D_OBJ)\rts.$o \
|
|
|
|
$(DUKE3D_OBJ)\config.$o \
|
|
|
|
$(DUKE3D_OBJ)\animlib.$o\
|
|
|
|
$(DUKE3D_OBJ)\osdfuncs.$o \
|
|
|
|
$(DUKE3D_OBJ)\osdcmds.$o \
|
|
|
|
$(DUKE3D_OBJ)\grpscan.$o \
|
|
|
|
$(DUKE3D_OBJ)\winbits.$o \
|
|
|
|
$(DUKE3D_OBJ)\gameres.res \
|
|
|
|
$(DUKE3D_OBJ)\startwin.game.$o \
|
2006-07-22 06:13:16 +00:00
|
|
|
$(JMACTOBJ) \
|
2014-07-22 07:25:54 +00:00
|
|
|
$(DUKE3D_OBJ)\sounds.$o \
|
|
|
|
$(DUKE3D_OBJ)\soundsdyn.$o \
|
2008-01-27 22:50:29 +00:00
|
|
|
!ifdef DEBUG
|
2014-07-22 07:25:54 +00:00
|
|
|
$(DUKE3D_OBJ)\mdump.$o
|
2008-01-27 22:50:29 +00:00
|
|
|
!endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
EDITOROBJS=$(DUKE3D_OBJ)\astub.$o \
|
|
|
|
$(DUKE3D_OBJ)\common.$o \
|
|
|
|
$(DUKE3D_OBJ)\mathutil.$o \
|
|
|
|
$(DUKE3D_OBJ)\m32def.$o \
|
|
|
|
$(DUKE3D_OBJ)\m32vars.$o \
|
|
|
|
$(DUKE3D_OBJ)\m32exec.$o \
|
|
|
|
$(DUKE3D_OBJ)\sounds_mapster32.$o \
|
|
|
|
$(DUKE3D_OBJ)\rev.$o \
|
|
|
|
$(DUKE3D_OBJ)\buildres.res \
|
2008-01-27 22:50:29 +00:00
|
|
|
!ifdef DEBUG
|
2014-07-22 07:25:54 +00:00
|
|
|
$(DUKE3D_OBJ)\mdump.$o
|
2008-01-27 22:50:29 +00:00
|
|
|
!endif
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-02-11 07:39:09 +00:00
|
|
|
!if ("$(RENDERTYPE)"=="SDL")
|
2014-07-22 07:25:54 +00:00
|
|
|
GAMEOBJS=$(GAMEOBJS) $(DUKE3D_OBJ)\game_icon.$o
|
|
|
|
EDITOROBJS=$(EDITOROBJS) $(DUKE3D_OBJ)\build_icon.$o
|
2014-02-11 07:39:09 +00:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if ("$(MIXERTYPE)"=="WIN")
|
2014-07-22 07:25:54 +00:00
|
|
|
GAMEOBJS=$(GAMEOBJS) $(DUKE3D_OBJ)\midi.$o $(DUKE3D_OBJ)\music.$o $(DUKE3D_OBJ)\mpu401.$o
|
2014-02-11 07:39:09 +00:00
|
|
|
!endif
|
|
|
|
!if ("$(MIXERTYPE)"=="SDL")
|
2014-07-22 07:25:54 +00:00
|
|
|
GAMEOBJS=$(GAMEOBJS) $(DUKE3D_OBJ)\sdlmusic.$o
|
2014-02-11 07:39:09 +00:00
|
|
|
!endif
|
|
|
|
|
|
|
|
GAMEOBJS=$(GAMEOBJS) $(MUSICOBJ)
|
|
|
|
EDITOROBJS=$(EDITOROBJS) $(MUSICOBJ)
|
|
|
|
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
# RULES
|
|
|
|
.SUFFIXES: .masm
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
{$(DUKE3D_SRC)\}.masm{$(DUKE3D_OBJ)\}.$o:
|
2006-04-13 20:47:06 +00:00
|
|
|
$(AS) /c $(ASFLAGS) /Fo$@ $<
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
{$(DUKE3D_SRC)\jmact}.c{$(DUKE3D_OBJ)\}.$o:
|
2006-04-13 20:47:06 +00:00
|
|
|
$(CC) /c $(CFLAGS) /Fo$@ $<
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
{$(DUKE3D_SRC)\util}.c{$(DUKE3D_OBJ)\}.$o:
|
2006-04-13 20:47:06 +00:00
|
|
|
$(CC) /c $(CFLAGS) /Fo$@ $<
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
{$(DUKE3D_SRC)\}.c{$(DUKE3D_OBJ)\}.$o:
|
2006-04-13 20:47:06 +00:00
|
|
|
$(CC) /c $(CFLAGS) /Fo$@ $<
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
{$(DUKE3D_RSRC)\}.c{$(DUKE3D_OBJ)\}.$o:
|
2014-02-11 07:39:09 +00:00
|
|
|
$(CC) /c $(CFLAGS) /Fo$@ $<
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
{$(DUKE3D_SRC)\}.cpp{$(DUKE3D_OBJ)\}.$o:
|
2006-04-13 20:47:06 +00:00
|
|
|
$(CC) /c $(CFLAGS) /Fo$@ $<
|
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
{$(DUKE3D_SRC)\misc}.rc{$(DUKE3D_OBJ)\}.res:
|
|
|
|
$(RC) /i$(ENGINE_INC)\ /i$(DUKE3D_SRC)\ /DPOLYMER /fo$@ /r $<
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
# TARGETS
|
2012-12-16 04:04:16 +00:00
|
|
|
all: eduke32$(EXESUFFIX) mapster32$(EXESUFFIX)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
eduke32$(EXESUFFIX): $(GAMEOBJS) $(ENGINE_OBJ)\$(ENGINELIB) $(AUDIOLIB_ROOT)\$(JAUDIOLIB) $(ENETDIR)\$(ENETLIB)
|
2014-02-10 10:59:42 +00:00
|
|
|
$(LINK) /OUT:$@ /SUBSYSTEM:WINDOWS $(WINMACHINE) /LIBPATH:$(PLATFORM)\lib$(WINLIB) /LIBPATH:$(AUDIOPLATFORM)\lib$(WINLIB) $(flags_link) /MAP $** $(LIBS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(MT) -manifest $(DUKE3D_RSRC)$(WINLIB)\manifest.game.xml -hashupdate -outputresource:$@ -out:$@.manifest
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2014-07-22 07:25:54 +00:00
|
|
|
mapster32$(EXESUFFIX): $(EDITOROBJS) $(ENGINE_OBJ)\$(ENGINELIB) $(ENGINE_OBJ)\$(EDITORLIB) $(AUDIOLIB_ROOT)\$(JAUDIOLIB)
|
2014-02-10 10:59:42 +00:00
|
|
|
$(LINK) /OUT:$@ /SUBSYSTEM:WINDOWS $(WINMACHINE) /LIBPATH:$(PLATFORM)\lib$(WINLIB) /LIBPATH:$(AUDIOPLATFORM)\lib$(WINLIB) $(flags_link) /MAP $** $(LIBS)
|
2014-07-22 07:25:54 +00:00
|
|
|
$(MT) -manifest $(DUKE3D_RSRC)$(WINLIB)\manifest.build.xml -hashupdate -outputresource:$@ -out:$@.manifest
|
2008-03-09 08:14:12 +00:00
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
!include Makefile.deps
|
|
|
|
|
|
|
|
enginelib editorlib: AlwaysBuild
|
2014-07-22 07:25:54 +00:00
|
|
|
-mkdir $(ENGINE_OBJ)
|
|
|
|
echo DUKE3D_OBJ=$(MAKEDIR)\$(ENGINE_OBJ)\ > $(ENGINE_OBJ)\overrides.mak
|
|
|
|
echo CFLAGS=$(ENGINEOPTS) >> $(ENGINE_OBJ)\overrides.mak
|
|
|
|
echo WINBITS=$(WINBITS) >> $(ENGINE_OBJ)\overrides.mak
|
|
|
|
echo RENDERTYPE=$(RENDERTYPE) >> $(ENGINE_OBJ)\overrides.mak
|
|
|
|
echo MIXERTYPE=$(MIXERTYPE) >> $(ENGINE_OBJ)\overrides.mak
|
|
|
|
cd $(ENGINE_ROOT)
|
|
|
|
nmake /f Makefile.msvc "OVERRIDES=$(MAKEDIR)\$(ENGINE_OBJ)\overrides.mak" $@
|
2006-04-13 20:47:06 +00:00
|
|
|
cd $(MAKEDIR)
|
|
|
|
|
2009-07-29 10:33:56 +00:00
|
|
|
jaudiolib:
|
2014-07-22 07:25:54 +00:00
|
|
|
cd $(AUDIOLIB_ROOT)
|
2014-02-11 07:39:09 +00:00
|
|
|
nmake /f Makefile.msvc "MIXERTYPE=$(MIXERTYPE)" "WINBITS=$(WINBITS)"
|
2009-07-29 10:33:56 +00:00
|
|
|
cd $(MAKEDIR)
|
|
|
|
|
2009-12-05 09:22:43 +00:00
|
|
|
enet:
|
|
|
|
cd $(ENETDIR)
|
2014-02-11 07:39:09 +00:00
|
|
|
nmake /f Makefile.msvc "WINBITS=$(WINBITS)"
|
2009-12-05 09:22:43 +00:00
|
|
|
cd $(MAKEDIR)
|
2009-07-29 10:33:56 +00:00
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
AlwaysBuild: ;
|
2014-07-22 07:25:54 +00:00
|
|
|
$(ENGINE_OBJ)\$(EDITORLIB): editorlib ;
|
|
|
|
$(ENGINE_OBJ)\$(ENGINELIB): enginelib ;
|
|
|
|
$(AUDIOLIB_ROOT)\$(JAUDIOLIB): jaudiolib ;
|
2009-12-05 09:22:43 +00:00
|
|
|
$(ENETDIR)\$(ENETLIB): enet ;
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
# PHONIES
|
|
|
|
clean:
|
2014-07-22 07:25:54 +00:00
|
|
|
-del /Q $(DUKE3D_OBJ)\* eduke32$(EXESUFFIX) mapster32$(EXESUFFIX) \
|
2006-12-21 12:53:11 +00:00
|
|
|
*.pdb *.map *.manifest
|
2014-07-22 07:25:54 +00:00
|
|
|
-copy /y nul $(DUKE3D_OBJ)\keep.me
|
|
|
|
cd $(AUDIOLIB_ROOT)
|
2009-07-29 10:33:56 +00:00
|
|
|
nmake /f Makefile.msvc clean
|
2009-12-05 09:22:43 +00:00
|
|
|
cd $(MAKEDIR)\$(ENETDIR)
|
|
|
|
nmake /f Makefile.msvc clean
|
2009-07-29 10:33:56 +00:00
|
|
|
cd $(MAKEDIR)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
veryclean: clean
|
2014-07-22 07:25:54 +00:00
|
|
|
-del /Q $(ENGINE_OBJ)\*
|
|
|
|
-copy /y nul $(ENGINE_OBJ)\keep.me
|