10 # Makefile : Builds MFC compatibility example (DOS).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
17 !include $(WXDIR)\src\makemsc.env
19 THISDIR = $(WXDIR)\samples\mfc
20 WXLIB = $(WXDIR)\lib\wx.lib
21 MFCINC = c:\msvc\mfc\include
22 LIBS=lafxcwD $(WXLIB) oldnames libw llibcew commdlg ddeml shell mmsystem # mfcoleui compobj storage ole2 ole2disp
23 #LIBS=lafxcwD llibcew libw commdlg shell
24 INC=-I$(MFCINC) -I$(WXDIR)\include\base -I$(WXDIR)\include\msw
25 DUMMY=$(WXDIR)\src\msw\dummy.obj
27 # Set this to nothing if using MS C++ 7
34 PRECOMP = # /YuWX_PREC.H /Fp$(WXDIR)\src\msw\wx.pch
37 CPPFLAGS=/D_DEBUG /AL /W3 /Zi $(ZOPTION) /G2sw /Od $(INC) $(PRECOMP) /Dwx_msw
38 #CPPFLAGS=/AL /Zp /GA /G2 /Gyf /Od /W3 $(INC) /D_DEBUG
39 LINKFLAGS=/NOD /CO /NOE /ONERROR:NOEXE /SEG:256 /STACK:12000
41 CPPFLAGS=/AL /W3 /G2sw $(INC) /Ox $(PRECOMP) /Dwx_msw
42 LINKFLAGS=/NOD /NOE /ONERROR:NOEXE /SEG:256
46 SOURCES = hello.$(SRCSUFF)
55 nmake -f makefile.dos FINAL=$(FINAL)
60 nmake -f makefile.dos clean
64 hello.exe: $(DUMMY) $(WXLIB) hello.obj hello.def hello.res
75 hello.obj: hello.h hello.$(SRCSUFF) $(DUMMY)
77 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
80 hello.res : hello.rc $(WXDIR)\include\msw\wx.rc
81 rc -r /i$(MFCINC) /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa hello