#  make file to build prnttest.exe

! IFDEF RETAIL
CFLAGS=/AM /W3 /Gsw /Zp /c /Oslgw
LFLAGS=/NOD/NOE
AFLAGS=/W2
! ELSE
CFLAGS=/AM /W3 /Gsw /Zepid /c /Od
LFLAGS=/NOD/NOE/Co
AFLAGS=/W2/Zi
! ENDIF

all: prnttest.exe

.c.obj:
  cl $(CFLAGS) $*.c

.asm.obj:
  masm $(AFLAGS) $*.asm;

prnttest.res : prnttest.rc prnttest.h isg_test.h dialog.h prnttest.dlg \
               charwdth.txt curvtest.txt funcsupp.txt grayscal.txt \
               linetest.txt polytest.txt rasttest.txt texttest.txt
  rc -r prnttest.rc

prnttest.exe : abort.obj about.obj brushes.obj command.obj curve.obj \
               devcaps.obj drawobj.obj fonts.obj getinfo.obj intrface.obj \
               line.obj misc.obj pens.obj polygon.obj prnttest.obj \
               raster.obj resetdc.obj setup.obj text.obj title.obj \
               object.obj library.obj test.obj isg_misc.obj printer.obj \
               devinfo.obj bitmap.obj datetime.obj \
               prnttest.h isg_test.h prnttest.def prnttest.res
  link @<<
        abort about brushes command curve devcaps +
        drawobj fonts getinfo intrface line misc pens +
        polygon prnttest raster resetdc setup text title +
        object library test isg_misc printer devinfo +
        bitmap datetime
        prnttest.exe
        prnttest.map
        /align:16/map/li libw mlibcew $(LFLAGS)
        prnttest.def
<<
  mapsym prnttest
  rc -30 prnttest
