]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | # |
2 | # File: makefile.unx | |
3 | # Author: Julian Smart | |
4 | # Created: 1993 | |
5 | # Updated: | |
6 | # Copyright: (c) 1993, AIAI, University of Edinburgh | |
7 | # | |
8 | # "@(#)makefile.unx 1.2 5/9/94" | |
9 | # | |
10 | # Makefile for libwx.a | |
11 | ||
12 | # Replace this with your own path if necessary | |
13 | WXDIR = ../.. | |
14 | ||
15 | # All common UNIX compiler flags and options are now in | |
16 | # this central makefile. | |
17 | include $(WXDIR)/src/makeg95.env | |
18 | ||
19 | # IMPORTANT: if you want to link in subsidiary libraries, | |
20 | # required for some optional parts of wxWindows, you must | |
21 | # set EXTRATARGETS and EXTRAOBJS to match the settings in wx_setup.h. | |
22 | # Having done this, you won't have to worry about linking them | |
23 | # into each application. | |
24 | # | |
25 | # Here's the full list. | |
26 | # prologio: Required if using the wxWindows resource facility | |
27 | # USE_WX_RESOURCES should be 1 | |
28 | # xmgauge: Gauge class (required for Motif only) | |
29 | # USE_GAUGE should be 1 | |
30 | # xpm: XPM pixmap support | |
31 | # USE_XPM_IN_X should be 1 | |
2bda0e17 KB |
32 | # wxstring: string class |
33 | # USE_GNU_WXSTRING should be 1 | |
34 | # | |
35 | # Unfortunately, 'ar' doesn't like combining objects and libraries, | |
36 | # so we must identify all the objects from the subordinate libraries. Yuck! | |
37 | XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX) | |
38 | XPMOBJS=$(XPMSRC)/crbuffri.$(OBJSUFF) $(XPMSRC)/crbuffrp.$(OBJSUFF) $(XPMSRC)/crdatfri.$(OBJSUFF) $(XPMSRC)/crdatfrp.$(OBJSUFF)\ | |
39 | $(XPMSRC)/create.$(OBJSUFF) $(XPMSRC)/crifrbuf.$(OBJSUFF) $(XPMSRC)/crifrdat.$(OBJSUFF) $(XPMSRC)/crpfrbuf.$(OBJSUFF) $(XPMSRC)/crpfrdat.$(OBJSUFF)\ | |
40 | $(XPMSRC)/data.$(OBJSUFF) $(XPMSRC)/hashtab.$(OBJSUFF) $(XPMSRC)/misc.$(OBJSUFF) $(XPMSRC)/parse.$(OBJSUFF) $(XPMSRC)/rdftodat.$(OBJSUFF)\ | |
41 | $(XPMSRC)/rdftoi.$(OBJSUFF) $(XPMSRC)/rdftop.$(OBJSUFF) $(XPMSRC)/rgb.$(OBJSUFF) $(XPMSRC)/scan.$(OBJSUFF) $(XPMSRC)/simx.$(OBJSUFF)\ | |
42 | $(XPMSRC)/wrffrdat.$(OBJSUFF) $(XPMSRC)/wrffri.$(OBJSUFF) $(XPMSRC)/wrffrp.$(OBJSUFF) | |
43 | ||
44 | # Subordinate library possibilities | |
45 | ||
46 | EXTRAOBJS= | |
47 | ||
48 | GENDIR=../generic | |
49 | COMMDIR=../common | |
4fabb575 | 50 | XPMDIR=../xpm |
2bda0e17 KB |
51 | OLEDIR=ole |
52 | MSWDIR=. | |
53 | ||
54 | GENERICOBJDIR=../generic/$(OBJDIR) | |
55 | COMMOBJDIR=../common/$(OBJDIR) | |
56 | OLEOBJDIR=ole/$(OBJDIR) | |
57 | MSWDIR=$(OBJDIR) | |
58 | ||
59 | DOCDIR = $(WXDIR)\docs | |
60 | ||
61 | GENERICOBJS= \ | |
62 | $(GENDIR)/choicdgg.$(OBJSUFF) \ | |
63 | $(GENDIR)/colrdlgg.$(OBJSUFF) \ | |
64 | $(GENDIR)/fontdlgg.$(OBJSUFF) \ | |
65 | $(GENDIR)/gridg.$(OBJSUFF) \ | |
27529614 | 66 | $(GENDIR)/laywin.$(OBJSUFF) \ |
2bda0e17 KB |
67 | $(GENDIR)/msgdlgg.$(OBJSUFF) \ |
68 | $(GENDIR)/panelg.$(OBJSUFF) \ | |
e3a43801 JS |
69 | $(GENDIR)/prop.$(OBJSUFF) \ |
70 | $(GENDIR)/propform.$(OBJSUFF) \ | |
71 | $(GENDIR)/proplist.$(OBJSUFF) \ | |
27529614 | 72 | $(GENDIR)/sashwin.$(OBJSUFF) \ |
2bda0e17 KB |
73 | $(GENDIR)/scrolwin.$(OBJSUFF) \ |
74 | $(GENDIR)/splitter.$(OBJSUFF) \ | |
75 | $(GENDIR)/statusbr.$(OBJSUFF) \ | |
76 | $(GENDIR)/tabg.$(OBJSUFF) \ | |
77 | $(GENDIR)/textdlgg.$(OBJSUFF) | |
78 | ||
8baa0e61 JS |
79 | # $(GENDIR)/prntdlgg.$(OBJSUFF) \ |
80 | # $(GENDIR)/printps.$(OBJSUFF) \ | |
81 | ||
2bda0e17 KB |
82 | COMMONOBJS = \ |
83 | $(COMMDIR)/config.$(OBJSUFF) \ | |
84 | $(COMMDIR)/cmndata.$(OBJSUFF) \ | |
85 | $(COMMDIR)/docview.$(OBJSUFF) \ | |
2108f33a | 86 | $(COMMDIR)/docmdi.$(OBJSUFF) \ |
2bda0e17 KB |
87 | $(COMMDIR)/dynarray.$(OBJSUFF) \ |
88 | $(COMMDIR)/event.$(OBJSUFF) \ | |
89 | $(COMMDIR)/file.$(OBJSUFF) \ | |
90 | $(COMMDIR)/fileconf.$(OBJSUFF) \ | |
91 | $(COMMDIR)/filefn.$(OBJSUFF) \ | |
3d8bd7d6 | 92 | $(COMMDIR)/framecmn.$(OBJSUFF) \ |
2bda0e17 KB |
93 | $(COMMDIR)/gdicmn.$(OBJSUFF) \ |
94 | $(COMMDIR)/helpbase.$(OBJSUFF) \ | |
e3554471 | 95 | $(COMMDIR)/image.$(OBJSUFF) \ |
2bda0e17 KB |
96 | $(COMMDIR)/intl.$(OBJSUFF) \ |
97 | $(COMMDIR)/layout.$(OBJSUFF) \ | |
98 | $(COMMDIR)/log.$(OBJSUFF) \ | |
99 | $(COMMDIR)/memory.$(OBJSUFF) \ | |
100 | $(COMMDIR)/module.$(OBJSUFF) \ | |
101 | $(COMMDIR)/object.$(OBJSUFF) \ | |
102 | $(COMMDIR)/odbc.$(OBJSUFF) \ | |
6a6c0a8b | 103 | $(COMMDIR)/process.$(OBJSUFF) \ |
2bda0e17 KB |
104 | $(COMMDIR)/prntbase.$(OBJSUFF) \ |
105 | $(COMMDIR)/resource.$(OBJSUFF) \ | |
106 | $(COMMDIR)/tbarbase.$(OBJSUFF) \ | |
107 | $(COMMDIR)/tbarsmpl.$(OBJSUFF) \ | |
108 | $(COMMDIR)/textfile.$(OBJSUFF) \ | |
109 | $(COMMDIR)/timercmn.$(OBJSUFF) \ | |
110 | $(COMMDIR)/utilscmn.$(OBJSUFF) \ | |
111 | $(COMMDIR)/validate.$(OBJSUFF) \ | |
112 | $(COMMDIR)/valtext.$(OBJSUFF) \ | |
113 | $(COMMDIR)/date.$(OBJSUFF) \ | |
114 | $(COMMDIR)/wxexpr.$(OBJSUFF) \ | |
115 | $(COMMDIR)/hash.$(OBJSUFF) \ | |
116 | $(COMMDIR)/list.$(OBJSUFF) \ | |
341287bf | 117 | $(COMMDIR)/variant.$(OBJSUFF) \ |
2bda0e17 KB |
118 | $(COMMDIR)/string.$(OBJSUFF) \ |
119 | $(COMMDIR)/time.$(OBJSUFF) \ | |
27529614 | 120 | $(COMMDIR)/tokenzr.$(OBJSUFF) \ |
cf447356 | 121 | $(COMMDIR)/y_tab.$(OBJSUFF) \ |
3d4c6a21 | 122 | $(COMMDIR)/stream.$(OBJSUFF) \ |
25331334 | 123 | $(COMMDIR)/wfstream.$(OBJSUFF) \ |
3d4c6a21 | 124 | $(COMMDIR)/mstream.$(OBJSUFF) \ |
79c3e0e1 | 125 | $(COMMDIR)/zstream.$(OBJSUFF) \ |
cf447356 | 126 | $(COMMDIR)/datstrm.$(OBJSUFF) \ |
27529614 | 127 | $(COMMDIR)/objstrm.$(OBJSUFF) \ |
3d8bd7d6 JS |
128 | $(COMMDIR)/extended.$(OBJSUFF) \ |
129 | $(COMMDIR)/wincmn.$(OBJSUFF) | |
2bda0e17 | 130 | |
8baa0e61 | 131 | # $(COMMDIR)/postscrp.$(OBJSUFF) \ |
6b037754 | 132 | |
4fabb575 JS |
133 | # NOTE: if the socket-related files fail with a syntax error in Sockets.h, |
134 | # remove the files (probably all GnuWin32 releases < b20). Cygwin b20 is OK, | |
135 | # Mingw32 may still have problems. | |
136 | # $(COMMDIR)/socket.$(OBJSUFF) \ | |
137 | # $(COMMDIR)/sckaddr.$(OBJSUFF) \ | |
138 | # $(COMMDIR)/sckfile.$(OBJSUFF) \ | |
139 | # $(COMMDIR)/sckipc.$(OBJSUFF) \ | |
140 | # $(COMMDIR)/sckstrm.$(OBJSUFF) \ | |
141 | # $(COMMDIR)/protocol.$(OBJSUFF) \ | |
142 | # $(COMMDIR)/http.$(OBJSUFF) \ | |
143 | # $(COMMDIR)/ftp.$(OBJSUFF) \ | |
144 | # $(COMMDIR)/url.$(OBJSUFF) \ | |
27529614 | 145 | |
2bda0e17 | 146 | MSWOBJS = \ |
57a7b7c1 | 147 | accel.$(OBJSUFF) \ |
2bda0e17 KB |
148 | app.$(OBJSUFF) \ |
149 | bitmap.$(OBJSUFF) \ | |
150 | bmpbuttn.$(OBJSUFF) \ | |
151 | brush.$(OBJSUFF) \ | |
152 | button.$(OBJSUFF) \ | |
153 | checkbox.$(OBJSUFF) \ | |
154 | checklst.$(OBJSUFF) \ | |
155 | choice.$(OBJSUFF) \ | |
156 | clipbrd.$(OBJSUFF) \ | |
157 | colordlg.$(OBJSUFF) \ | |
158 | colour.$(OBJSUFF) \ | |
159 | combobox.$(OBJSUFF) \ | |
160 | control.$(OBJSUFF) \ | |
161 | curico.$(OBJSUFF) \ | |
162 | cursor.$(OBJSUFF) \ | |
163 | data.$(OBJSUFF) \ | |
164 | dc.$(OBJSUFF) \ | |
165 | dcmemory.$(OBJSUFF) \ | |
166 | dcclient.$(OBJSUFF) \ | |
167 | dcprint.$(OBJSUFF) \ | |
168 | dcscreen.$(OBJSUFF) \ | |
169 | dde.$(OBJSUFF) \ | |
170 | dialog.$(OBJSUFF) \ | |
171 | dib.$(OBJSUFF) \ | |
172 | dirdlg.$(OBJSUFF) \ | |
173 | filedlg.$(OBJSUFF) \ | |
174 | font.$(OBJSUFF) \ | |
175 | fontdlg.$(OBJSUFF) \ | |
176 | frame.$(OBJSUFF) \ | |
da87a1ca JS |
177 | gaugemsw.$(OBJSUFF) \ |
178 | gauge95.$(OBJSUFF) \ | |
2bda0e17 KB |
179 | gdiobj.$(OBJSUFF) \ |
180 | helpwin.$(OBJSUFF) \ | |
181 | icon.$(OBJSUFF) \ | |
182 | imaglist.$(OBJSUFF) \ | |
183 | joystick.$(OBJSUFF) \ | |
184 | listbox.$(OBJSUFF) \ | |
185 | listctrl.$(OBJSUFF) \ | |
186 | main.$(OBJSUFF) \ | |
187 | mdi.$(OBJSUFF) \ | |
188 | menu.$(OBJSUFF) \ | |
189 | menuitem.$(OBJSUFF) \ | |
190 | metafile.$(OBJSUFF) \ | |
191 | minifram.$(OBJSUFF) \ | |
192 | msgdlg.$(OBJSUFF) \ | |
193 | nativdlg.$(OBJSUFF) \ | |
8b9518ee | 194 | notebook.$(OBJSUFF) \ |
2bda0e17 KB |
195 | ownerdrw.$(OBJSUFF) \ |
196 | palette.$(OBJSUFF) \ | |
197 | pen.$(OBJSUFF) \ | |
198 | penwin.$(OBJSUFF) \ | |
199 | printdlg.$(OBJSUFF) \ | |
200 | printwin.$(OBJSUFF) \ | |
201 | radiobox.$(OBJSUFF) \ | |
202 | radiobut.$(OBJSUFF) \ | |
203 | region.$(OBJSUFF) \ | |
204 | registry.$(OBJSUFF) \ | |
6a23cbce | 205 | regconf.$(OBJSUFF) \ |
2bda0e17 KB |
206 | scrolbar.$(OBJSUFF) \ |
207 | settings.$(OBJSUFF) \ | |
da87a1ca JS |
208 | slidrmsw.$(OBJSUFF) \ |
209 | slider95.$(OBJSUFF) \ | |
2bda0e17 KB |
210 | spinbutt.$(OBJSUFF) \ |
211 | statbmp.$(OBJSUFF) \ | |
212 | statbox.$(OBJSUFF) \ | |
213 | statbr95.$(OBJSUFF) \ | |
214 | stattext.$(OBJSUFF) \ | |
215 | tabctrl.$(OBJSUFF) \ | |
216 | taskbar.$(OBJSUFF) \ | |
217 | tbar95.$(OBJSUFF) \ | |
218 | tbarmsw.$(OBJSUFF) \ | |
219 | textctrl.$(OBJSUFF) \ | |
220 | thread.$(OBJSUFF) \ | |
221 | timer.$(OBJSUFF) \ | |
222 | treectrl.$(OBJSUFF) \ | |
223 | utils.$(OBJSUFF) \ | |
cf447356 | 224 | utilsexc.$(OBJSUFF) \ |
2bda0e17 | 225 | wave.$(OBJSUFF) \ |
27529614 JS |
226 | window.$(OBJSUFF) |
227 | ||
74e34480 | 228 | # OLE not supported yet by GnuWin32 |
27529614 JS |
229 | # $(OLEDIR)/droptgt.$(OBJSUFF) \ |
230 | # $(OLEDIR)/dropsrc.$(OBJSUFF) \ | |
231 | # $(OLEDIR)/dataobj.$(OBJSUFF) \ | |
232 | # $(OLEDIR)/oleutils.$(OBJSUFF) \ | |
aa0b7e1e JS |
233 | # $(OLEDIR)/uuid.$(OBJSUFF) \ |
234 | # $(OLEDIR)/automtn.$(OBJSUFF) | |
2bda0e17 | 235 | |
4fabb575 JS |
236 | XPMOBJECTS = $(XPMDIR)/crbuffri.o\ |
237 | $(XPMDIR)/crdatfri.o\ | |
238 | $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\ | |
239 | $(XPMDIR)/crifrdat.o\ | |
240 | $(XPMDIR)/data.o\ | |
241 | $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\ | |
242 | $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\ | |
243 | $(XPMDIR)/rdftoi.o\ | |
244 | $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\ | |
245 | $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\ | |
246 | $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o | |
74e34480 | 247 | |
4fabb575 | 248 | OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS) |
2bda0e17 KB |
249 | |
250 | all: $(OBJECTS) $(WXLIB) | |
251 | ||
252 | base: | |
253 | cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\ | |
254 | OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' | |
255 | ||
256 | ||
257 | $(WXLIB): $(OBJECTS) $(EXTRAOBJS) | |
258 | ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS) | |
259 | $(RANLIB) $@ | |
260 | ||
261 | #$(MSWOBJDIR): | |
262 | # mkdir $(OBJDIR) | |
263 | ||
264 | #$(COMMOBJDIR): | |
265 | # mkdir $(COMMDIR)/$(OBJDIR) | |
266 | ||
267 | #$(GENERICOBJDIR): | |
268 | # mkdir $(GENDIR)/$(OBJDIR) | |
269 | ||
270 | $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h | |
271 | ||
272 | $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c | |
273 | $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c | |
274 | ||
275 | # Replace lex with flex if you run into compilation | |
276 | # problems with lex_yy.c. See also note about LEX_SCANNER | |
277 | # above. | |
278 | $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l | |
06e38c8e JS |
279 | $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c |
280 | ||
281 | # The following may be required for some versions of LEX/FLEX | |
282 | # $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l | |
2bda0e17 KB |
283 | |
284 | # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \ | |
285 | # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \ | |
286 | # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c | |
287 | # rm -f lex.yy.c | |
288 | ||
289 | # Replace yacc with bison if you run into compilation | |
290 | # problems with y_tab.c. | |
291 | $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y | |
292 | $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y | |
293 | ||
294 | # mv y.tab.c $(COMMDIR)/y_tab.c | |
295 | ||
296 | ||
297 | # Extra targets | |
2bda0e17 KB |
298 | rcparser: |
299 | cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 | |
300 | cd $(WXDIR)/src/msw | |
301 | ||
302 | clean_rcp: | |
303 | cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean | |
304 | cd $(WXDIR)/src/msw | |
305 | ||
2bda0e17 KB |
306 | clean: |
307 | rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core | |
308 | ||
309 | cleanall: clean | |
310 |