30 lines
585 B
Makefile
30 lines
585 B
Makefile
obj = sprites.o game.o bmpload.o arena.o movement.o combat.o spawn.o
|
|
|
|
all: system/system.lib game.exe test .SYMBOLIC
|
|
|
|
system/system.lib: .SYMBOLIC
|
|
cd system
|
|
wmake
|
|
cd ..
|
|
|
|
.c.o:
|
|
wcc386 -q -bt=dos $<
|
|
|
|
.asm.o:
|
|
wasm $<
|
|
|
|
sprites.asm: sprtsht.bmp spritesheet.yml
|
|
bin/build_spritesheet_asm.rb
|
|
|
|
game.exe: $(obj) system/system.lib
|
|
wcl386 -q -fe=game -bt=dos -l=dos4g $(obj) system/system.lib
|
|
|
|
test: test.c spawn_test.c spawn.c .SYMBOLIC
|
|
wcl386 -fe=test -bt=dos -l=dos4g test.c spawn.c spawn_test.c cutest-1.5/CuTest.c
|
|
|
|
clean: .SYMBOLIC
|
|
rm *.o
|
|
rm *.err
|
|
rm system/*.o
|
|
rm system/*.lib
|