X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dos_sbtest;a=blobdiff_plain;f=Makefile.wat;fp=Makefile.wat;h=bc174e28f9c01eaeba4416a0543f881bea016df9;hp=0000000000000000000000000000000000000000;hb=07c19444f4f2a55abf97d181ab62aeaa51033c62;hpb=01a545fde6dc446fe626382f8bba50b9b7c1a35b diff --git a/Makefile.wat b/Makefile.wat new file mode 100644 index 0000000..bc174e2 --- /dev/null +++ b/Makefile.wat @@ -0,0 +1,36 @@ + +obj = main.obj audio.obj au_sb.obj dma.obj +bin = sbtest.exe +opt = -5 +dbg = -d1 + +!ifdef __UNIX__ +RM = rm -f +!else +RM = del +!endif + +incpath = -Isrc + +AS = nasm +CC = wcc386 +ASFLAGS = -fobj +CFLAGS = $(dbg) $(opt) $(def) -zq -bt=dos $(incpath) +LDFLAGS = option map +LD = wlink + +$(bin): $(obj) + $(LD) debug all name $@ system dos4g file { $(obj) } $(LDFLAGS) + +.c: src +.asm: src + +.c.obj: .autodepend + $(CC) -fo=$@ $(CFLAGS) $[* + +.asm.obj: + $(AS) $(ASFLAGS) -o $@ $[*.asm + +clean: .symbolic + $(RM) *.obj + $(RM) $(bin)