eobish
view Makefile.wat @ 8:c0e8bbf96849
merged
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 19 Jan 2015 15:49:36 +0200 |
parents | |
children |
line source
1 gameobj = main.obj player.obj level.obj rend.obj tileset.obj image.obj
2 fblibobj = fblib.obj
3 sysobj = vbe.obj dpmi.obj timer.obj mouse.obj keyb.obj
4 obj = $(gameobj) $(fblibobj) $(sysobj)
5 bin = eobish.exe
7 def = -dFBLIB_VBE=1
8 opt = -5 -fp5 -otexan
9 dbg = -d1
11 AS = nasm
12 CC = wcc386
13 CXX = wpp386
14 ASFLAGS = -fobj
15 CFLAGS = $(dbg) $(opt) $(def) -zq -bt=dos -Isrc\dos
16 CXXFLAGS = $(CFLAGS)
17 LD = wlink
19 $(bin): $(obj)
20 %write objects.lnk file { $(obj) }
21 $(LD) debug all name $@ @objects $(LDFLAGS)
23 .c: src
24 .c: src\dos
25 .cc: src
26 .asm: src
28 .c.obj: .autodepend
29 $(CC) $(CFLAGS) $[*
31 .cc.obj: .autodepend
32 $(CXX) $(CXXFLAGS) $[*
34 .asm.obj:
35 $(AS) $(ASFLAGS) -o $@ $[*.asm
37 clean: .symbolic
38 del *.obj
39 del $(bin)