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

!if  [SET LIB=..\..\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     \
        VIDIDC.obj    \
        VCAIDC.obj    \
        VCACAPT.obj   \
        VCAINIT.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


