]> git.saurik.com Git - wxWidgets.git/blame - samples/memcheck/makefile.dos
fixed arguments to make it wxMSW compatible
[wxWidgets.git] / samples / memcheck / makefile.dos
CommitLineData
457814b5
JS
1#
2# File: makefile.dos
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds memcheck example (DOS).
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info
13
14WXDIR = $(WXWIN)
15
16!include $(WXDIR)\src\makemsc.env
17
18THISDIR = $(WXDIR)\samples\memcheck
19WXLIB = $(WXDIR)\lib\wx.lib
20LIBS=$(WXLIB) oldnames libw llibcew commdlg shell ddeml
21
22!ifndef FINAL
23FINAL=0
24!endif
25
26!ifndef DEBUG
27DEBUG=0
28!endif
29
30INC=/I$(WXDIR)\include\msw /I$(WXDIR)\include\base
31
32# Set this to nothing if using MS C++ 7
33ZOPTION=/Z7
34
35!if "$(FINAL)" == "0"
36CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /DDEBUG=$(DEBUG) /G2sw /Od /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch $(INC)
37CPPFLAGS2=/AL /W3 /Zi $(ZOPTION) /DDEBUG /G2sw /Od /Dwx_msw $(INC)
38LINKFLAGS=/NOD /CO /ONERROR:NOEXE /NOE /SEG:512
39!else
40CPPFLAGS=/AL /W3 /G2sw /Ox /YuWX_PREC.H /DDEBUG=$(DEBUG) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch $(INC)
41CPPFLAGS2=/AL /W3 /G2sw /Ox /DDEBUG /Dwx_msw $(INC)
42LINKFLAGS=/NOD /ONERROR:NOEXE /NOE /SEG:512
43!endif
44
45HEADERS =
46SOURCES = memcheck.$(SRCSUFF)
47OBJECTS = memcheck.obj
48
49all: memcheck.exe
50
51wx:
52 cd $(WXDIR)\src\msw
53 nmake -f makefile.dos FINAL=$(FINAL)
54 cd $(THISDIR)
55
56wxclean:
57 cd $(WXDIR)\src\msw
58 nmake -f makefile.dos clean
59 cd $(THISDIR)
60
61
62memcheck.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) memcheck.def memcheck.res
63 link $(LINKFLAGS) @<<
64$(OBJECTS) $(WXDIR)\src\msw\dummy.obj,
65memcheck,
66NUL,
67$(LIBS),
68memcheck.def
69;
70<<
71 rc -30 -K memcheck.res
72
73memcheck.obj: memcheck.$(SRCSUFF)
74 cl @<<
75$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
76<<
77
78memcheck.res : memcheck.rc $(WXDIR)\include\wx\msw\wx.rc
79 rc -r /i$(WXDIR)\include\wx memcheck
80
81clean:
82 -erase *.obj
83 -erase *.exe
84 -erase *.res
85 -erase *.map
86 -erase *.sbr
87 -erase *.pdb