]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | #!/binb/wmake.exe |
2 | # | |
3 | # File: makefile.wat | |
4 | # Author: Edward C. Zimmermann <edz@crg.net> | |
5 | # Created: 1994 | |
6 | # Updated: Dmitri Chubraev, Nov.1994 <chubraev@iem.ee.ethz.ch> | |
7 | # RCS_ID $Id$ | |
8 | # | |
9 | # Makefile : Builds wxWindows library for Windows 3.1 | |
10 | # and Watcom C++ | |
11 | ||
12 | WXDIR = ..\.. | |
13 | ||
14 | !include $(WXDIR)\src\makewat.env | |
15 | ||
16 | WXLIB = $(WXDIR)\lib | |
17 | ||
18 | LIBTARGET = $(WXLIB)\wx$(LEVEL).lib | |
19 | DUMMY=dummydll | |
20 | #CTL3DOBJ = ..\..\contrib\ctl3d\ctl3d32.obj | |
21 | #CTL3DLIB = ..\..\contrib\ctl3d\win32s\ctl3d32.lib | |
22 | FAFALIB = ..\..\contrib\fafa\fafa.lib | |
23 | #ODBCLIB = ..\..\contrib\odbc\odbc32.lib | |
24 | GAUGELIB = ..\..\contrib\gauge\gauge.lib | |
25 | ITSYLIB = ..\..\contrib\itsybits\itsy.lib | |
26 | WXSTRINGLIB = ..\..\contrib\wxstring\wxstring.lib | |
27 | WXXPMLIB = ..\..\contrib\wxxpm\wxxpm.lib | |
28 | PROIOLIB = ..\..\utils\prologio\lib\prologio.lib | |
29 | DIBLIB = ..\..\utils\dib\dib.lib | |
30 | RCPARSERLIB = ..\..\utils\rcparser\lib\rcparser.lib | |
31 | ||
32 | EXTRAMODULES = $(GAUGELIB) $(ITSYLIB) $(PROIOLIB) $(DIBLIB) $(WXSTRINGLIB) $(RCPARSERLIB) $(FAFALIB) # $(WXXPMLIB) | |
33 | EXTRATARGETS = fafa gauge itsy prologio dib rcparser wxstring # wxxpm | |
34 | EXTRATARGETSCLEAN = clean_fafa clean_gauge clean_itsy clean_proio clean_dib clean_rcp clean_wxstring # clean_wxxpm | |
35 | ||
36 | OBJECTS = wx_win.obj wx_frame.obj wx_panel.obj wx_utils.obj & | |
37 | wx_item.obj wx_text.obj wx_gdi.obj wx_dialg.obj wx_canvs.obj wx_dc.obj & | |
38 | wx_mf.obj wx_ipc.obj wx_timer.obj wx_clipb.obj wx_vlbox.obj & | |
39 | wx_stat.obj wx_scrol.obj wx_buttn.obj wx_messg.obj wx_check.obj wx_choic.obj & | |
40 | wx_rbox.obj wx_lbox.obj wx_group.obj wx_gauge.obj wx_txt.obj wx_mtxt.obj & | |
41 | wx_slidr.obj wx_menu.obj wx_db.obj wx_cmdlg.obj wx_main.obj wx_combo.obj | |
42 | ||
43 | BASEOBJECTS = ..\base\wb_win.obj ..\base\wb_frame.obj ..\base\wb_panel.obj & | |
44 | ..\base\wb_utils.obj ..\base\wx_lay.obj ..\base\wx_doc.obj ..\base\wb_res.obj & | |
45 | ..\base\wb_main.obj ..\base\wb_item.obj ..\base\wb_list.obj ..\base\wb_obj.obj & | |
46 | ..\base\wb_text.obj ..\base\wb_gdi.obj ..\base\wb_dialg.obj ..\base\wb_canvs.obj & | |
47 | ..\base\wb_dc.obj ..\base\wb_mf.obj ..\base\wb_ps.obj ..\base\wx_enhdg.obj & | |
48 | ..\base\wb_hash.obj ..\base\wb_ipc.obj ..\base\wb_form.obj ..\base\wb_timer.obj & | |
49 | ..\base\wb_help.obj ..\base\wb_sysev.obj ..\base\wb_stdev.obj ..\base\wb_types.obj & | |
50 | ..\base\wb_mgstr.obj ..\base\wb_data.obj ..\base\wb_stat.obj & | |
51 | ..\base\wb_scrol.obj ..\base\wb_vlbox.obj ..\base\wb_print.obj ..\base\wx_tbar.obj & | |
52 | ..\base\wx_bbar.obj ..\base\wx_mem.obj ..\base\wx_date.obj ..\base\wb_cmdlg.obj & | |
53 | ..\base\wx_time.obj ..\base\wx_frac.obj | |
54 | ||
55 | # This now replaced by contrib\wxstring | |
56 | #..\base\wxstring.obj | |
57 | ||
58 | all: base $(EXTRATARGETS) erasepch $(LIBTARGET) | |
59 | ||
60 | base: .SYMBOLIC | |
61 | cd ..\base | |
62 | wmake -f makefile.wat all OPTIONS="$(OPTIONS)" DEBUG="$(DEBUG)" LEVEL=$(LEVEL) | |
63 | cd ..\msw | |
64 | ||
65 | $(LIBTARGET) : $(OBJECTS) $(BASEOBJECTS) $(EXTRAMODULES) | |
66 | %create tmp.lbc | |
67 | @for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i | |
68 | @for %i in ( $(BASEOBJECTS) ) do @%append tmp.lbc +%i | |
69 | @for %i in ( $(EXTRAMODULES) ) do @%append tmp.lbc +%i | |
70 | wlib /b /c /n /p=512 $^@ @tmp.lbc | |
71 | ||
72 | clean: .SYMBOLIC | |
73 | -erase *.obj *.bak *.err *.pch | |
74 | cd ..\base | |
75 | wmake -f makefile.wat clean | |
76 | -erase $(LIBTARGET) | |
77 | cd ..\msw | |
78 | ||
79 | cleanall: clean $(EXTRATARGETSCLEAN) | |
80 | ||
81 | fafa: .SYMBOLIC | |
82 | cd $(WXDIR)\contrib\fafa | |
83 | wmake -f makefile.wat all | |
84 | cd $(WXDIR)\src\msw | |
85 | ||
86 | clean_fafa: .SYMBOLIC | |
87 | cd $(WXDIR)\contrib\fafa | |
88 | wmake -f makefile.wat clean | |
89 | cd $(WXDIR)\src\msw | |
90 | ||
91 | itsy: .SYMBOLIC | |
92 | cd $(WXDIR)\contrib\itsybits | |
93 | wmake -f makefile.wat all | |
94 | cd $(WXDIR)\src\msw | |
95 | ||
96 | clean_itsy: .SYMBOLIC | |
97 | cd $(WXDIR)\contrib\itsybits | |
98 | wmake -f makefile.wat clean | |
99 | cd $(WXDIR)\src\msw | |
100 | ||
101 | gauge: .SYMBOLIC | |
102 | cd $(WXDIR)\contrib\gauge | |
103 | wmake -f makefile.wat all | |
104 | cd $(WXDIR)\src\msw | |
105 | ||
106 | clean_gauge: .SYMBOLIC | |
107 | cd $(WXDIR)\contrib\gauge | |
108 | wmake -f makefile.wat clean | |
109 | cd $(WXDIR)\src\msw | |
110 | ||
111 | wxxpm: .SYMBOLIC | |
112 | cd $(WXDIR)\contrib\wxxpm | |
113 | wmake -f makefile.wat all | |
114 | cd $(WXDIR)\src\msw | |
115 | ||
116 | clean_wxxpm: .SYMBOLIC | |
117 | cd $(WXDIR)\contrib\wxxpm | |
118 | wmake -f makefile.wat clean | |
119 | cd $(WXDIR)\src\msw | |
120 | ||
121 | dib: .SYMBOLIC | |
122 | cd $(WXDIR)\utils\dib | |
123 | wmake -f makefile.wat all | |
124 | cd $(WXDIR)\src\msw | |
125 | ||
126 | clean_dib: .SYMBOLIC | |
127 | cd $(WXDIR)\utils\dib | |
128 | wmake -f makefile.wat clean | |
129 | cd $(WXDIR)\src\msw | |
130 | ||
131 | prologio: .SYMBOLIC | |
132 | cd $(WXDIR)\utils\prologio\src | |
133 | wmake -f makefile.wat all | |
134 | cd $(WXDIR)\src\msw | |
135 | ||
136 | clean_proio: .SYMBOLIC | |
137 | cd $(WXDIR)\utils\prologio\src | |
138 | wmake -f makefile.wat clean | |
139 | cd $(WXDIR)\src\msw | |
140 | ||
141 | rcparser: .SYMBOLIC | |
142 | cd $(WXDIR)\utils\rcparser\src | |
143 | wmake -f makefile.wat all | |
144 | cd $(WXDIR)\src\msw | |
145 | ||
146 | wxstring: .SYMBOLIC | |
147 | cd $(WXDIR)\contrib\wxstring | |
148 | wmake -f makefile.wat all OPTIONS="$(OPTIONS)" DEBUG="$(DEBUG)" | |
149 | cd $(WXDIR)\src\msw | |
150 | ||
151 | clean_wxstring: .SYMBOLIC | |
152 | cd $(WXDIR)\contrib\wxstring | |
153 | wmake -f makefile.wat clean | |
154 | cd $(WXDIR)\src\msw | |
155 | ||
156 | clean_rcp: .SYMBOLIC | |
157 | cd $(WXDIR)\utils\rcparser\src | |
158 | wmake -f makefile.wat clean | |
159 | cd $(WXDIR)\src\msw |