#############################################################################
#
#                   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.5 1994/05/08 10:20:33 kjb Exp $
#
#############################################################################

LIBNAME         = svga

!include "..\makedefs\makedefs.def"

# Object files required to build the libraries

OBJECTS         = svgac.$(OBJ) svga.$(OBJ) font8x16.$(OBJ) pmode.$(OBJ)

all: svgatest.exe

svgatest.exe: svgatest.$(OBJ) $(LIBFILE) cpu.$(OBJ)
    $(LD) $(CC_FLAGS) svgatest.$(OBJ) $(LIBFILE) cpu.$(OBJ) $(STD_LIBS)

vbetest.exe: vbetest.$(OBJ) svga.$(LIB_EXT) cpu.$(OBJ)
    $(LD) $(CC_FLAGS) vbetest.$(OBJ) svga.$(LIB_EXT) cpu.$(OBJ) $(STD_LIBS)

# Target to make the library file

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

# Install the library files

install: $(LIBFILE)
    @copy $(LIBFILE) $(LIB_DEST)

!include "..\makedefs\common.def"

# The following is 4Dos specific!!

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

