
# uncomment to create CV debug version.

DEBUG=

!IFDEF NODEBUG
!UNDEF DEBUG
!ENDIF

!IFDEF nodebug
!UNDEF DEBUG
!ENDIF

# switches that control the debug or non-debug version

!IFDEF DEBUG
CDEBUG=/Zi /Od /Ddebug
MDEBUG=/Zi
LINKDEBUG=/CO
!ELSE
PACKOPT = /E
!ENDIF

COPT=/FPi87 /AL /c /G2 /WX $(CDEBUG)
MOPT=/W2 $(MDEBUG)

LINKOPT=  /NOE $(LINKDEBUG) $(PACKOPT)
LINKST16= /ST:16000 $(LINKOPT)
LINKST32= /ST:32000 $(LINKOPT)


#-----------------------------------------------------------------------------

ALL : test.exe hpgraph.exe

test.exe. : test.obj hpint5.obj
        link $(LINKOPT) test+hpint5,test,nul,graphics;

hpgraph.exe : hpinstal.obj hpint5.obj
        link $(LINKOPT) hpint5+hpinstal,hpgraph;

test.obj : test.c
        cl $(COPT) test.c

hpinstal.obj : hpinstal.asm
        masm $(MOPT) hpinstal.asm;

hpint5.obj : hpint5.asm
        masm $(MOPT) hpint5.asm;

