#
#       Makefile for sample applications
#

DEBUG= E        # set to D for disable, E for enable

#
#
# auto configure section
#
#

#if DEBUG=E
IDEBUG=-v
#endif

CLIB=..\..\lib\ertostcp.lib ..\..\lib\rtos.lib

CFLAGS= -ml $(IDEBUG) -I..\..\inc;.
CC= bcc $(CFLAGS)

#
#
#  list of executables
#
#

.c.exe:
        $(CC) $*.c $(CLIB)

all: therm.exe tscope.exe
        echo done $(TEXTMODEL) make with debugging $(TEXTDEBUG)

ldriver.obj: ldriver.asm
        tasm -ml ldriver.asm

therm.exe : therm.c ldriver.obj
        $(CC) therm.c ldriver.obj $(CLIB)

tscope.exe : tscope.c webpart.c webpart.h ldriver.obj
        $(CC) tscope.c webpart.c ldriver.obj $(CLIB)
        tdstrip tscope.exe
        ..\..\sharewar\pklite tscope.exe

