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