#############################################################################
#
#                   Copyright (C) 1994 SciTech Software.
#                           All rights reserved.
#
# Descripton:   Generic makefile for the PMODE library. Builds the library
#               file and all example programs.
#
# $Id: makefile 1.1 1994/08/22 11:51:29 kjb release $
#
#############################################################################

# Add DOS extender dependant flags to command line

CFLAGS          += $(DX_CFLAGS)
ASFLAGS         += $(DX_ASFLAGS)

# Name of library and object files required to build it

LIBFILE         = pmode$L
OBJECTS         = pmlite$O _pmlite$O

# Names of all executable files built

EXEFILES        = memtest$E biosptr$E video$E isvesa$E callreal$E

# Extra files for the professional version

.IF $(PRO)
OBJECTS         += pmpro$O _pmpro$O
EXEFILES        += mouse$E timer$E key$E break$E critical$E
RCSFILES        += pmpro.c _pmpro.asm
.ENDIF

all: $(EXEFILES)

$(EXEFILES): $(LIBFILE)

memtest$E:  memtest$O
biosptr$E:  biosptr$O
video$E:    video$O
isvesa$E:   isvesa$O
mouse$E:    mouse$O
timer$E:    timer$O
key$E:      key$O
break$E:    break$O
critical$E: critical$O
callreal$E: callreal$O

# Source files to check in with RCS (RCSFILES_H are in SCITECH\INCLUDE)

RCSFILES        += biosptr.c break.c callreal.c critical.c isvesa.c  \
                  key.c memtest.c mouse.c pmlite.c timer.c video.c  \
                  _pmlite.asm
RCSFILES_H      += pmode.h

.INCLUDE: "$(SCITECH)\makedefs\common.mk"

# Include file dependencies

pmlite$O:   ..\..\include\pmode.h
pmpro$O:    ..\..\include\pmode.h
memtest$O:  ..\..\include\pmode.h
biosptr$O:  ..\..\include\pmode.h
video$O:    ..\..\include\pmode.h
isvesa$O:   ..\..\include\pmode.h
alias$O:    ..\..\include\pmode.h
mouse$O:    ..\..\include\pmode.h
timer$O:    ..\..\include\pmode.h
key$O:      ..\..\include\pmode.h
break$O:    ..\..\include\pmode.h
critical$O: ..\..\include\pmode.h
callreal$O: ..\..\include\pmode.h

