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