# Set the environmental variables for compiling

# -5s pentium instructions, stack based calling
# -bm multi-thread environment
# -s remove stack checking
# -wx maximum warning level
# -orli optimization
# -zq quiet
# -zp4 dword structure packing
# -fpi inline 387 instructions
# -ecs default to _syscall
OWCFLAGS=-6 -bm -s -wx -orli -zq -zp4 -fpi -ecs
#OWCFLAGS=-6s -bm -s -wx -od -zq -zp4 -fpi -ecs

all: testow.asm testvac.asm testow16.asm

testow.asm: test.c
  wcc386 $(OWCFLAGS) test.c
  wdis test.obj >testow.asm
  del test.obj

testow16.asm: test.c
  wcc $(OWCFLAGS) test.c
  wdis test.obj >testow16.asm
  del test.obj

testvac.asm: test.c
  icc /C /Fatestvac.asm test.c
  del test.obj

test.i: test.c
  wcc386 $(OWCFLAGS) -plc test.c

clean: .symbolic
  @if exist *.asm @del *.asm
  @if exist *.err @del *.err
