]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/listctrl/makefile.dos
fixed arguments to make it wxMSW compatible
[wxWidgets.git] / samples / listctrl / makefile.dos
... / ...
CommitLineData
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 minimal 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\minimal
19WXLIB = $(WXDIR)\lib\wx.lib
20LIBS=$(WXLIB) oldnames libw llibcew commdlg shell ddeml
21
22!ifndef FINAL
23FINAL=0
24!endif
25
26INC=/I$(WXDIR)\include\msw /I$(WXDIR)\include\base
27
28# Set this to nothing if using MS C++ 7
29ZOPTION=/Z7
30
31!if "$(FINAL)" == "0"
32CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch $(INC)
33LINKFLAGS=/NOD /CO /ONERROR:NOEXE /SEG:512
34!else
35CPPFLAGS=/AL /W3 /G2sw /Ox /YuWX_PREC.H /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch $(INC)
36LINKFLAGS=/NOD /ONERROR:NOEXE /SEG:512
37!endif
38
39HEADERS =
40SOURCES = minimal.$(SRCSUFF)
41OBJECTS = minimal.obj
42
43all: minimal.exe
44
45wx:
46 cd $(WXDIR)\src\msw
47 nmake -f makefile.dos FINAL=$(FINAL)
48 cd $(THISDIR)
49
50wxclean:
51 cd $(WXDIR)\src\msw
52 nmake -f makefile.dos clean
53 cd $(THISDIR)
54
55
56minimal.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) minimal.obj minimal.def minimal.res
57 link $(LINKFLAGS) @<<
58minimal.obj $(WXDIR)\src\msw\dummy.obj,
59minimal,
60NUL,
61$(LIBS),
62minimal.def
63;
64<<
65 rc -30 -K minimal.res
66
67minimal.obj: minimal.$(SRCSUFF)
68 cl @<<
69$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
70<<
71
72minimal.res : minimal.rc $(WXDIR)\include\msw\wx.rc
73 rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw minimal
74
75clean:
76 -erase *.obj
77 -erase *.exe
78 -erase *.res
79 -erase *.map
80 -erase *.sbr
81 -erase *.pdb