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