#   HPPCL5A.    This is the main make file (NMAKE) for the
#           hppcl5a printer driver.  It will branch to
#           two other make files, PCLSRC in the SRC
#           subdirectory, and PCLRC in the RC subdirectory.
#
#   Copyright (C) 1989, 1990, 1991 Hewlett-Packard Company.
#   All Rights Reserved.
#

#
#   Primary Description Block
#
ALL :   iclean\
        PCLSRC \
        PCLRC \
        hppcl5a.drv

LINKER=LINK

OBJDIR=SRC\\

RC_LOC=RC\\

#
#   Call other make files for SRC and RC directories
#
PCLSRC	:
    cd src
    nmake /f pclsrc
    cd ..

PCLRC	:
    cd rc
    nmake /f pclrc
    cd ..

#
#   Link hppcl5a.exe
#
hppcl5a.exe:    $(OBJDIR)heap.obj \
        $(OBJDIR)lstrncpy.obj \
        $(OBJDIR)lmemcpy.obj \
        $(OBJDIR)lmemset.obj \
        $(OBJDIR)offsrect.obj \
        $(OBJDIR)dumputil.obj \
        $(OBJDIR)dump.obj \
        $(OBJDIR)wep.obj \
        $(OBJDIR)_write.obj \
        $(OBJDIR)charwdth.obj \
        $(OBJDIR)control.obj \
        $(OBJDIR)debug.lib \
        $(OBJDIR)devcap.obj \
        $(OBJDIR)devinstl.obj \
        $(OBJDIR)devmode.obj \
        $(OBJDIR)dlgutils.obj \
        $(OBJDIR)enumobj.obj \
        $(OBJDIR)environ.obj \
        $(OBJDIR)escquery.obj \
        $(OBJDIR)facetbl.obj \
        $(OBJDIR)fntutils.obj \
        $(OBJDIR)fontbld.obj \
        $(OBJDIR)fontman.obj \
        $(OBJDIR)fontutil.obj \
        $(OBJDIR)lclstr.obj \
        $(OBJDIR)memoman.obj \
        $(OBJDIR)options.obj \
        $(OBJDIR)paper.obj \
        $(OBJDIR)physical.obj \
        $(OBJDIR)qsort.obj \
        $(OBJDIR)realize.obj \
        $(OBJDIR)reset.obj \
        $(OBJDIR)stubs.obj \
        $(OBJDIR)transtbl.obj \
        $(OBJDIR)truetype.obj \
        $(OBJDIR)utils.obj \
        $(OBJDIR)dibtodev.obj \
        $(OBJDIR)scanline.obj \
        hppcl5a.lnk
    $(LINKER) @hppcl5a.lnk
    mapsym hppcl5a


#
#   Call the Resource complier to add resources.
#   HPPCL.DRV: this version uses DUMP.C and DumpUtil.A
#
hppcl5a.drv:    hppcl5a.exe \
        $(RC_LOC)hppcl.res
    copy hppcl5a.exe hppcl5a.drv
    rc -v3 -e $(RC_LOC)hppcl.res hppcl5a.drv

iclean:
    del hppcl5a.drv
