initial commit
[oftp] / Makefile
1 obj = main.obj tgfx.obj tui.obj darray.obj util.obj
2 bin = oftp.exe
3
4 #opt = -otexan
5 warn = -w=3
6 dbg = -d3
7
8 CC = wcc386
9 LD = wlink
10 CFLAGS = $(warn) $(dbg) $(opt) $(def) -zq -bt=dos
11
12 $(bin): $(obj)
13         %write objects.lnk $(obj)
14         $(LD) debug all option map name $@ system dos4g file { @objects } $(LDFLAGS)
15
16 .c: src
17 .asm: src
18
19 .c.obj: .autodepend
20         $(CC) -fo=$@ $(CFLAGS) $<
21
22 .asm.obj:
23         nasm -f obj -o $@ $[*.asm
24
25 clean: .symbolic
26         del *.obj
27         del objects.lnk
28         del $(bin)