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