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