eobish
diff Makefile.wat @ 7:6a350c554e46
started DOS port
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 19 Jan 2015 15:49:14 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile.wat Mon Jan 19 15:49:14 2015 +0200 1.3 @@ -0,0 +1,39 @@ 1.4 +gameobj = main.obj player.obj level.obj rend.obj tileset.obj image.obj 1.5 +fblibobj = fblib.obj 1.6 +sysobj = vbe.obj dpmi.obj timer.obj mouse.obj keyb.obj 1.7 +obj = $(gameobj) $(fblibobj) $(sysobj) 1.8 +bin = eobish.exe 1.9 + 1.10 +def = -dFBLIB_VBE=1 1.11 +opt = -5 -fp5 -otexan 1.12 +dbg = -d1 1.13 + 1.14 +AS = nasm 1.15 +CC = wcc386 1.16 +CXX = wpp386 1.17 +ASFLAGS = -fobj 1.18 +CFLAGS = $(dbg) $(opt) $(def) -zq -bt=dos -Isrc\dos 1.19 +CXXFLAGS = $(CFLAGS) 1.20 +LD = wlink 1.21 + 1.22 +$(bin): $(obj) 1.23 + %write objects.lnk file { $(obj) } 1.24 + $(LD) debug all name $@ @objects $(LDFLAGS) 1.25 + 1.26 +.c: src 1.27 +.c: src\dos 1.28 +.cc: src 1.29 +.asm: src 1.30 + 1.31 +.c.obj: .autodepend 1.32 + $(CC) $(CFLAGS) $[* 1.33 + 1.34 +.cc.obj: .autodepend 1.35 + $(CXX) $(CXXFLAGS) $[* 1.36 + 1.37 +.asm.obj: 1.38 + $(AS) $(ASFLAGS) -o $@ $[*.asm 1.39 + 1.40 +clean: .symbolic 1.41 + del *.obj 1.42 + del $(bin)