
# makefile for the DPMIREP program.
# Copyright (c) 1992, UK, John M.Howells - All rights reserved

# See DPMIREP.TXT for distribution rights

# This makefile works automatically with either Borland's MAKE to use the
# Borland C++ 3.1 compiler or with MS' NMAKE to use the MS C/C++ 7.0 compiler.

# The compiler *must* use the small model - see source for the reason

PRG_NAM	= DPMIREP

!ifdef	__MAKE__		# defined by Borland's MAKE but not MS' NMAKE

# use Borland C++ 3.1 tools

CC	= bcc
CC_FLGS = -ms -O1 -w		# optimize for space

!else

# use Microsoft C/C++ 7.0 tools

CC	= cl
CC_FLGS	= -AS -Os -Gs -W4	# optimize for space - skip stack checking

!endif

# by default, if make is called with no parameters, compile the program

$(PRG_NAM).exe: $(PRG_NAM).c
   $(CC) $(CC_FLGS) $(PRG_NAM).c

# if called with 'install' as the parameter the resulting program
# is copied to whichever directory is used to store miscellaneous
# programs, after building, if necessary

install: $(PRG_NAM).exe
   copy $(PRG_NAM).exe c:\bin

