#
#       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= C                # set to L for large, C for compact
#
#
#
# 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)'=='C'
CMODEL=-mc
CLIB=$(WATLIB)\wattcpcp.lib
TEXTMODEL=compact
!else
!error  MODEL must be set to either C or L
!endif

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

#
#
#  list of executables
#
#

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

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