]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makefile.g95
* Added threads event propagation. Should compile on GTK (tested).
[wxWidgets.git] / src / msw / makefile.g95
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 # 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
50 XPMDIR=../xpm
51 OLEDIR=ole
52 MSWDIR=.
53
54 DOCDIR = $(WXDIR)\docs
55
56 GENERICOBJS= \
57 $(GENDIR)/choicdgg.$(OBJSUFF) \
58 $(GENDIR)/dirdlgg.$(OBJSUFF) \
59 $(GENDIR)/gridg.$(OBJSUFF) \
60 $(GENDIR)/laywin.$(OBJSUFF) \
61 $(GENDIR)/panelg.$(OBJSUFF) \
62 $(GENDIR)/prop.$(OBJSUFF) \
63 $(GENDIR)/propform.$(OBJSUFF) \
64 $(GENDIR)/proplist.$(OBJSUFF) \
65 $(GENDIR)/sashwin.$(OBJSUFF) \
66 $(GENDIR)/scrolwin.$(OBJSUFF) \
67 $(GENDIR)/splitter.$(OBJSUFF) \
68 $(GENDIR)/statusbr.$(OBJSUFF) \
69 $(GENDIR)/tabg.$(OBJSUFF) \
70 $(GENDIR)/textdlgg.$(OBJSUFF)
71
72 # $(GENDIR)/colrdlgg.$(OBJSUFF) \
73 # $(GENDIR)/fontdlgg.$(OBJSUFF) \
74 # $(GENDIR)/prntdlgg.$(OBJSUFF) \
75 # $(GENDIR)/printps.$(OBJSUFF) \
76 # $(GENDIR)/msgdlgg.$(OBJSUFF) \
77
78 COMMONOBJS = \
79 $(COMMDIR)/config.$(OBJSUFF) \
80 $(COMMDIR)/cmndata.$(OBJSUFF) \
81 $(COMMDIR)/docview.$(OBJSUFF) \
82 $(COMMDIR)/docmdi.$(OBJSUFF) \
83 $(COMMDIR)/dynarray.$(OBJSUFF) \
84 $(COMMDIR)/event.$(OBJSUFF) \
85 $(COMMDIR)/file.$(OBJSUFF) \
86 $(COMMDIR)/fileconf.$(OBJSUFF) \
87 $(COMMDIR)/filefn.$(OBJSUFF) \
88 $(COMMDIR)/framecmn.$(OBJSUFF) \
89 $(COMMDIR)/gdicmn.$(OBJSUFF) \
90 $(COMMDIR)/helpbase.$(OBJSUFF) \
91 $(COMMDIR)/image.$(OBJSUFF) \
92 $(COMMDIR)/intl.$(OBJSUFF) \
93 $(COMMDIR)/ipcbase.$(OBJSUFF) \
94 $(COMMDIR)/layout.$(OBJSUFF) \
95 $(COMMDIR)/log.$(OBJSUFF) \
96 $(COMMDIR)/memory.$(OBJSUFF) \
97 $(COMMDIR)/module.$(OBJSUFF) \
98 $(COMMDIR)/mimetype.$(OBJSUFF) \
99 $(COMMDIR)/object.$(OBJSUFF) \
100 $(COMMDIR)/odbc.$(OBJSUFF) \
101 $(COMMDIR)/process.$(OBJSUFF) \
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)/valgen.$(OBJSUFF) \
111 $(COMMDIR)/valtext.$(OBJSUFF) \
112 $(COMMDIR)/date.$(OBJSUFF) \
113 $(COMMDIR)/wxexpr.$(OBJSUFF) \
114 $(COMMDIR)/hash.$(OBJSUFF) \
115 $(COMMDIR)/list.$(OBJSUFF) \
116 $(COMMDIR)/variant.$(OBJSUFF) \
117 $(COMMDIR)/paper.$(OBJSUFF) \
118 $(COMMDIR)/string.$(OBJSUFF) \
119 $(COMMDIR)/time.$(OBJSUFF) \
120 $(COMMDIR)/tokenzr.$(OBJSUFF) \
121 $(COMMDIR)/y_tab.$(OBJSUFF) \
122 $(COMMDIR)/stream.$(OBJSUFF) \
123 $(COMMDIR)/wfstream.$(OBJSUFF) \
124 $(COMMDIR)/mstream.$(OBJSUFF) \
125 $(COMMDIR)/zstream.$(OBJSUFF) \
126 $(COMMDIR)/datstrm.$(OBJSUFF) \
127 $(COMMDIR)/objstrm.$(OBJSUFF) \
128 $(COMMDIR)/extended.$(OBJSUFF) \
129 $(COMMDIR)/wincmn.$(OBJSUFF)
130
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) \
143
144 MSWOBJS = \
145 accel.$(OBJSUFF) \
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 filedlg.$(OBJSUFF) \
171 font.$(OBJSUFF) \
172 fontdlg.$(OBJSUFF) \
173 frame.$(OBJSUFF) \
174 gaugemsw.$(OBJSUFF) \
175 gauge95.$(OBJSUFF) \
176 gdiobj.$(OBJSUFF) \
177 helpwin.$(OBJSUFF) \
178 icon.$(OBJSUFF) \
179 imaglist.$(OBJSUFF) \
180 joystick.$(OBJSUFF) \
181 listbox.$(OBJSUFF) \
182 listctrl.$(OBJSUFF) \
183 main.$(OBJSUFF) \
184 mdi.$(OBJSUFF) \
185 menu.$(OBJSUFF) \
186 menuitem.$(OBJSUFF) \
187 metafile.$(OBJSUFF) \
188 minifram.$(OBJSUFF) \
189 msgdlg.$(OBJSUFF) \
190 nativdlg.$(OBJSUFF) \
191 notebook.$(OBJSUFF) \
192 ownerdrw.$(OBJSUFF) \
193 palette.$(OBJSUFF) \
194 pen.$(OBJSUFF) \
195 penwin.$(OBJSUFF) \
196 printdlg.$(OBJSUFF) \
197 printwin.$(OBJSUFF) \
198 radiobox.$(OBJSUFF) \
199 radiobut.$(OBJSUFF) \
200 region.$(OBJSUFF) \
201 registry.$(OBJSUFF) \
202 regconf.$(OBJSUFF) \
203 scrolbar.$(OBJSUFF) \
204 settings.$(OBJSUFF) \
205 slidrmsw.$(OBJSUFF) \
206 slider95.$(OBJSUFF) \
207 spinbutt.$(OBJSUFF) \
208 statbmp.$(OBJSUFF) \
209 statbox.$(OBJSUFF) \
210 statbr95.$(OBJSUFF) \
211 stattext.$(OBJSUFF) \
212 tabctrl.$(OBJSUFF) \
213 taskbar.$(OBJSUFF) \
214 tbar95.$(OBJSUFF) \
215 tbarmsw.$(OBJSUFF) \
216 textctrl.$(OBJSUFF) \
217 thread.$(OBJSUFF) \
218 timer.$(OBJSUFF) \
219 tooltip.$(OBJSUFF) \
220 treectrl.$(OBJSUFF) \
221 utils.$(OBJSUFF) \
222 utilsexc.$(OBJSUFF) \
223 wave.$(OBJSUFF) \
224 window.$(OBJSUFF) \
225 xpmhand.$(OBJSUFF)
226
227 # Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
228 # dirdlg.$(OBJSUFF) \
229
230 # OLE not supported yet by GnuWin32
231 # $(OLEDIR)/droptgt.$(OBJSUFF) \
232 # $(OLEDIR)/dropsrc.$(OBJSUFF) \
233 # $(OLEDIR)/dataobj.$(OBJSUFF) \
234 # $(OLEDIR)/oleutils.$(OBJSUFF) \
235 # $(OLEDIR)/uuid.$(OBJSUFF) \
236 # $(OLEDIR)/automtn.$(OBJSUFF)
237
238 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
239 $(XPMDIR)/crdatfri.o\
240 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
241 $(XPMDIR)/crifrdat.o\
242 $(XPMDIR)/data.o\
243 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
244 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
245 $(XPMDIR)/rdftoi.o\
246 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
247 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
248 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
249
250 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
251
252 all: $(OBJECTS) $(WXLIB)
253
254 base:
255 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
256 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
257
258
259 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
260 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
261 $(RANLIB) $@
262
263 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
264
265 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
266 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
267
268 # Replace lex with flex if you run into compilation
269 # problems with lex_yy.c. See also note about LEX_SCANNER
270 # above.
271 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
272 $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
273
274 # Try one of these if the above line doesn't work.
275 # Alternative syntax (1)
276 # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
277 # Alternative syntax (2)
278 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
279
280 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
281 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
282 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
283 # rm -f lex.yy.c
284
285 # Replace yacc with bison if you run into compilation
286 # problems with y_tab.c.
287
288 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
289 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
290
291 # If you use e.g. gcc on Unix, uncomment these lines
292 # and comment out the above.
293
294 #$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
295 # $(YACC) $(COMMDIR)/parser.y
296 # mv y.tab.c $(COMMDIR)/y_tab.c
297
298 # Extra targets
299 rcparser:
300 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
301 cd $(WXDIR)/src/msw
302
303 clean_rcp:
304 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
305 cd $(WXDIR)/src/msw
306
307 clean:
308 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
309
310 cleanall: clean
311