]> git.saurik.com Git - wxWidgets.git/blob - samples/mfc/makefile.dos
Committing in .
[wxWidgets.git] / samples / mfc / 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 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
15 WXDIR = $(WXWIN)
16
17 !include $(WXDIR)\src\makemsc.env
18
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
26
27 # Set this to nothing if using MS C++ 7
28 ZOPTION=/Z7
29
30 !ifndef FINAL
31 FINAL=0
32 !endif
33
34 PRECOMP = # /YuWX_PREC.H /Fp$(WXDIR)\src\msw\wx.pch
35
36 !if "$(FINAL)" == "0"
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
40 !else
41 CPPFLAGS=/AL /W3 /G2sw $(INC) /Ox $(PRECOMP) /Dwx_msw
42 LINKFLAGS=/NOD /NOE /ONERROR:NOEXE /SEG:256
43 !endif
44
45 HEADERS = hello.h
46 SOURCES = hello.$(SRCSUFF)
47 OBJECTS = hello.obj
48
49 hello: hello.exe
50
51 all: wx hello.exe
52
53 wx:
54 cd $(WXDIR)\src\msw
55 nmake -f makefile.dos FINAL=$(FINAL)
56 cd $(THISDIR)
57
58 wxclean:
59 cd $(WXDIR)\src\msw
60 nmake -f makefile.dos clean
61 cd $(THISDIR)
62
63
64 hello.exe: $(DUMMY) $(WXLIB) hello.obj hello.def hello.res
65 link $(LINKFLAGS) @<<
66 $(DUMMY) hello.obj,
67 hello,
68 NUL,
69 $(LIBS),
70 hello.def
71 ;
72 <<
73 rc -31 -K hello.res
74
75 hello.obj: hello.h hello.$(SRCSUFF) $(DUMMY)
76 cl @<<
77 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
78 <<
79
80 hello.res : hello.rc $(WXDIR)\include\msw\wx.rc
81 rc -r /i$(MFCINC) /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa hello
82
83 clean:
84 -erase *.obj
85 -erase *.sbr
86 -erase *.exe
87 -erase *.res
88 -erase *.map
89 -erase *.pdb