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