6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds memcheck example (DOS).
13 !error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
17 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
21 !include $(WXDIR)\src\makebcc.env
23 THISDIR = $(WXDIR)\samples\memcheck
24 WXLIB = $(WXDIR)\lib\wx.lib
25 LIBS=$(WXLIB) mathwl cwl import
26 INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
27 CFG=$(WXDIR)\src\wxwin.cfg
38 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
40 DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
42 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
44 DEBUG_FLAGS= -DDEBUG=$(DEBUG)
46 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
48 OBJECTS = memcheck.obj
50 memcheck: memcheck.exe
54 memcheck.exe: $(WXLIB) memcheck.obj memcheck.def memcheck.res
55 tlink $(LINKFLAGS) @&&!
62 rc -31 -K memcheck.res
65 bcc $(CPPFLAGS) -c {$< }
67 memcheck.obj: memcheck.$(SRCSUFF)
69 memcheck.res : memcheck.rc $(WXDIR)\include\wx\msw\wx.rc
70 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\wx memcheck