APPNAME = TSTRESET
INCPATH = C:\BC4\INCLUDE
LIBPATH = C:\BC4\LIB

COMPILER = BCC32.EXE
BRC = BRC32.EXE
FLAGS = -W -w4 -I$(INCPATH) -L$(LIBPATH)

!if $d(DEBUG)
FLAGS = $(FLAGS) -v
!endif

# LINKING
$(APPNAME).exe: $(APPNAME).obj $(APPNAME).res
   implib ..\..\..\..\evmov32.lib evmov32.def
   $(COMPILER) $(FLAGS) $(APPNAME).obj ..\..\..\..\evmov32.lib
   $(BRC) -I$(INCPATH) $(APPNAME).res

# COMPILING
$(APPNAME).obj: $(APPNAME).c
   $(COMPILER) -c $(FLAGS) $(APPNAME).c

# RESOURCE
$(APPNAME).res: $(APPNAME).rc
   $(BRC) -R -I$(INCPATH) $(APPNAME).rc

