
NOTE:
-----
This sample program requires MASM 5.1 and OS2286P.LIB to assemble.  If you
do not have the assembler, or the library, they can be obtained by purchasing
the IBM Device Driver Source Kit for OS/2, at 1-800-633-8266.

This readme can be used as a makefile by editing out this "note"
section.  Then, the sample program can be built in the same manner as the
other sample programs in the MMPM/2 Toolkit - simply by typing "nmake".


#################################################################################
#
# Makefile for PDD VCA
#
#   Generates one SYS:
#	  vidvcit.sys
#
# Copyright (c) IBM Corporation  1993
# All Rights Reserved
#
#################################################################################

!if  [SET LIB=..\..\lib;%LIB%]			|| \
     [SET INCLUDE=..\..\h;..\..\inc;%INCLUDE%]
!endif

.SUFFIXES: .com .sys .exe .obj .mbj .asm .inc .def .lrf .crf .ref \
           .lst .sym .map .c .h .lib .msg .pro .txt

NAMESYS   = VIDVCIT
NAMEADF   = @704E

ASM=masm
AFLAGS=-MX -T -N -L -Zi

##################################
# Definitions for linker
##################################
LINK=link
LINK386=link386
LFLAGS= $(LNK_DEBUG) /B
LIBSSYS=os2286p+doscalls

##################################
# Inference rules
##################################
.asm.obj:
     $(ASM) $(AFLAGS) $(<B).asm,$(<B).obj;


##################################
# Object file list
##################################

SYSOBJS=VCA32.obj     \
        VCAIDC.obj    \
        VCACAPT.obj   \
        VCAINIT.obj   \
        VIDIDC.obj

all:sys

##################################
# vca32.sys Target descriptions
##################################

sys: $(NAMESYS).sys

$(NAMESYS).sys:     $(SYSOBJS) makefile $(NAMESYS).lrf	\
                    $(NAMESYS).def
		    $(LINK) $(LFLAGS) @$(NAMESYS).lrf

$(NAMESYS).def: makefile
	@echo Creating file <<$(@B).def
LIBRARY $(NAMESYS)
PROTMODE
SEGMENTS
   DSEG     CLASS 'DATA'
   CSEG     CLASS 'CODE'
   INITDSEG CLASS 'INITDATA'
   INITCSEG CLASS 'INITCODE'
<<keep


$(NAMESYS).lrf:  makefile
	@echo Creating file <<$(@B).lrf
$(SYSOBJS)
$(NAMESYS).sys
$(NAMESYS).map /map /nod
$(LIBSSYS)
$(NAMESYS).def;
<<keep


