]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/mfc/makefile.dos
compilation fix for WXWIN_COMPATIBILITY_2_2
[wxWidgets.git] / samples / mfc / 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 MFC compatibility example (DOS).
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info.
13
14# Set WXDIR for your system
15WXDIR = $(WXWIN)
16
17!include $(WXDIR)\src\makemsc.env
18
19THISDIR = $(WXDIR)\samples\mfc
20WXLIB = $(WXDIR)\lib\wx.lib
21MFCINC = c:\msvc\mfc\include
22LIBS=lafxcwD $(WXLIB) oldnames libw llibcew commdlg ddeml shell mmsystem # mfcoleui compobj storage ole2 ole2disp
23#LIBS=lafxcwD llibcew libw commdlg shell
24INC=-I$(MFCINC) -I$(WXDIR)\include\base -I$(WXDIR)\include\msw
25DUMMY=$(WXDIR)\src\msw\dummy.obj
26
27# Set this to nothing if using MS C++ 7
28ZOPTION=/Z7
29
30!ifndef FINAL
31FINAL=0
32!endif
33
34PRECOMP = # /YuWX_PREC.H /Fp$(WXDIR)\src\msw\wx.pch
35
36!if "$(FINAL)" == "0"
37CPPFLAGS=/D_DEBUG /AL /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) $(PRECOMP) /Dwx_msw
38#CPPFLAGS=/AL /Zp /GA /G2 /Gyf /Od /W3 $(INC) /D_DEBUG
39LINKFLAGS=/NOD /CO /NOE /ONERROR:NOEXE /SEG:256 /STACK:12000
40!else
41CPPFLAGS=/AL /W3 /G2sw $(INC) /Ox $(PRECOMP) /Dwx_msw
42LINKFLAGS=/NOD /NOE /ONERROR:NOEXE /SEG:256
43!endif
44
45HEADERS = hello.h
46SOURCES = hello.$(SRCSUFF)
47OBJECTS = hello.obj
48
49hello: hello.exe
50
51all: wx hello.exe
52
53wx:
54 cd $(WXDIR)\src\msw
55 nmake -f makefile.dos FINAL=$(FINAL)
56 cd $(THISDIR)
57
58wxclean:
59 cd $(WXDIR)\src\msw
60 nmake -f makefile.dos clean
61 cd $(THISDIR)
62
63
64hello.exe: $(DUMMY) $(WXLIB) hello.obj hello.def hello.res
65 link $(LINKFLAGS) @<<
66$(DUMMY) hello.obj,
67hello,
68NUL,
69$(LIBS),
70hello.def
71;
72<<
73 rc -31 -K hello.res
74
75hello.obj: hello.h hello.$(SRCSUFF) $(DUMMY)
76 cl @<<
77$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
78<<
79
80hello.res : hello.rc $(WXDIR)\include\msw\wx.rc
81 rc -r /i$(MFCINC) /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa hello
82
83clean:
84 -erase *.obj
85 -erase *.sbr
86 -erase *.exe
87 -erase *.res
88 -erase *.map
89 -erase *.pdb