#############################################################################
#
#                   Copyright (C) 1994 SciTech Software.
#                           All rights reserved.
#
# Descripton:   Makefile for the PMODE library sample programs.
#               MSDOS version for Borland C++ 3.1 in real mode
#
# $Id: makefile 1.1 1994/03/10 09:06:50 kjb Exp $
#
#############################################################################

INC_DEST        = \bc\include\myinc
CC              = bcc               # Name of C compiler

!if $d(debug)
CC_DOPT         = -v                # Turn on debugging for C compiler
!endif

CC_FLAGS        = -ml $(CC_DOPT)

# Implicit rules to make the object files for the library...

.c.obj:
    $(CC) $(CC_FLAGS) -c {$< }

# Object files required by the library

all: memtest.exe biosptr.exe video.exe isvesa.exe alias.exe

memtest.exe: pmode.obj memtest.obj
    $(CC) $(CC_FLAGS) memtest.obj pmode.obj

biosptr.exe: pmode.obj biosptr.obj
    $(CC) $(CC_FLAGS) biosptr.obj pmode.obj

video.exe: pmode.obj video.obj
    $(CC) $(CC_FLAGS) video.obj pmode.obj

isvesa.exe: pmode.obj isvesa.obj
    $(CC) $(CC_FLAGS) isvesa.obj pmode.obj

alias.exe: pmode.obj alias.obj
    $(CC) $(CC_FLAGS) alias.obj pmode.obj

# Clean up directory removing all files not needed to make the library

clean:
    @del *.sym *.obj

realclean:  clean
    @del *.exe

#
# RCS maintenance routines.
#

stamp:
    @foreach "rcs -N$(VERSION): -srelease" files.lst

rcsclean:
    @foreach rcsclean files.lst

# Check in the latest revisions of source files with RCS

ci:
    copy $(INC_DEST)\pmode.h
    @foreach "ci -q -u -mnone $(RCSOPT)" files.lst
    move pmode.h $(INC_DEST)

# Check out the latest revisions of source files from RCS

co:
    @foreach "co -q $(RCSOPT)" files.lst
    move pmode.h $(INC_DEST)

