#############################################################################
#
#                   Copyright (C) 1994 SciTech Software
#                           All rights reserved.
#
# Descripton:   Generic makefile for the SuperVGA kit. Calls upon the
#               appropriate include file to bring in the correct definitions
#               for compiling with the sepecified compiler. By default
#               Borland C++ 3.1 is assumed.
#
# $Id: makefile 1.3 1994/03/20 07:44:03 kjb Exp $
#
#############################################################################

!include "\makedefs\makedefs.def"

# Object files required to build the libraries

OBJECTS         = svgac.obj svga.obj font8x16.obj pmode.obj

all: test16.exe test256.exe test32k.exe test64k.exe test16m.exe

test16.exe: test16.obj svga.lib cpu.obj
    $(CC) $(CC_FLAGS) test16.obj svga.lib cpu.obj

test256.exe: test256.obj svga.lib cpu.obj
    $(CC) $(CC_FLAGS) test256.obj svga.lib cpu.obj

test32k.exe: test32k.obj svga.lib cpu.obj
    $(CC) $(CC_FLAGS) test32k.obj svga.lib cpu.obj

test64k.exe: test64k.obj svga.lib cpu.obj
    $(CC) $(CC_FLAGS) test64k.obj svga.lib cpu.obj

test16m.exe: test16m.obj svga.lib cpu.obj
    $(CC) $(CC_FLAGS) test16m.obj svga.lib cpu.obj

paranoid.exe: paranoid.obj svga.lib cpu.obj
    $(CC) $(CC_FLAGS) paranoid.obj svga.lib cpu.obj

# Target to make the library file

svga.lib: $(OBJECTS)
    buildrsp $(RSP_OPT) &&!|
    $(OBJECTS)
!   > temp.rsp
    $(LIB) $(LIB_FLAGS) $< @temp.rsp
    del temp.rsp

!include "\makedefs\common.def"

smallclean:
    @del *.sym *.bak *.tdk *.map *.dsk *.log
    except (cpu.obj font8x16.obj svga.obj) del *.obj

