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