]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makefile.g95
GetItem() now works (it was completely broken)
[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 # 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) \
67 $(GENDIR)/helpxlp.$(OBJSUFF) \
68 $(GENDIR)/msgdlgg.$(OBJSUFF) \
69 $(GENDIR)/panelg.$(OBJSUFF) \
70 $(GENDIR)/printps.$(OBJSUFF) \
71 $(GENDIR)/prntdlgg.$(OBJSUFF) \
72 $(GENDIR)/scrolwin.$(OBJSUFF) \
73 $(GENDIR)/splitter.$(OBJSUFF) \
74 $(GENDIR)/statusbr.$(OBJSUFF) \
75 $(GENDIR)/tabg.$(OBJSUFF) \
76 $(GENDIR)/textdlgg.$(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)/intl.$(OBJSUFF) \
92 $(COMMDIR)/layout.$(OBJSUFF) \
93 $(COMMDIR)/log.$(OBJSUFF) \
94 $(COMMDIR)/memory.$(OBJSUFF) \
95 $(COMMDIR)/module.$(OBJSUFF) \
96 $(COMMDIR)/object.$(OBJSUFF) \
97 $(COMMDIR)/odbc.$(OBJSUFF) \
98 $(COMMDIR)/postscrp.$(OBJSUFF) \
99 $(COMMDIR)/process.$(OBJSUFF) \
100 $(COMMDIR)/prntbase.$(OBJSUFF) \
101 $(COMMDIR)/resource.$(OBJSUFF) \
102 $(COMMDIR)/tbarbase.$(OBJSUFF) \
103 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
104 $(COMMDIR)/textfile.$(OBJSUFF) \
105 $(COMMDIR)/timercmn.$(OBJSUFF) \
106 $(COMMDIR)/utilscmn.$(OBJSUFF) \
107 $(COMMDIR)/validate.$(OBJSUFF) \
108 $(COMMDIR)/valtext.$(OBJSUFF) \
109 $(COMMDIR)/date.$(OBJSUFF) \
110 $(COMMDIR)/wxexpr.$(OBJSUFF) \
111 $(COMMDIR)/hash.$(OBJSUFF) \
112 $(COMMDIR)/list.$(OBJSUFF) \
113 $(COMMDIR)/string.$(OBJSUFF) \
114 $(COMMDIR)/time.$(OBJSUFF) \
115 $(COMMDIR)/y_tab.$(OBJSUFF) \
116 $(COMMDIR)/stream.$(OBJSUFF) \
117 $(COMMDIR)/fstream.$(OBJSUFF) \
118 $(COMMDIR)/mstream.$(OBJSUFF) \
119 $(COMMDIR)/zstream.$(OBJSUFF) \
120 $(COMMDIR)/datstrm.$(OBJSUFF) \
121 $(COMMDIR)/extended.$(OBJSUFF) \
122 $(COMMDIR)/wincmn.$(OBJSUFF)
123
124 MSWOBJS = \
125 accel.$(OBJSUFF) \
126 app.$(OBJSUFF) \
127 bitmap.$(OBJSUFF) \
128 bmpbuttn.$(OBJSUFF) \
129 brush.$(OBJSUFF) \
130 button.$(OBJSUFF) \
131 checkbox.$(OBJSUFF) \
132 checklst.$(OBJSUFF) \
133 choice.$(OBJSUFF) \
134 clipbrd.$(OBJSUFF) \
135 colordlg.$(OBJSUFF) \
136 colour.$(OBJSUFF) \
137 combobox.$(OBJSUFF) \
138 control.$(OBJSUFF) \
139 curico.$(OBJSUFF) \
140 cursor.$(OBJSUFF) \
141 data.$(OBJSUFF) \
142 dc.$(OBJSUFF) \
143 dcmemory.$(OBJSUFF) \
144 dcclient.$(OBJSUFF) \
145 dcprint.$(OBJSUFF) \
146 dcscreen.$(OBJSUFF) \
147 dde.$(OBJSUFF) \
148 dialog.$(OBJSUFF) \
149 dib.$(OBJSUFF) \
150 dirdlg.$(OBJSUFF) \
151 filedlg.$(OBJSUFF) \
152 font.$(OBJSUFF) \
153 fontdlg.$(OBJSUFF) \
154 frame.$(OBJSUFF) \
155 gaugemsw.$(OBJSUFF) \
156 gauge95.$(OBJSUFF) \
157 gdiobj.$(OBJSUFF) \
158 helpwin.$(OBJSUFF) \
159 icon.$(OBJSUFF) \
160 imaglist.$(OBJSUFF) \
161 joystick.$(OBJSUFF) \
162 listbox.$(OBJSUFF) \
163 listctrl.$(OBJSUFF) \
164 main.$(OBJSUFF) \
165 mdi.$(OBJSUFF) \
166 menu.$(OBJSUFF) \
167 menuitem.$(OBJSUFF) \
168 metafile.$(OBJSUFF) \
169 minifram.$(OBJSUFF) \
170 msgdlg.$(OBJSUFF) \
171 nativdlg.$(OBJSUFF) \
172 notebook.$(OBJSUFF) \
173 ownerdrw.$(OBJSUFF) \
174 palette.$(OBJSUFF) \
175 pen.$(OBJSUFF) \
176 penwin.$(OBJSUFF) \
177 printdlg.$(OBJSUFF) \
178 printwin.$(OBJSUFF) \
179 radiobox.$(OBJSUFF) \
180 radiobut.$(OBJSUFF) \
181 region.$(OBJSUFF) \
182 registry.$(OBJSUFF) \
183 regconf.$(OBJSUFF) \
184 scrolbar.$(OBJSUFF) \
185 settings.$(OBJSUFF) \
186 slidrmsw.$(OBJSUFF) \
187 slider95.$(OBJSUFF) \
188 spinbutt.$(OBJSUFF) \
189 statbmp.$(OBJSUFF) \
190 statbox.$(OBJSUFF) \
191 statbr95.$(OBJSUFF) \
192 stattext.$(OBJSUFF) \
193 tabctrl.$(OBJSUFF) \
194 taskbar.$(OBJSUFF) \
195 tbar95.$(OBJSUFF) \
196 tbarmsw.$(OBJSUFF) \
197 textctrl.$(OBJSUFF) \
198 thread.$(OBJSUFF) \
199 timer.$(OBJSUFF) \
200 treectrl.$(OBJSUFF) \
201 utils.$(OBJSUFF) \
202 utilsexc.$(OBJSUFF) \
203 wave.$(OBJSUFF) \
204 window.$(OBJSUFF) \
205 $(OLEDIR)/droptgt.$(OBJSUFF) \
206 $(OLEDIR)/dropsrc.$(OBJSUFF) \
207 $(OLEDIR)/dataobj.$(OBJSUFF) \
208 $(OLEDIR)/oleutils.$(OBJSUFF) \
209 $(OLEDIR)/uuid.$(OBJSUFF)
210
211 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS)
212
213 all: $(OBJECTS) $(WXLIB)
214
215 base:
216 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
217 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
218
219
220 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
221 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
222 $(RANLIB) $@
223
224 #$(MSWOBJDIR):
225 # mkdir $(OBJDIR)
226
227 #$(COMMOBJDIR):
228 # mkdir $(COMMDIR)/$(OBJDIR)
229
230 #$(GENERICOBJDIR):
231 # mkdir $(GENDIR)/$(OBJDIR)
232
233 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
234
235 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
236 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
237
238 # Replace lex with flex if you run into compilation
239 # problems with lex_yy.c. See also note about LEX_SCANNER
240 # above.
241 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
242 $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
243
244 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
245 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
246 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
247 # rm -f lex.yy.c
248
249 # Replace yacc with bison if you run into compilation
250 # problems with y_tab.c.
251 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
252 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
253
254 # mv y.tab.c $(COMMDIR)/y_tab.c
255
256
257 # Extra targets
258 prologio:
259 cd $(WXDIR)/utils/prologio/src ; $(MAKE) -f makefile.g95
260 cd $(WXDIR)/src/msw
261
262 clean_proio:
263 cd $(WXDIR)/utils/prologio/src; $(MAKE) -f makefile.g95 clean
264 cd $(WXDIR)/src/msw
265
266 makedib:
267 cd $(WXDIR)/src/msw/dib ; $(MAKE) -f makefile.g95
268 cd $(WXDIR)/src/msw
269
270 clean_dib:
271 cd $(WXDIR)/src/msw/dib; $(MAKE) -f makefile.g95 clean
272 cd $(WXDIR)/src/msw
273
274 gauge:
275 cd $(WXDIR)/src/msw/gauge; $(MAKE) -f makefile.g95
276 cd $(WXDIR)/src/msw
277
278 clean_gauge:
279 cd $(WXDIR)/src/msw/gauge; $(MAKE) -f makefile.g95 clean
280 cd $(WXDIR)/src/msw
281
282 wxstring:
283 cd $(WXDIR)/contrib/wxstring; $(MAKE) -f makefile.g95 OPTIONS="$(OPTIONS)" DEBUG="$(DEBUG)"
284 cd $(WXDIR)/src/msw
285
286 clean_wxstring:
287 cd $(WXDIR)/contrib/wxstring; $(MAKE) -f makefile.g95 clean
288 cd $(WXDIR)/src/msw
289
290 itsy:
291 cd $(WXDIR)/src/msw/itsybits; $(MAKE) -f makefile.g95
292 cd $(WXDIR)/src/msw
293
294 clean_itsy:
295 cd $(WXDIR)/contrib/itsybits; $(MAKE) -f makefile.g95 clean
296 cd $(WXDIR)/src/msw
297
298 rcparser:
299 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
300 cd $(WXDIR)/src/msw
301
302 clean_rcp:
303 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
304 cd $(WXDIR)/src/msw
305
306 # +++start steve161(09.04.1995): added for wxString in \contrib\wxstring
307 wxstring_ol:
308 cd ../../contrib/wxstring; $(MAKE) -f makefile.unx xview
309 wxstring_motif:
310 cd ../../contrib/wxstring; $(MAKE) -f makefile.unx motif
311 wxstring_hp:
312 cd ../../contrib/wxstring; $(MAKE) -f makefile.unx hp
313
314 clean:
315 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
316
317 cleanall: clean
318