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