#******************************************************************************
#  Makefile for the KBDDD directory
#
#       SCCSID = @(#)makefile   6.4 91/06/21
#
#       IBM/Microsoft Confidential
#
#       Copyright (c) IBM Corporation 1987, 1989
#       Copyright (c) Microsoft Corporation 1987, 1989
#
#       All Rights Reserved
#
#******************************************************************************

#******************************************************************************
#  Environment Setup for the component(s).
#******************************************************************************

#
# Conditional Setup Area and User Defines Macros
#

#
# Compiler Location w/ includes, libs and tools
#

BASEH=..\..\..\..\h
RMH=..\..\resource\rsm_h
H=$(BASEH);$(RMH);..\..\dasd\diskh
INC=..\..\..\..\inc
LIB=..\..\..\..\lib;..\..\dasd\devhelp;..\..\resource\rmcalls
TOOLSPATH=..\..\..\..\tools

!if [set INCLUDE=$(H);$(INC)] || [set LIB=$(LIB)] || [set PATH=$(TOOLSPATH)]
!endif

CC=cl
COPTS=-Fc /W4 -c -Asnw -G2s -Zl -Zp -Osegli -nologo

ASM=masm
AOPTS=-Ml -t -L -N

LINKER=link
LOPTS=/nod /nop /map /exepack /packcode /packdata

WARNFILT = | sed -e /C4204/d -e /C4001/d -e /C4071/d


#****************************************************************************
#   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
#

!include      "$(BASEH)\version.mak"


#
# Objects to be made into the IBMKBD driver file,
# listed in order of linking.
#
OBJS=kbdstart.obj kbdstra.obj kbdstate.obj kbdinit.obj kbddata.obj kbdrm.obj

#
# Libraries Needed to link the IBMKBD driver file
#
KBDLIB= dhcalls rmcalls

all: ibmkbd.sys

clean:
     del *.obj
     del depend.mak


ibmkbd.sys: $(OBJS) ibmkbd.lrf
     $(LINKER) $(LOPTS) @ibmkbd.lrf
     mapsym ibmkbd

.c.obj:
        $(CC) $(COPTS) $*.c $(WARNFILT)

.asm.obj:
        $(ASM) $(AOPTS) $*.asm;

ibmkbd.lrf: $(OBJS) makefile
       rem  <<ibmkbd.lrf
$(OBJS:  = &^
)
ibmkbd.sys
ibmkbd.map
$(KBDLIB)
kbddd.def;
<<keep


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