#******************************************************************************
#  Makefile for the VLPT directory
#
#       SCCSID = @(#)makefile	6.5 91/07/17
#
#       IBM/Microsoft Confidential
#
#       Copyright (c) IBM Corporation 1987, 1989
#       Copyright (c) Microsoft Corporation 1987, 1989
#
#       All Rights Reserved
#
#******************************************************************************

#
# ******  NOTE  ******
#
#
#        If you are using a SED command with TAB characters, many editors
#        will expand tabs causing unpredictable results in other programs.
#
#        Documentation:
#
#        Using SED command with TABS. Besure to invoke set tab save option
#        on your editor. If you don't, the program 'xyz' will not work
#        correctly.
#

!include ..\vdevsub.mak

#
# Conditional Setup Area and User Defined Macros
#


#
# Compiler and Linker Option changes from ..\VDEVSUB.MAK
#

DEF     = ..\..\..\lib\vlpt.def

#****************************************************************************
# Set up Macros that will contain all the different dependencies for the
# executables and dlls etc. that are generated.
#****************************************************************************


OBJ1 =vlptdata.obj vlptinit.obj vlptuser.obj vlptin.obj vlptout.obj
OBJ2 =vlpti17.obj vlpti05.obj vlptdo.obj vlptlo.obj

OBJS = $(OBJ1) $(OBJ2)

#****************************************************************************
#   Target Information
#****************************************************************************
#
# This is a very important step. The following small amount of code MUST
# NOT be removed from the program. The following directive will do
# dependency checking every time this component is built UNLESS the
# following is performed:
#                    A specific tag is used -- ie. all
#
# This allows the developer as well as the B & I group to perform incremental
# build with a degree of accuracy that has not been used before.
# There are some instances where certain types of INCLUDE files must be
# created first. This type of format will allow the developer to require
# that file to be created first. In order to achive that, all that has to
# be done is to make the DEPEND.MAK tag have your required target. Below is
# an example:
#
#    depend.mak:   { your file(s) } dephold
#
# Please DON'T remove the following line
#


#
# Should be the default tag for all general processing
#

all:    vlpt.sys

clean:
        if exist *.obj del *.obj
        if exist *.obd del *.obd
        if exist *.stb del *.stb
        if exist *.lnk del *.lnk
        if exist *.sys del *.sys
        if exist *.sym del *.sym
        if exist *.exe del *.exe
        if exist *.com del *.com
        if exist *.lst del *.lst
        if exist *.lsd del *.lsd
        if exist *.ltb del *.ltb
        if exist *.sin del *.sin
        if exist *.map del *.map
        if exist *.old del *.old
        if exist *.cvk del *.cvk


#*****************************************************************************
#   Specific Description Block Information
#*****************************************************************************

# This section would only be for specific direction as to how to create
# unique elements that are necessary to the build process. This could
# be compiling or assembling, creation of DEF files and other unique
# files.
# If all compiler and assembly rules are the same, use an inference rule to
# perform the compilation.
#

vlpt.sys: $(OBJS) $(LIBS) $(DEF) makefile
        $(LINK) $(LFLAGS) @<<$(@B).lnk
$(OBJ1) +
$(OBJ2)
$@
$*.map
$(LIBS)
$(DEF)
<<keep
        $(MAPSYM) $*.map


#*****************************************************************************
#       List of documentation source files
#*****************************************************************************


lpt.hpl lpt.hp2 lpt.ppr lpt.ppx lpt.txt: $(SCI) \
        lpt.doc lptvdh.vdh lptisu.isu lptimp.sci

lpt2.doc: lpt.doc
        sed -e "s;:h3;:h1;" -e "s;:h4;:h3;" -e "s;:h5;:h4;" lpt.doc >lpt2.doc

lpt2.hpl lpt2.hp2 lpt2.ppr lpt2.ppx lpt2.txt: $(SCI) \
        lpt2.doc lptvdh.vdh lptisu.isu lptimp.sci

#       Document .sin dependencies

lptexp.sin:     lptexp.sci lpt.asm
lptloc.sin:     lptloc.sci lptloc.asm


#****************************************************************************
