# Makefile for hpscan16 stub device driver

!IFNDEF BUILDMSG
BUILDMSG=
!ENDIF

.SUFFIXES:
.SUFFIXES: .c .obj .lst .exe .exc .exs .com .sal .cod .sil .inc .skl .cla .cl1 .ctl .asm .idx .msg

MAKE    =nmake
asm     =masm
awarn   =-W1
aflags  =-Mx -t $(awarn) $(extasw)
ainc    =-I. -I..\..\h


.asm.obj:
        $(asm) $(ainc) $(aflags) $*.asm;

.asm.lst:
        $(asm) -l $(ainc) $(aflags) $*.asm;

all: hpscan16.sys
        -binplace hpscan16.sys

clean:
        if exist *.obj      del *.obj
        if exist *.exe      del *.exe
        if exist *.map      del *.map
        if exist *.sym      del *.sym
        if exist *.sys      del *.sys

hpscan16.sys: hpscan16.obj
        link16 hpscan16;
        exe2bin hpscan16.exe hpscan16.sys
