##
##      makefile  -  Borland C makefile for
##                   TestMon; sample app for WinMon
##

BC_LIB_DIR  = d:\borlandc\lib           # Borland C libraries
BC_INC_DIR  = d:\borlandc\include       # Borland C includes
DLL_LIB_DIR = ..\dll                    # where WinMon.Lib is found
WM_INC_DIR  = ..\include                # where WinMon.H is found
WMLIB   = winmon.lib                    # staticly link the dll

WINCC   = bcc -DSTRICT -c -w-par -v -WE -2 -I.\ -I$(WM_INC_DIR)
WINLINK = tlink /n -v /Tw /L$(BC_LIB_DIR);$(DLL_LIB_DIR) c0ws
WINLIB  = cws mathws import 
WINRC   = rc -i$(BC_INC_DIR) -i.\       ##

                                                    
testmon.exe: testmon.obj makefile testmon.def testmon.res
##     tlink @testmon.lrf
        $(WINLINK) testmon, testmon.exe, NUL, $(WINLIB) $(WMLIB), testmon.def
     $(WINRC) testmon.rc testmon.exe

testmon.res:    testmon.rc testmon.h
        $(WINRC) -r testmon.rc

testmon.obj: testmon.c makefile testmon.def testmon.h ..\include\winmon.h
     $(WINCC) testmon.c

