ow = \watcom

.EXTENSIONS : .idd

ac = asm -q -I$(inc)
cc = wcc386 -q -mf -ecd -d2 -bc -bt=nt -s -I$(inc)
lc = jwlink op q, map
cx = $(lib)\of
!ifdef dll
ex = dll
lf = format win pe dll
c0 = $(lib)\dll
!else
ex = exe
lf = op stack=0x10000, heapsize=0x40000 com stack=0x1000
c0 = $(lib)\o0
!endif
!ifndef objs
objs=$(name).obj
!endif

$(bin)\$(name).$(ex): $(objs)
 $(lc) $(lf) @<<
N $@
F { $(c0).obj $(objs) }
L $(cx).lib
LIBP $(ow)\lib386\nt
<<
 del *.obj

.asm.obj:
 $(ac) $*.asm
.idd.obj:
 iddc -mf $*.idd
.c.obj:
 $(cc) $*.c
