6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds memcheck example (DOS).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
16 !include $(WXDIR)\src\makemsc.env
18 THISDIR = $(WXDIR)\samples\memcheck
19 WXLIB = $(WXDIR)\lib\wx.lib
20 LIBS=$(WXLIB) oldnames libw llibcew commdlg shell ddeml
30 INC=/I$(WXDIR)\include\msw /I$(WXDIR)\include\base
32 # Set this to nothing if using MS C++ 7
36 CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /DDEBUG=$(DEBUG) /G2sw /Od /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch $(INC)
37 CPPFLAGS2=/AL /W3 /Zi $(ZOPTION) /DDEBUG /G2sw /Od /Dwx_msw $(INC)
38 LINKFLAGS=/NOD /CO /ONERROR:NOEXE /NOE /SEG:512
40 CPPFLAGS=/AL /W3 /G2sw /Ox /YuWX_PREC.H /DDEBUG=$(DEBUG) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch $(INC)
41 CPPFLAGS2=/AL /W3 /G2sw /Ox /DDEBUG /Dwx_msw $(INC)
42 LINKFLAGS=/NOD /ONERROR:NOEXE /NOE /SEG:512
46 SOURCES = memcheck.$(SRCSUFF)
47 OBJECTS = memcheck.obj
53 nmake -f makefile.dos FINAL=$(FINAL)
58 nmake -f makefile.dos clean
62 memcheck.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) memcheck.def memcheck.res
64 $(OBJECTS) $(WXDIR)\src\msw\dummy.obj,
71 rc -30 -K memcheck.res
73 memcheck.obj: memcheck.$(SRCSUFF)
75 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
78 memcheck.res : memcheck.rc $(WXDIR)\include\wx\msw\wx.rc
79 rc -r /i$(WXDIR)\include\wx memcheck