#   PCLRC.      This is the make file (NMAKE) for the RC
#           subdirectory of the hppcl5a printer driver.
#           It is called by the main make file, HPPCL5A.
#
#   Copyright (C) 1989, 1990, 1991 Hewlett-Packard Company.
#   All Rights Reserved.
#

#
#   Primary Description Block
#
# International mods
# Note: LANG is an external macros set by international
!IFNDEF LANG
RES_DIR=.\messages\usa
!ELSE
RES_DIR=.\messages\$(LANG)
!ENDIF

ALL : iclean hppcl.res

COMPILER=cl

LIBRARIAN=lib

INC_LOC=..\ink

# this is a utility which generates the .TBL files from TRANS.H:

# History:
# 20 jun 91  SD:  Added build.h to list of include files.

makeres.exe: makeres.c \
..\ink\printer.h \
..\ink\hppcl.h \
..\ink\pfm.h \
..\ink\trans.h \
..\ink\paperfmt.h
    $(COMPILER) -I$(INC_LOC) -W2 -Zl makeres.c slibce.lib

# generate the .TBL files: (if any one of them doesn't exist, one
# execution of makeres.exe generates them ALL

usascii.tbl: makeres.exe
    makeres

roman8.tbl: makeres.exe        #   Added roman8     jcs
    makeres

generic7.tbl: makeres.exe
    makeres

ecma94.tbl: makeres.exe
    makeres

xfaces.exe: xfaces.c
    $(COMPILER) -I$(INC_LOC) -W2 -Zl xfaces.c slibce.lib
    xfaces

# Create .TBL files from .ASM sources.. These are also in the FINSTALL\RC
# sources.  (But we've generated all of these from TRANS.H instead!!)

#.asm.tbl:
#   masm $*;
#   link $*;
#   exe2bin $*, $@
#   del $*.obj
#   del $*.exe

#usascii.tbl:   usascii.asm

#ecma94.tbl:    ecma94.asm

#generic7.tbl:  generic7.asm

#generic8.tbl:  generic8.asm

#roman8.tbl:    roman8.asm

!IFNDEF LANG
hppcl.res:  $(RES_DIR)\hppcl.rc \
        usascii.tbl ecma94.tbl generic7.tbl roman8.tbl \
        makeres.exe \
        xfaces.exe \
        portrait.ico \
        landscap.ico \
        pcm\hppclz1a.pcm \
        pcm\hp_bar.pcm \
        pcm\hp_forms.pcm \
        pcm\hp_globl.pcm \
        pcm\hp_great.pcm \
        pcm\hp_polws.pcm \
        pcm\hp_persu.pcm \
        pcm\hp_pro.pcm \
        pcm\hp_text.pcm \
        pcm\dd1cp1.pcm \
        pcm\bp1cp2.pcm \
        ..\ink\resource.h \
        ..\ink\strings.h \
        ..\ink\version.h \
        ..\ink\build.h
    rc -v3 -r -e -i..\ink -Fohppcl.res $(RES_DIR)\hppcl.rc
!ELSE
hppcl.res: $(RES_DIR)\hppcl.res
      copy $(RES_DIR)\hppcl.res
!ENDIF

iclean:
    del *.res
