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