]> git.saurik.com Git - wxWidgets.git/blob - samples/memcheck/makefile.dos
Added script to help make wxMotif via configure; nativdlg sample works again;
[wxWidgets.git] / samples / memcheck / makefile.dos
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
14 WXDIR = $(WXWIN)
15
16 !include $(WXDIR)\src\makemsc.env
17
18 THISDIR = $(WXDIR)\samples\memcheck
19 WXLIB = $(WXDIR)\lib\wx.lib
20 LIBS=$(WXLIB) oldnames libw llibcew commdlg shell ddeml
21
22 !ifndef FINAL
23 FINAL=0
24 !endif
25
26 !ifndef DEBUG
27 DEBUG=0
28 !endif
29
30 INC=/I$(WXDIR)\include\msw /I$(WXDIR)\include\base
31
32 # Set this to nothing if using MS C++ 7
33 ZOPTION=/Z7
34
35 !if "$(FINAL)" == "0"
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
39 !else
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
43 !endif
44
45 HEADERS =
46 SOURCES = memcheck.$(SRCSUFF)
47 OBJECTS = memcheck.obj
48
49 all: memcheck.exe
50
51 wx:
52 cd $(WXDIR)\src\msw
53 nmake -f makefile.dos FINAL=$(FINAL)
54 cd $(THISDIR)
55
56 wxclean:
57 cd $(WXDIR)\src\msw
58 nmake -f makefile.dos clean
59 cd $(THISDIR)
60
61
62 memcheck.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) memcheck.def memcheck.res
63 link $(LINKFLAGS) @<<
64 $(OBJECTS) $(WXDIR)\src\msw\dummy.obj,
65 memcheck,
66 NUL,
67 $(LIBS),
68 memcheck.def
69 ;
70 <<
71 rc -30 -K memcheck.res
72
73 memcheck.obj: memcheck.$(SRCSUFF)
74 cl @<<
75 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
76 <<
77
78 memcheck.res : memcheck.rc $(WXDIR)\include\wx\msw\wx.rc
79 rc -r /i$(WXDIR)\include\wx memcheck
80
81 clean:
82 -erase *.obj
83 -erase *.exe
84 -erase *.res
85 -erase *.map
86 -erase *.sbr
87 -erase *.pdb