123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482 |
- # Undefine this next line for release build
- !define RELEASE
- # Undefine this next line to use Causeway in all EXEs
- #!define USE_CAUSEWAY
- SRCDIR = SRC
- OBJDIR = OBJ
- LIBDIR = \qtools\lib;\blood\obj;\helix32
- .cpp.obj: .AUTODEPEND
- !ifdef RELEASE
- wpp386 -we -wx -4r -mf -d1 -s -ox -dNOMC $[@ /fo=$(OBJDIR)\$^&
- !else
- wpp386 -we -wx -4r -mf -d2 -s -dNOMC $[@ /fo=$(OBJDIR)\$^&
- !endif
- .c.obj: .AUTODEPEND
- !ifdef RELEASE
- wcc386 -we -wx -4r -mf -d2 -ox -dNOMC $[@ /fo=$(OBJDIR)\$^&
- !else
- wcc386 -we -wx -4r -mf -d2 -s -dNOMC $[@ /fo=$(OBJDIR)\$^&
- !endif
- .asm.obj: .AUTODEPEND
- !ifdef RELEASE
- tasm -mx -m2 -q $[@ $(OBJDIR)\$^&
- !else
- tasm -mx -m2 -zi $[@ $(OBJDIR)\$^&
- !endif
- # Specify the location of dependencies
- .obj : $(OBJDIR)
- .lib : $(LIBDIR)
- .c : $(SRCDIR)
- .cpp : $(SRCDIR)
- .h : $(SRCDIR)
- .asm : $(SRCDIR)
- BLOODOBJS = &
- blood.obj &
- screen.obj &
- view.obj &
- db.obj &
- gameutil.obj &
- fire.obj &
- fframe.obj &
- sectorfx.obj &
- map2d.obj &
- asstimer.obj &
- usrhooks.obj &
- levels.obj &
- sound.obj &
- sfx.obj &
- controls.obj &
- actor.obj &
- player.obj &
- replace.obj &
- tile.obj &
- triggers.obj &
- eventq.obj &
- qav.obj &
- weapon.obj &
- options.obj &
- gui.obj &
- seq.obj &
- mirrors.obj &
- dude.obj &
- warp.obj &
- credits.obj &
- mmulti.obj &
- ai.obj &
- aicult.obj &
- aigarg.obj &
- aihand.obj &
- aihound.obj &
- airat.obj &
- aispid.obj &
- aizomba.obj &
- aizombf.obj &
- MAPEDITOBJS = &
- bstub.obj &
- db.obj &
- screen.obj &
- gameutil.obj &
- sectorfx.obj &
- gui.obj &
- replace.obj &
- tile.obj &
- options.obj &
- edit2d.obj &
- edit3d.obj &
- QAVEDITOBJS = &
- qavedit.obj &
- qav.obj &
- gui.obj &
- replace.obj &
- tile.obj &
- gameutil.obj &
- screen.obj &
- options.obj &
- SEQEDITOBJS = &
- seqedit.obj &
- gui.obj &
- replace.obj &
- tile.obj &
- gameutil.obj &
- screen.obj &
- options.obj &
- ARTEDITOBJS = &
- artedit.obj &
- gui.obj &
- replace.obj &
- tile.obj &
- gameutil.obj &
- screen.obj &
- options.obj &
- EDGAROBJS = &
- edgar.obj &
- gui.obj &
- replace.obj &
- tile.obj &
- gameutil.obj &
- screen.obj &
- options.obj &
- TABLESOBJS = &
- tables.obj &
- PALTOOLOBJS = &
- paltool.obj &
- CONVDB6 = &
- convdb6.obj &
- APEOBJS = &
- ape.obj &
- SLUTOBJS = &
- slut.obj &
- REMAP = &
- remap.obj &
- SHPLAY = &
- shplay.obj &
- SETUP = &
- setup.obj &
- JOYTEST = &
- joytest.obj &
- SPRITEST = &
- spritest.obj &
- db.obj &
- dummy : globals.obj blood.exe mapedit.exe
- all : globals.obj blood.exe mapedit.exe qavedit.exe seqedit.exe artedit.exe tables.exe paltool.exe ape.exe slut.exe remap.exe shplay.exe setup.exe joytest.exe
- blood.exe : $(BLOODOBJS) qtools.lib helix32.lib engine.lib blood.lnk
- wlink @$^*
- mapedit.exe : $(MAPEDITOBJS) qtools.lib helix32.lib engine.lib mapedit.lnk
- wlink @$^*
- qavedit.exe : $(QAVEDITOBJS) qtools.lib helix32.lib qavedit.lnk
- wlink @$^*
- seqedit.exe : $(SEQEDITOBJS) qtools.lib helix32.lib seqedit.lnk
- wlink @$^*
- artedit.exe : $(ARTEDITOBJS) qtools.lib helix32.lib artedit.lnk
- wlink @$^*
- edgar.exe : $(EDGAROBJS) qtools.lib helix32.lib edgar.lnk
- wlink @$^*
- tables.exe : $(TABLESOBJS) qtools.lib tables.lnk
- wlink @$^*
- paltool.exe : $(PALTOOLOBJS) qtools.lib paltool.lnk
- wlink @$^*
- convdb6.exe : $(CONVDB6) qtools.lib convdb6.lnk
- wlink @$^*
- ape.exe : $(APEOBJS) qtools.lib ape.lnk
- wlink @$^*
- slut.exe : $(SLUTOBJS) qtools.lib slut.lnk
- wlink @$^*
- remap.exe : $(REMAP) qtools.lib helix32.lib remap.lnk
- wlink @$^*
- shplay.exe: $(SHPLAY) qtools.lib helix32.lib shplay.lnk
- wlink @$^*
- setup.exe: $(SETUP) qtools.lib setup.lnk
- wlink @$^*
- joytest.exe: $(JOYTEST) qtools.lib joytest.lnk
- wlink @$^*
- spritest.exe: $(SPRITEST) qtools.lib spritest.lnk
- wlink @$^*
- globals.obj : globals.cpp globals.h qtools.lib engine.lib $(BLOODOBJS) $(MAPEDITOBJS)
- !ifdef RELEASE
- wpp386 -w2 -4r -mf -oneatx -dNOMC $[@ /fo=$(OBJDIR)\$^&
- !else
- wpp386 -w2 -4r -mf -d2 $[@ -dNOMC /fo=$(OBJDIR)\$^&
- !endif
- blood.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- %append $^@ FILE $(OBJDIR)\globals.obj
- for %i in ($(BLOODOBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ FILE \helix32\hgd13.obj
- %append $^@ FILE \helix32\hgdx.obj
- %append $^@ LIB mca3r.lib
- %append $^@ LIB qtools.lib
- %append $^@ LIB engine.lib
- %append $^@ LIB audio_wf.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- mapedit.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- %append $^@ FILE $(OBJDIR)\globals.obj
- for %i in ($(MAPEDITOBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ FILE \helix32\hgd13.obj
- %append $^@ FILE \helix32\hgdx.obj
- %append $^@ FILE $(OBJDIR)\build.obj
- %append $^@ LIB mca3r.lib
- %append $^@ LIB qtools.lib
- %append $^@ LIB engine.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- qavedit.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- %append $^@ FILE $(OBJDIR)\globals.obj
- for %i in ($(QAVEDITOBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ FILE \helix32\hgd13.obj
- %append $^@ FILE \helix32\hgdx.obj
- %append $^@ LIB mca3r.lib
- %append $^@ LIB qtools.lib
- %append $^@ LIB engine.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- seqedit.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- %append $^@ FILE $(OBJDIR)\globals.obj
- for %i in ($(SEQEDITOBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ FILE \helix32\hgd13.obj
- %append $^@ FILE \helix32\hgdx.obj
- %append $^@ LIB mca3r.lib
- %append $^@ LIB qtools.lib
- %append $^@ LIB engine.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- artedit.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- %append $^@ FILE $(OBJDIR)\globals.obj
- for %i in ($(ARTEDITOBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ FILE \helix32\hgd13.obj
- %append $^@ FILE \helix32\hgdx.obj
- %append $^@ LIB mca3r.lib
- %append $^@ LIB qtools.lib
- %append $^@ LIB engine.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- edgar.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- %append $^@ FILE $(OBJDIR)\globals.obj
- for %i in ($(EDGAROBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ FILE \helix32\hgd13.obj
- %append $^@ LIB mca3r.lib
- %append $^@ LIB qtools.lib
- %append $^@ LIB engine.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- tables.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- for %i in ($(TABLESOBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ LIB qtools.lib
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- paltool.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- for %i in ($(PALTOOLOBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ LIB qtools.lib
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- convdb6.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- for %i in ($(CONVDB6)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ LIB qtools.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- ape.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- for %i in ($(APEOBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ LIB qtools.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- slut.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- for %i in ($(SLUTOBJS)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ LIB qtools.lib
- remap.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- for %i in ($(REMAP)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ FILE \helix32\hgd13.obj
- %append $^@ LIB qtools.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- shplay.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- for %i in ($(SHPLAY)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ FILE \helix32\hgd13.obj
- %append $^@ LIB mca3r.lib
- %append $^@ LIB qtools.lib
- %append $^@ LIB audio_wf.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- setup.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- for %i in ($(SETUP)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ LIB mca3r.lib
- %append $^@ LIB qtools.lib
- %append $^@ LIB audio_wf.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- joytest.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- for %i in ($(JOYTEST)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ LIB qtools.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
- spritest.lnk : makefile
- %create $^@
- %append $^@ NAME $^&
- %append $^@ DEBUG ALL
- for %i in ($(SPRITEST)) do %append $^@ FILE $(OBJDIR)\%i
- %append $^@ FILE $(OBJDIR)\globals.obj
- %append $^@ LIB qtools.lib
- %append $^@ LIB engine.lib
- !ifdef USE_CAUSEWAY
- %append $^@ SYSTEM CAUSEWAY
- !endif
- %append $^@ OPTION
- %append $^@ VERBOSE,
- %append $^@ REDEFSOK,
- %append $^@ STACK=8K,
- %append $^@ MAP=$(OBJDIR)\$^&.map,
|