#******************************************************************************
#
#  Makefile for the XGA 2.0 BVH
#
#     This is very simple because we assume we will always be called
#     from the main XGA 32 bit display driver makefile, which will
#     have taken care of setting up all the paths etc
#
#
#    Change History:
#
#    09/09/94 - 96301 - Add Module Versioning ID
#
#******************************************************************************

.SUFFIXES:      .c .asm .obj .lst .cod

# define the level sensitive includes
AINC=-I. -I..\32bit
CINC=-I. -I..\32bit

#
# compiler options etc
#

Debug=
CFLAGS=-c -Asnw -Zp -Zl -J -G2 -Gc -W3 -Owit -Gs $(Debug)
LFLAGS=/nod /m /far

#/**********************************************************************************************/
#/*  @76069 changes for updated build procedure                                                */
#/*         set the path here locally                                                          */
#/**********************************************************************************************/

H=..\..\..\h
INC=..\..\..\inc
LIB=..\..\..\lib
TOOLSPATH=..\..\..\tools

#
# Since the compiler/linker and other tools use environment
# variables ( INCLUDE, LIB, etc ) in order to get the location of files,
# the following line will check the environment for the LIFE of the
# makefile and will be specific to this set of instructions. All MAKEFILES
# are requested to use this format to insure that they are using the correct
# level of files and tools.
#

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


#****************************************************************************
#   Module Versioning
#****************************************************************************
!include      "..\..\..\H\version.mak"

ALL:
    $(MAKE) /f makefile makeall


# Rules for generating object files

.asm.obj:
        masm $(ADebug) $(AINC) $*.asm;

.c.obj:
        cl $(CFLAGS) $(CINC) $*.c

makeall:  bvhxga.dll


#****************************************************************************
#   Module Versioning
#****************************************************************************
bvhxga2.def: bvhxga.def makefile bvhxga.obj bvhxga2.obj bvhxga2.l
  copy bvhxga.def bvhxgas.def
  copy bvhxga.def bvhxga2.def
  echo #1 $(FILEVER) >  rep.in
  rep -f rep.in bvhxga2.def
  copy bvhxga2.def bvhxga.def


#******************************************************************************
# And now for the thing we really want to build - the BVH!
#******************************************************************************
bvhxga.dll: bvhxga.obj bvhxga2.obj bvhxga2.l bvhxga.def bvhxga2.def
  link386 $(LFLAGS) @bvhxga2.l
  mapsym bvhxga.map
  copy bvhxgas.def bvhxga.def
  del  bvhxgas.def



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