]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makefile.twn
Unicode conversion.
[wxWidgets.git] / src / msw / makefile.twn
1 #
2 # File: makefile.twn
3 # Author: Julian Smart
4 # Created: 1993
5 # Updated:
6 #
7 # Makefile for libwx.a, tagetting TWIN32
8
9 # Replace this with your own path if necessary
10 WXDIR = ../..
11
12 # All common UNIX compiler flags and options are now in
13 # this central makefile.
14 include $(WXDIR)/src/maketwin.env
15
16 # IMPORTANT: if you want to link in subsidiary libraries,
17 # required for some optional parts of wxWindows, you must
18 # set EXTRATARGETS and EXTRAOBJS to match the settings in wx_setup.h.
19 # Having done this, you won't have to worry about linking them
20 # into each application.
21 #
22 # Here's the full list.
23 # prologio: Required if using the wxWindows resource facility
24 # USE_WX_RESOURCES should be 1
25 # xmgauge: Gauge class (required for Motif only)
26 # USE_GAUGE should be 1
27 # xpm: XPM pixmap support
28 # USE_XPM_IN_X should be 1
29 # wxstring: string class
30 # USE_GNU_WXSTRING should be 1
31 #
32 # Unfortunately, 'ar' doesn't like combining objects and libraries,
33 # so we must identify all the objects from the subordinate libraries. Yuck!
34 XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX)
35 XPMOBJS=$(XPMSRC)/crbuffri.$(OBJSUFF) $(XPMSRC)/crbuffrp.$(OBJSUFF) $(XPMSRC)/crdatfri.$(OBJSUFF) $(XPMSRC)/crdatfrp.$(OBJSUFF)\
36 $(XPMSRC)/create.$(OBJSUFF) $(XPMSRC)/crifrbuf.$(OBJSUFF) $(XPMSRC)/crifrdat.$(OBJSUFF) $(XPMSRC)/crpfrbuf.$(OBJSUFF) $(XPMSRC)/crpfrdat.$(OBJSUFF)\
37 $(XPMSRC)/data.$(OBJSUFF) $(XPMSRC)/hashtab.$(OBJSUFF) $(XPMSRC)/misc.$(OBJSUFF) $(XPMSRC)/parse.$(OBJSUFF) $(XPMSRC)/rdftodat.$(OBJSUFF)\
38 $(XPMSRC)/rdftoi.$(OBJSUFF) $(XPMSRC)/rdftop.$(OBJSUFF) $(XPMSRC)/rgb.$(OBJSUFF) $(XPMSRC)/scan.$(OBJSUFF) $(XPMSRC)/simx.$(OBJSUFF)\
39 $(XPMSRC)/wrffrdat.$(OBJSUFF) $(XPMSRC)/wrffri.$(OBJSUFF) $(XPMSRC)/wrffrp.$(OBJSUFF)
40
41 # Subordinate library possibilities
42
43 EXTRAOBJS=
44
45 GENDIR=../generic
46 COMMDIR=../common
47 XPMDIR=../xpm
48 OLEDIR=ole
49 MSWDIR=.
50
51 GENERICOBJDIR=../generic/$(OBJDIR)
52 COMMOBJDIR=../common/$(OBJDIR)
53 OLEOBJDIR=ole/$(OBJDIR)
54 MSWDIR=$(OBJDIR)
55
56 DOCDIR = $(WXDIR)\docs
57
58 GENERICOBJS= \
59 $(GENDIR)/choicdgg.$(OBJSUFF) \
60 $(GENDIR)/dirdlgg.$(OBJSUFF) \
61 $(GENDIR)/gridg.$(OBJSUFF) \
62 $(GENDIR)/laywin.$(OBJSUFF) \
63 $(GENDIR)/panelg.$(OBJSUFF) \
64 $(GENDIR)/prop.$(OBJSUFF) \
65 $(GENDIR)/propform.$(OBJSUFF) \
66 $(GENDIR)/proplist.$(OBJSUFF) \
67 $(GENDIR)/sashwin.$(OBJSUFF) \
68 $(GENDIR)/scrolwin.$(OBJSUFF) \
69 $(GENDIR)/splitter.$(OBJSUFF) \
70 $(GENDIR)/statusbr.$(OBJSUFF) \
71 $(GENDIR)/tabg.$(OBJSUFF) \
72 $(GENDIR)/textdlgg.$(OBJSUFF)
73
74 # $(GENDIR)/colrdlgg.$(OBJSUFF) \
75 # $(GENDIR)/fontdlgg.$(OBJSUFF) \
76 # $(GENDIR)/prntdlgg.$(OBJSUFF) \
77 # $(GENDIR)/printps.$(OBJSUFF) \
78 # $(GENDIR)/msgdlgg.$(OBJSUFF) \
79
80 COMMONOBJS = \
81 $(COMMDIR)/config.$(OBJSUFF) \
82 $(COMMDIR)/cmndata.$(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
135 # NOTE: if the socket-related files fail with a syntax error in Sockets.h,
136 # remove the files (probably all GnuWin32 releases < b20). Cygwin b20 is OK,
137 # Mingw32 may still have problems.
138 # $(COMMDIR)/socket.$(OBJSUFF) \
139 # $(COMMDIR)/sckaddr.$(OBJSUFF) \
140 # $(COMMDIR)/sckfile.$(OBJSUFF) \
141 # $(COMMDIR)/sckipc.$(OBJSUFF) \
142 # $(COMMDIR)/sckstrm.$(OBJSUFF) \
143 # $(COMMDIR)/protocol.$(OBJSUFF) \
144 # $(COMMDIR)/http.$(OBJSUFF) \
145 # $(COMMDIR)/ftp.$(OBJSUFF) \
146 # $(COMMDIR)/url.$(OBJSUFF) \
147
148 MSWOBJS = \
149 accel.$(OBJSUFF) \
150 app.$(OBJSUFF) \
151 bitmap.$(OBJSUFF) \
152 bmpbuttn.$(OBJSUFF) \
153 brush.$(OBJSUFF) \
154 button.$(OBJSUFF) \
155 checkbox.$(OBJSUFF) \
156 checklst.$(OBJSUFF) \
157 choice.$(OBJSUFF) \
158 clipbrd.$(OBJSUFF) \
159 colordlg.$(OBJSUFF) \
160 colour.$(OBJSUFF) \
161 combobox.$(OBJSUFF) \
162 control.$(OBJSUFF) \
163 curico.$(OBJSUFF) \
164 cursor.$(OBJSUFF) \
165 data.$(OBJSUFF) \
166 dc.$(OBJSUFF) \
167 dcmemory.$(OBJSUFF) \
168 dcclient.$(OBJSUFF) \
169 dcprint.$(OBJSUFF) \
170 dcscreen.$(OBJSUFF) \
171 dde.$(OBJSUFF) \
172 dialog.$(OBJSUFF) \
173 dib.$(OBJSUFF) \
174 filedlg.$(OBJSUFF) \
175 font.$(OBJSUFF) \
176 fontdlg.$(OBJSUFF) \
177 frame.$(OBJSUFF) \
178 gaugemsw.$(OBJSUFF) \
179 gauge95.$(OBJSUFF) \
180 gdiobj.$(OBJSUFF) \
181 helpwin.$(OBJSUFF) \
182 icon.$(OBJSUFF) \
183 imaglist.$(OBJSUFF) \
184 joystick.$(OBJSUFF) \
185 listbox.$(OBJSUFF) \
186 listctrl.$(OBJSUFF) \
187 main.$(OBJSUFF) \
188 mdi.$(OBJSUFF) \
189 menu.$(OBJSUFF) \
190 menuitem.$(OBJSUFF) \
191 metafile.$(OBJSUFF) \
192 minifram.$(OBJSUFF) \
193 msgdlg.$(OBJSUFF) \
194 nativdlg.$(OBJSUFF) \
195 notebook.$(OBJSUFF) \
196 ownerdrw.$(OBJSUFF) \
197 palette.$(OBJSUFF) \
198 pen.$(OBJSUFF) \
199 penwin.$(OBJSUFF) \
200 printdlg.$(OBJSUFF) \
201 printwin.$(OBJSUFF) \
202 radiobox.$(OBJSUFF) \
203 radiobut.$(OBJSUFF) \
204 region.$(OBJSUFF) \
205 registry.$(OBJSUFF) \
206 regconf.$(OBJSUFF) \
207 scrolbar.$(OBJSUFF) \
208 settings.$(OBJSUFF) \
209 slidrmsw.$(OBJSUFF) \
210 slider95.$(OBJSUFF) \
211 spinbutt.$(OBJSUFF) \
212 statbmp.$(OBJSUFF) \
213 statbox.$(OBJSUFF) \
214 statbr95.$(OBJSUFF) \
215 stattext.$(OBJSUFF) \
216 tabctrl.$(OBJSUFF) \
217 taskbar.$(OBJSUFF) \
218 tbar95.$(OBJSUFF) \
219 tbarmsw.$(OBJSUFF) \
220 textctrl.$(OBJSUFF) \
221 thread.$(OBJSUFF) \
222 timer.$(OBJSUFF) \
223 tooltip.$(OBJSUFF) \
224 treectrl.$(OBJSUFF) \
225 utils.$(OBJSUFF) \
226 utilsexc.$(OBJSUFF) \
227 wave.$(OBJSUFF) \
228 window.$(OBJSUFF) \
229 xpmhand.$(OBJSUFF)
230
231 # Native wxDirDlg can't be compiled due to GnuWin32/OLE limitations
232 # dirdlg.$(OBJSUFF) \
233
234 # OLE not supported yet by GnuWin32
235 # $(OLEDIR)/droptgt.$(OBJSUFF) \
236 # $(OLEDIR)/dropsrc.$(OBJSUFF) \
237 # $(OLEDIR)/dataobj.$(OBJSUFF) \
238 # $(OLEDIR)/oleutils.$(OBJSUFF) \
239 # $(OLEDIR)/uuid.$(OBJSUFF) \
240 # $(OLEDIR)/automtn.$(OBJSUFF)
241
242 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
243 $(XPMDIR)/crdatfri.o\
244 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
245 $(XPMDIR)/crifrdat.o\
246 $(XPMDIR)/data.o\
247 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
248 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
249 $(XPMDIR)/rdftoi.o\
250 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
251 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
252 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
253
254 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
255
256 all: $(OBJECTS) $(WXLIB)
257
258 base:
259 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
260 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
261
262
263 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
264 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
265 $(RANLIB) $@
266
267 #$(MSWOBJDIR):
268 # mkdir $(OBJDIR)
269
270 #$(COMMOBJDIR):
271 # mkdir $(COMMDIR)/$(OBJDIR)
272
273 #$(GENERICOBJDIR):
274 # mkdir $(GENDIR)/$(OBJDIR)
275
276 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
277
278 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
279 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
280
281 # Replace lex with flex if you run into compilation
282 # problems with lex_yy.c. See also note about LEX_SCANNER
283 # above.
284 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
285 $(LEX) $(COMMDIR)/lexer.l
286 mv lex.yy.c $(COMMDIR)/lex_yy.c
287
288 # The following may be required for FLEX
289 # $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
290
291 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
292 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
293 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
294 # rm -f lex.yy.c
295
296 # Replace yacc with bison if you run into compilation
297 # problems with y_tab.c.
298
299 #$(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
300 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
301
302 # If you use e.g. gcc on Unix, uncomment these lines
303 # and comment out the above.
304
305 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
306 $(YACC) $(COMMDIR)/parser.y
307 mv y.tab.c $(COMMDIR)/y_tab.c
308
309 # Extra targets
310 rcparser:
311 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
312 cd $(WXDIR)/src/msw
313
314 clean_rcp:
315 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
316 cd $(WXDIR)/src/msw
317
318 clean:
319 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
320
321 cleanall: clean
322