2006-04-13 20:47:06 +00:00
|
|
|
# EDuke32 Makefile for Watcom Make
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
SRC=source
|
|
|
|
OBJ=obj
|
|
|
|
EROOT=..\build
|
|
|
|
EINC=$(EROOT)\include
|
|
|
|
EOBJ=eobj
|
2006-04-13 20:47:06 +00:00
|
|
|
INC=$(SRC)
|
|
|
|
o=obj
|
|
|
|
|
|
|
|
ENGINELIB=engine.lib
|
|
|
|
EDITORLIB=build.lib
|
|
|
|
|
|
|
|
!ifdef __LOADDLL__
|
|
|
|
! loaddll wcc386 wccd386
|
|
|
|
!endif
|
|
|
|
|
|
|
|
DXROOT=c:\sdks\msc\dx7
|
|
|
|
|
2006-05-12 21:55:05 +00:00
|
|
|
ENGINEOPTS=-dSUPERBUILD -dPOLYMOST -dUSE_OPENGL
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
CC=wcc386
|
2006-07-02 17:33:49 +00:00
|
|
|
CXX=wpp386
|
|
|
|
CFLAGS= -zq -5r -s -orb -fp5 -d2 -db &
|
2006-08-31 01:54:23 +00:00
|
|
|
-i=$(INC) -i=$(EINC) -i=$(SRC)\jmact -i=$(SRC)\jaudiolib -i=$(DXROOT)\include &
|
2007-10-24 06:48:13 +00:00
|
|
|
-dRENDERTYPEWIN=1 -dNOCOPYPROTECT $(ENGINEOPTS)
|
|
|
|
LIBS=wsock32.lib dxguid.lib winmm.lib #opengl32.lib
|
2006-04-13 20:47:06 +00:00
|
|
|
WASMFLAGS=-d1
|
|
|
|
EXESUFFIX=.exe
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
JMACTOBJ=$(OBJ)\util_lib.$o &
|
|
|
|
$(OBJ)\file_lib.$o &
|
|
|
|
$(OBJ)\control.$o &
|
|
|
|
$(OBJ)\keyboard.$o &
|
|
|
|
$(OBJ)\mouse.$o &
|
|
|
|
$(OBJ)\mathutil.$o &
|
|
|
|
$(OBJ)\scriplib.$o
|
|
|
|
|
|
|
|
JAUDIOLIB_FX_STUB=$(OBJ)\jaudiolib_fxstub.$o
|
|
|
|
JAUDIOLIB_MUSIC_STUB=$(OBJ)\jaudiolib_musicstub.$o
|
|
|
|
JAUDIOLIB_FX=$(OBJ)\mv_mix.$o &
|
|
|
|
$(OBJ)\mv_mix16.$o &
|
|
|
|
$(OBJ)\mvreverb.$o &
|
|
|
|
$(OBJ)\pitch.$o &
|
|
|
|
$(OBJ)\multivoc.$o &
|
|
|
|
$(OBJ)\ll_man.$o &
|
|
|
|
$(OBJ)\fx_man.$o &
|
|
|
|
$(OBJ)\dsoundout.$o
|
|
|
|
JAUDIOLIB_MUSIC=$(OBJ)\midi.$o &
|
|
|
|
$(OBJ)\mpu401.$o &
|
|
|
|
$(OBJ)\music.$o
|
|
|
|
#JAUDIOLIBOBJ=$(JAUDIOLIB_MUSIC) $(JAUDIOLIB_FX) $(OBJ)\sounds.$o
|
|
|
|
#JAUDIOLIBOBJ=$(JAUDIOLIB_MUSIC_STUB) $(JAUDIOLIB_FX_STUB) $(OBJ)\sounds.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
GAMEOBJS=$(OBJ)\game.$o &
|
|
|
|
$(OBJ)\actors.$o &
|
|
|
|
$(OBJ)\anim.$o &
|
|
|
|
$(OBJ)\gamedef.$o &
|
|
|
|
$(OBJ)\gameexec.$o &
|
2006-12-10 19:32:44 +00:00
|
|
|
$(OBJ)\gamevars.$o &
|
2006-08-31 01:54:23 +00:00
|
|
|
$(OBJ)\global.$o &
|
|
|
|
$(OBJ)\menus.$o &
|
|
|
|
$(OBJ)\namesdyn.$o &
|
|
|
|
$(OBJ)\player.$o &
|
|
|
|
$(OBJ)\premap.$o &
|
|
|
|
$(OBJ)\savegame.$o &
|
|
|
|
$(OBJ)\sector.$o &
|
|
|
|
$(OBJ)\rts.$o &
|
|
|
|
$(OBJ)\config.$o &
|
|
|
|
$(OBJ)\animlib.$o &
|
|
|
|
$(OBJ)\testcd.$o &
|
|
|
|
$(OBJ)\osdfuncs.$o &
|
|
|
|
$(OBJ)\osdcmds.$o &
|
|
|
|
$(OBJ)\winbits.$o &
|
|
|
|
$(OBJ)\startwin.game.$o &
|
2006-04-13 20:47:06 +00:00
|
|
|
$(JMACTOBJ) &
|
|
|
|
$(JAUDIOLIBOBJ)
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
EDITOROBJS=$(OBJ)\astub.$o
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
# RULES
|
|
|
|
.EXTENSIONS: .wasm .res .rc
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
.wasm: $(SRC)\
|
|
|
|
.wasm: $(SRC)\jaudiolib
|
|
|
|
.c: $(SRC)\
|
|
|
|
.cpp: $(SRC)\
|
|
|
|
.c: $(SRC)\jmact
|
|
|
|
.c: $(SRC)\jaudiolib
|
|
|
|
.c: $(SRC)\util
|
|
|
|
.rc: $(SRC)\misc
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
.wasm.$o:
|
2006-08-31 01:54:23 +00:00
|
|
|
wasm $(WASMFLAGS) -fo=$(OBJ)\.$o $[@
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
.c.$o:
|
2006-08-31 01:54:23 +00:00
|
|
|
$(CC) $(CFLAGS) -fo=$(OBJ)\.$o $[@
|
2006-07-02 17:33:49 +00:00
|
|
|
.cpp.$o:
|
2006-08-31 01:54:23 +00:00
|
|
|
$(CXX) $(CFLAGS) -fo=$(OBJ)\.$o $[@
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
.rc.res:
|
2006-07-02 17:33:49 +00:00
|
|
|
wrc -i=$(EINC) -i=$(SRC) -fo=$^*.res -r $[@
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
# TARGETS
|
|
|
|
all: eduke32$(EXESUFFIX) build$(EXESUFFIX) .SYMBOLIC
|
|
|
|
%null
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
eduke32$(EXESUFFIX): $(GAMEOBJS) $(OBJ)\gameres.res $(EOBJ)\$(ENGINELIB)
|
2006-04-13 20:47:06 +00:00
|
|
|
wlink NAME $@ &
|
|
|
|
SYSTEM WIN95 &
|
|
|
|
DEBUG ALL &
|
|
|
|
FILE { $(GAMEOBJS) $(ENGINEOBJS) } &
|
2006-08-31 01:54:23 +00:00
|
|
|
RESOURCE $(OBJ)\gameres.res &
|
2006-04-13 20:47:06 +00:00
|
|
|
LIBPATH $(DXROOT)\lib &
|
|
|
|
LIBPATH $(EOBJ) &
|
|
|
|
LIBRARY { $(ENGINELIB) $(LIBS) }
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
mapster32$(EXESUFFIX): $(EDITOROBJS) $(OBJ)\buildres.res $(EOBJ)\$(ENGINELIB) $(EOBJ)\$(EDITORLIB)
|
2006-04-13 20:47:06 +00:00
|
|
|
wlink NAME $@ &
|
|
|
|
SYSTEM WIN95 &
|
|
|
|
DEBUG ALL &
|
|
|
|
FILE { $(EDITOROBJS) } &
|
2006-08-31 01:54:23 +00:00
|
|
|
RESOURCE $(OBJ)\buildres.res &
|
2006-04-13 20:47:06 +00:00
|
|
|
LIBPATH $(DXROOT)\lib &
|
|
|
|
LIBPATH $(EOBJ) &
|
|
|
|
LIBRARY { $(LIBS) $(ENGINELIB) $(EDITORLIB) }
|
|
|
|
|
|
|
|
!include Makefile.deps
|
|
|
|
|
|
|
|
cwd=$+ $(%cwd) $-
|
|
|
|
enginelib editorlib: .SYMBOLIC
|
|
|
|
-mkdir $(EOBJ)
|
2006-08-31 01:54:23 +00:00
|
|
|
%write $(EOBJ)\overrides.mak OBJ=$(cwd)\$(EOBJ)
|
|
|
|
%write $(EOBJ)\overrides.mak CFLAGS=$(ENGINEOPTS)
|
2006-04-13 20:47:06 +00:00
|
|
|
cd $(EROOT)
|
2006-08-31 01:54:23 +00:00
|
|
|
wmake -f Makefile.watcom OVERRIDES=$(cwd)\$(EOBJ)\overrides.mak $@
|
2006-04-13 20:47:06 +00:00
|
|
|
cd $(cwd)
|
|
|
|
|
2006-08-31 01:54:23 +00:00
|
|
|
$(EOBJ)\$(EDITORLIB): editorlib .SYMBOLIC
|
|
|
|
$(EOBJ)\$(ENGINELIB): enginelib .SYMBOLIC
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
# PHONIES
|
|
|
|
clean: .SYMBOLIC
|
2006-08-31 01:54:23 +00:00
|
|
|
-del /q $(OBJ)\* eduke32$(EXESUFFIX) mapster32$(EXESUFFIX)
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
veryclean: clean .SYMBOLIC
|
2006-08-31 01:54:23 +00:00
|
|
|
-del /q $(EOBJ)\*
|