#==============================================================================
# Intel 386(TM)/486(TM) C Code Builder(TM) Kit
# Copyright 1991 Intel Corporation.  All Rights Reserved.
#
# Make file for C Code Builder Kit Graphics Demo Program
#
# This make file will build either the C Code Builder Kit or the
# Microsoft(reg.) C Compiler version of the graphics demonstration
# program.  The user must ensure that the environment variables (ie, PATH,
# INCLUDE, etc) are properly setup for the version to be built.
#
# The Times Roman bit-mapped font (TMSRB.FON - included with the
# Microsoft(reg.) C Compiler) is required for this demonstration.  The
# demonstration program locates this file using the 'TMSRB' macro defined in
# 'MAKEFILE'.  Before building the demonstration program, either copy
# TMSRB.FON into the EXAMPLES\DEMO directory or change the font file path
# specified by the 'TMSRB' macro to identify the actual location of
# TMSRB.FON on your system.  '\\' to delimit subdirectories, ie,
# C:\\DIR\\TMSRB.FON).
#
# When building the deomnstration program with the Microsoft C Compiler,
# GRAPHICS.LIB is assumed to be included in the combined libraries.  If
# using only the component libraries (i.e., no combined library), add
# 'graphics.lib' to the end of the Microsoft link command in 'MAKEFILE'.
#
# Usage:
#   To build the C Code Builder Kit version   (cb_demo.exe)
#      type  'make'
#
#   To build Microsoft C Compiler version     (ms_demo.exe)
#      type  'make -bmake_ini_path MODE=MSC'
#      (make_ini_path is the location of the MAKE.INI file)
#
#------------------------------------------------------------------------------

MODE            = CODE_BUILDER          # C Code Builder Kit Version (default)
TMSRB_PATH      = .\\TMSRB.FON          # Font path name

SRCS            = fatal.c fungraph.c main.c mainblt.c memsize.c poly.c \
                  project.c shutdown.c startup.c time.c

#==============================================================================
# Build demonstration program executable
#------------------------------------------------------------------------------
demo_program :
   !if $(MODE) == CODE_BUILDER
      icc -DFONT_PATH="'\"$(TMSRB_PATH)\"'" -e cb_demo.exe *.c graphics.lib
   !else
      cl -AL -G2 -FPc87 -DFONT_PATH="\"$(TMSRB_PATH)\"" -Fems_demo.exe *.c
   !endif

#==============================================================================
# Dependency lines
#------------------------------------------------------------------------------
### MKMF:  Do not remove this line!  Automatic dependencies follow.

fungraph.obj: bool.h const.h debug.h points.h srnchr.h

main.obj: const.h debug.h srnchr.h

mainblt.obj: bool.h const.h debug.h srnchr.h

memsize.obj: bool.h const.h debug.h poly.h srnchr.h

poly.obj: debug.h

project.obj: bool.h debug.h points.h

shutdown.obj: srnchr.h

startup.obj: const.h debug.h srnchr.h

