]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makefile.g95
Introduced wxSOCKET_INT to socket.cpp. The previous code wouldn't compile on Windows.
[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 # wxstring: string class
33 # USE_GNU_WXSTRING should be 1
34 #
35 # Unfortunately, 'ar' doesn't like combining objects and libraries,
36 # so we must identify all the objects from the subordinate libraries. Yuck!
37 XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX)
38 XPMOBJS=$(XPMSRC)/crbuffri.$(OBJSUFF) $(XPMSRC)/crbuffrp.$(OBJSUFF) $(XPMSRC)/crdatfri.$(OBJSUFF) $(XPMSRC)/crdatfrp.$(OBJSUFF)\
39 $(XPMSRC)/create.$(OBJSUFF) $(XPMSRC)/crifrbuf.$(OBJSUFF) $(XPMSRC)/crifrdat.$(OBJSUFF) $(XPMSRC)/crpfrbuf.$(OBJSUFF) $(XPMSRC)/crpfrdat.$(OBJSUFF)\
40 $(XPMSRC)/data.$(OBJSUFF) $(XPMSRC)/hashtab.$(OBJSUFF) $(XPMSRC)/misc.$(OBJSUFF) $(XPMSRC)/parse.$(OBJSUFF) $(XPMSRC)/rdftodat.$(OBJSUFF)\
41 $(XPMSRC)/rdftoi.$(OBJSUFF) $(XPMSRC)/rdftop.$(OBJSUFF) $(XPMSRC)/rgb.$(OBJSUFF) $(XPMSRC)/scan.$(OBJSUFF) $(XPMSRC)/simx.$(OBJSUFF)\
42 $(XPMSRC)/wrffrdat.$(OBJSUFF) $(XPMSRC)/wrffri.$(OBJSUFF) $(XPMSRC)/wrffrp.$(OBJSUFF)
43
44 # Subordinate library possibilities
45
46 EXTRAOBJS=
47
48 GENDIR=../generic
49 COMMDIR=../common
50 XPMDIR=../xpm
51 OLEDIR=ole
52 MSWDIR=.
53
54 GENERICOBJDIR=../generic/$(OBJDIR)
55 COMMOBJDIR=../common/$(OBJDIR)
56 OLEOBJDIR=ole/$(OBJDIR)
57 MSWDIR=$(OBJDIR)
58
59 DOCDIR = $(WXDIR)\docs
60
61 GENERICOBJS= \
62 $(GENDIR)/choicdgg.$(OBJSUFF) \
63 $(GENDIR)/colrdlgg.$(OBJSUFF) \
64 $(GENDIR)/fontdlgg.$(OBJSUFF) \
65 $(GENDIR)/gridg.$(OBJSUFF) \
66 $(GENDIR)/laywin.$(OBJSUFF) \
67 $(GENDIR)/msgdlgg.$(OBJSUFF) \
68 $(GENDIR)/panelg.$(OBJSUFF) \
69 $(GENDIR)/sashwin.$(OBJSUFF) \
70 $(GENDIR)/scrolwin.$(OBJSUFF) \
71 $(GENDIR)/splitter.$(OBJSUFF) \
72 $(GENDIR)/statusbr.$(OBJSUFF) \
73 $(GENDIR)/tabg.$(OBJSUFF) \
74 $(GENDIR)/textdlgg.$(OBJSUFF)
75
76 # $(GENDIR)/prntdlgg.$(OBJSUFF) \
77 # $(GENDIR)/printps.$(OBJSUFF) \
78
79 COMMONOBJS = \
80 $(COMMDIR)/config.$(OBJSUFF) \
81 $(COMMDIR)/cmndata.$(OBJSUFF) \
82 $(COMMDIR)/docview.$(OBJSUFF) \
83 $(COMMDIR)/docmdi.$(OBJSUFF) \
84 $(COMMDIR)/dynarray.$(OBJSUFF) \
85 $(COMMDIR)/event.$(OBJSUFF) \
86 $(COMMDIR)/file.$(OBJSUFF) \
87 $(COMMDIR)/fileconf.$(OBJSUFF) \
88 $(COMMDIR)/filefn.$(OBJSUFF) \
89 $(COMMDIR)/framecmn.$(OBJSUFF) \
90 $(COMMDIR)/gdicmn.$(OBJSUFF) \
91 $(COMMDIR)/helpbase.$(OBJSUFF) \
92 $(COMMDIR)/image.$(OBJSUFF) \
93 $(COMMDIR)/intl.$(OBJSUFF) \
94 $(COMMDIR)/layout.$(OBJSUFF) \
95 $(COMMDIR)/log.$(OBJSUFF) \
96 $(COMMDIR)/memory.$(OBJSUFF) \
97 $(COMMDIR)/module.$(OBJSUFF) \
98 $(COMMDIR)/object.$(OBJSUFF) \
99 $(COMMDIR)/odbc.$(OBJSUFF) \
100 $(COMMDIR)/process.$(OBJSUFF) \
101 $(COMMDIR)/prntbase.$(OBJSUFF) \
102 $(COMMDIR)/resource.$(OBJSUFF) \
103 $(COMMDIR)/tbarbase.$(OBJSUFF) \
104 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
105 $(COMMDIR)/textfile.$(OBJSUFF) \
106 $(COMMDIR)/timercmn.$(OBJSUFF) \
107 $(COMMDIR)/utilscmn.$(OBJSUFF) \
108 $(COMMDIR)/validate.$(OBJSUFF) \
109 $(COMMDIR)/valtext.$(OBJSUFF) \
110 $(COMMDIR)/date.$(OBJSUFF) \
111 $(COMMDIR)/wxexpr.$(OBJSUFF) \
112 $(COMMDIR)/hash.$(OBJSUFF) \
113 $(COMMDIR)/list.$(OBJSUFF) \
114 $(COMMDIR)/variant.$(OBJSUFF) \
115 $(COMMDIR)/string.$(OBJSUFF) \
116 $(COMMDIR)/time.$(OBJSUFF) \
117 $(COMMDIR)/tokenzr.$(OBJSUFF) \
118 $(COMMDIR)/y_tab.$(OBJSUFF) \
119 $(COMMDIR)/stream.$(OBJSUFF) \
120 $(COMMDIR)/wfstream.$(OBJSUFF) \
121 $(COMMDIR)/mstream.$(OBJSUFF) \
122 $(COMMDIR)/zstream.$(OBJSUFF) \
123 $(COMMDIR)/datstrm.$(OBJSUFF) \
124 $(COMMDIR)/objstrm.$(OBJSUFF) \
125 $(COMMDIR)/extended.$(OBJSUFF) \
126 $(COMMDIR)/wincmn.$(OBJSUFF)
127
128 # $(COMMDIR)/postscrp.$(OBJSUFF) \
129
130 # NOTE: if the socket-related files fail with a syntax error in Sockets.h,
131 # remove the files (probably all GnuWin32 releases < b20). Cygwin b20 is OK,
132 # Mingw32 may still have problems.
133 # $(COMMDIR)/socket.$(OBJSUFF) \
134 # $(COMMDIR)/sckaddr.$(OBJSUFF) \
135 # $(COMMDIR)/sckfile.$(OBJSUFF) \
136 # $(COMMDIR)/sckipc.$(OBJSUFF) \
137 # $(COMMDIR)/sckstrm.$(OBJSUFF) \
138 # $(COMMDIR)/protocol.$(OBJSUFF) \
139 # $(COMMDIR)/http.$(OBJSUFF) \
140 # $(COMMDIR)/ftp.$(OBJSUFF) \
141 # $(COMMDIR)/url.$(OBJSUFF) \
142
143 MSWOBJS = \
144 accel.$(OBJSUFF) \
145 app.$(OBJSUFF) \
146 bitmap.$(OBJSUFF) \
147 bmpbuttn.$(OBJSUFF) \
148 brush.$(OBJSUFF) \
149 button.$(OBJSUFF) \
150 checkbox.$(OBJSUFF) \
151 checklst.$(OBJSUFF) \
152 choice.$(OBJSUFF) \
153 clipbrd.$(OBJSUFF) \
154 colordlg.$(OBJSUFF) \
155 colour.$(OBJSUFF) \
156 combobox.$(OBJSUFF) \
157 control.$(OBJSUFF) \
158 curico.$(OBJSUFF) \
159 cursor.$(OBJSUFF) \
160 data.$(OBJSUFF) \
161 dc.$(OBJSUFF) \
162 dcmemory.$(OBJSUFF) \
163 dcclient.$(OBJSUFF) \
164 dcprint.$(OBJSUFF) \
165 dcscreen.$(OBJSUFF) \
166 dde.$(OBJSUFF) \
167 dialog.$(OBJSUFF) \
168 dib.$(OBJSUFF) \
169 dirdlg.$(OBJSUFF) \
170 filedlg.$(OBJSUFF) \
171 font.$(OBJSUFF) \
172 fontdlg.$(OBJSUFF) \
173 frame.$(OBJSUFF) \
174 gaugemsw.$(OBJSUFF) \
175 gauge95.$(OBJSUFF) \
176 gdiobj.$(OBJSUFF) \
177 helpwin.$(OBJSUFF) \
178 icon.$(OBJSUFF) \
179 imaglist.$(OBJSUFF) \
180 joystick.$(OBJSUFF) \
181 listbox.$(OBJSUFF) \
182 listctrl.$(OBJSUFF) \
183 main.$(OBJSUFF) \
184 mdi.$(OBJSUFF) \
185 menu.$(OBJSUFF) \
186 menuitem.$(OBJSUFF) \
187 metafile.$(OBJSUFF) \
188 minifram.$(OBJSUFF) \
189 msgdlg.$(OBJSUFF) \
190 nativdlg.$(OBJSUFF) \
191 notebook.$(OBJSUFF) \
192 ownerdrw.$(OBJSUFF) \
193 palette.$(OBJSUFF) \
194 pen.$(OBJSUFF) \
195 penwin.$(OBJSUFF) \
196 printdlg.$(OBJSUFF) \
197 printwin.$(OBJSUFF) \
198 radiobox.$(OBJSUFF) \
199 radiobut.$(OBJSUFF) \
200 region.$(OBJSUFF) \
201 registry.$(OBJSUFF) \
202 regconf.$(OBJSUFF) \
203 scrolbar.$(OBJSUFF) \
204 settings.$(OBJSUFF) \
205 slidrmsw.$(OBJSUFF) \
206 slider95.$(OBJSUFF) \
207 spinbutt.$(OBJSUFF) \
208 statbmp.$(OBJSUFF) \
209 statbox.$(OBJSUFF) \
210 statbr95.$(OBJSUFF) \
211 stattext.$(OBJSUFF) \
212 tabctrl.$(OBJSUFF) \
213 taskbar.$(OBJSUFF) \
214 tbar95.$(OBJSUFF) \
215 tbarmsw.$(OBJSUFF) \
216 textctrl.$(OBJSUFF) \
217 thread.$(OBJSUFF) \
218 timer.$(OBJSUFF) \
219 treectrl.$(OBJSUFF) \
220 utils.$(OBJSUFF) \
221 utilsexc.$(OBJSUFF) \
222 wave.$(OBJSUFF) \
223 window.$(OBJSUFF)
224
225 # OLE not supported yet by GnuWin32
226 # $(OLEDIR)/droptgt.$(OBJSUFF) \
227 # $(OLEDIR)/dropsrc.$(OBJSUFF) \
228 # $(OLEDIR)/dataobj.$(OBJSUFF) \
229 # $(OLEDIR)/oleutils.$(OBJSUFF) \
230 # $(OLEDIR)/uuid.$(OBJSUFF) \
231 # $(OLEDIR)/automtn.$(OBJSUFF)
232
233 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
234 $(XPMDIR)/crdatfri.o\
235 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
236 $(XPMDIR)/crifrdat.o\
237 $(XPMDIR)/data.o\
238 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
239 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
240 $(XPMDIR)/rdftoi.o\
241 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
242 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
243 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
244
245 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) # $(XPMOBJECTS)
246
247 all: $(OBJECTS) $(WXLIB)
248
249 base:
250 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
251 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
252
253
254 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
255 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
256 $(RANLIB) $@
257
258 #$(MSWOBJDIR):
259 # mkdir $(OBJDIR)
260
261 #$(COMMOBJDIR):
262 # mkdir $(COMMDIR)/$(OBJDIR)
263
264 #$(GENERICOBJDIR):
265 # mkdir $(GENDIR)/$(OBJDIR)
266
267 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
268
269 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
270 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
271
272 # Replace lex with flex if you run into compilation
273 # problems with lex_yy.c. See also note about LEX_SCANNER
274 # above.
275 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
276 $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
277
278 # The following may be required for some versions of LEX/FLEX
279 # $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
280
281 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
282 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
283 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
284 # rm -f lex.yy.c
285
286 # Replace yacc with bison if you run into compilation
287 # problems with y_tab.c.
288 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
289 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
290
291 # mv y.tab.c $(COMMDIR)/y_tab.c
292
293
294 # Extra targets
295 rcparser:
296 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
297 cd $(WXDIR)/src/msw
298
299 clean_rcp:
300 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
301 cd $(WXDIR)/src/msw
302
303 clean:
304 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
305
306 cleanall: clean
307