#
#       Makefile for PPRD
#
# You may wish to change the following four parameters
#

WATINCLUDE=.            # path to WATTCP include files
WATLIB=.                # path to WATTCP lib files
DEBUG= D                # set to D for disable, E for enable symbolic debugging

#
MODEL= S                        # set to L for large, S for small
#
#
#
# auto configure section
#
#

!if '$(DEBUG)'=='E'
IDEBUG=-v
TEXTDEBUG=enabled
!elif '$(DEBUG)'=='D'
IDEBUG=-v-
TEXTDEBUG=disabled
#!else
#!error  DEBUG must be set to either E or D
!endif

!if '$(MODEL)'=='L'
CMODEL=-ml
CLIB=$(WATLIB)\wattcplg.lib
TEXTMODEL=large
!elif '$(MODEL)'=='S'
CMODEL=-ms
CLIB=$(WATLIB)\wattcpsm.lib
TEXTMODEL=small
!else
!error  MODEL must be set to either S or L
!endif

CFLAGS= -O $(CMODEL) $(IDEBUG) -I$(WATINCLUDE)
CC= bcc

#
#
#  list of executables
#
#

pprd.exe: pprd.c
	$(CC) $(CFLAGS) pprd.c $(CLIB)

jd.exe: jd.c
	$(CC) $(CFLAGS) jd.c $(CLIB)

jdtsr.exe: jdtsr.c
	$(CC) -mt $(IDEBUG) -I$(WATINCLUDE) -M jdtsr.c $(CLIB)
