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