]> git.saurik.com Git - wxWidgets.git/blob - src/msw/makefile.g95
somehow log target wasn't being created automatically anymore. Restored.
[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 # 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!
39 XPMSRC=../../contrib/wxxpm/objects$(GUISUFFIX)
40 XPMOBJS=$(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
48 EXTRAOBJS=
49
50 GENDIR=../generic
51 COMMDIR=../common
52 OLEDIR=ole
53 MSWDIR=.
54
55 GENERICOBJDIR=../generic/$(OBJDIR)
56 COMMOBJDIR=../common/$(OBJDIR)
57 OLEOBJDIR=ole/$(OBJDIR)
58 MSWDIR=$(OBJDIR)
59
60 DOCDIR = $(WXDIR)\docs
61
62 GENERICOBJS= \
63 $(GENDIR)/choicdgg.$(OBJSUFF) \
64 $(GENDIR)/colrdlgg.$(OBJSUFF) \
65 $(GENDIR)/fontdlgg.$(OBJSUFF) \
66 $(GENDIR)/gridg.$(OBJSUFF) \
67 $(GENDIR)/helpxlp.$(OBJSUFF) \
68 $(GENDIR)/laywin.$(OBJSUFF) \
69 $(GENDIR)/msgdlgg.$(OBJSUFF) \
70 $(GENDIR)/panelg.$(OBJSUFF) \
71 $(GENDIR)/printps.$(OBJSUFF) \
72 $(GENDIR)/prntdlgg.$(OBJSUFF) \
73 $(GENDIR)/sashwin.$(OBJSUFF) \
74 $(GENDIR)/scrolwin.$(OBJSUFF) \
75 $(GENDIR)/splitter.$(OBJSUFF) \
76 $(GENDIR)/statusbr.$(OBJSUFF) \
77 $(GENDIR)/tabg.$(OBJSUFF) \
78 $(GENDIR)/textdlgg.$(OBJSUFF)
79
80 COMMONOBJS = \
81 $(COMMDIR)/config.$(OBJSUFF) \
82 $(COMMDIR)/cmndata.$(OBJSUFF) \
83 $(COMMDIR)/docview.$(OBJSUFF) \
84 $(COMMDIR)/docmdi.$(OBJSUFF) \
85 $(COMMDIR)/dynarray.$(OBJSUFF) \
86 $(COMMDIR)/event.$(OBJSUFF) \
87 $(COMMDIR)/file.$(OBJSUFF) \
88 $(COMMDIR)/fileconf.$(OBJSUFF) \
89 $(COMMDIR)/filefn.$(OBJSUFF) \
90 $(COMMDIR)/framecmn.$(OBJSUFF) \
91 $(COMMDIR)/gdicmn.$(OBJSUFF) \
92 $(COMMDIR)/helpbase.$(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)/postscrp.$(OBJSUFF) \
101 $(COMMDIR)/process.$(OBJSUFF) \
102 $(COMMDIR)/prntbase.$(OBJSUFF) \
103 $(COMMDIR)/resource.$(OBJSUFF) \
104 $(COMMDIR)/tbarbase.$(OBJSUFF) \
105 $(COMMDIR)/tbarsmpl.$(OBJSUFF) \
106 $(COMMDIR)/textfile.$(OBJSUFF) \
107 $(COMMDIR)/timercmn.$(OBJSUFF) \
108 $(COMMDIR)/utilscmn.$(OBJSUFF) \
109 $(COMMDIR)/validate.$(OBJSUFF) \
110 $(COMMDIR)/valtext.$(OBJSUFF) \
111 $(COMMDIR)/date.$(OBJSUFF) \
112 $(COMMDIR)/wxexpr.$(OBJSUFF) \
113 $(COMMDIR)/hash.$(OBJSUFF) \
114 $(COMMDIR)/list.$(OBJSUFF) \
115 $(COMMDIR)/variant.$(OBJSUFF) \
116 $(COMMDIR)/string.$(OBJSUFF) \
117 $(COMMDIR)/time.$(OBJSUFF) \
118 $(COMMDIR)/tokenzr.$(OBJSUFF) \
119 $(COMMDIR)/y_tab.$(OBJSUFF) \
120 $(COMMDIR)/stream.$(OBJSUFF) \
121 $(COMMDIR)/fstream.$(OBJSUFF) \
122 $(COMMDIR)/mstream.$(OBJSUFF) \
123 $(COMMDIR)/zstream.$(OBJSUFF) \
124 $(COMMDIR)/datstrm.$(OBJSUFF) \
125 $(COMMDIR)/objstrm.$(OBJSUFF) \
126 $(COMMDIR)/extended.$(OBJSUFF) \
127 $(COMMDIR)/wincmn.$(OBJSUFF)
128
129 # Unfortunately, GnuWin32 fails with a syntax error in Sockets.h,
130 # so remove socket code.
131 # $(COMMDIR)/socket.$(OBJSUFF) \
132 # $(COMMDIR)/sckaddr.$(OBJSUFF) \
133 # $(COMMDIR)/sckfile.$(OBJSUFF) \
134 # $(COMMDIR)/sckipc.$(OBJSUFF) \
135 # $(COMMDIR)/sckstrm.$(OBJSUFF) \
136 # $(COMMDIR)/protocol.$(OBJSUFF) \
137 # $(COMMDIR)/http.$(OBJSUFF) \
138 # $(COMMDIR)/ftp.$(OBJSUFF) \
139 # $(COMMDIR)/url.$(OBJSUFF) \
140
141 MSWOBJS = \
142 accel.$(OBJSUFF) \
143 app.$(OBJSUFF) \
144 bitmap.$(OBJSUFF) \
145 bmpbuttn.$(OBJSUFF) \
146 brush.$(OBJSUFF) \
147 button.$(OBJSUFF) \
148 checkbox.$(OBJSUFF) \
149 checklst.$(OBJSUFF) \
150 choice.$(OBJSUFF) \
151 clipbrd.$(OBJSUFF) \
152 colordlg.$(OBJSUFF) \
153 colour.$(OBJSUFF) \
154 combobox.$(OBJSUFF) \
155 control.$(OBJSUFF) \
156 curico.$(OBJSUFF) \
157 cursor.$(OBJSUFF) \
158 data.$(OBJSUFF) \
159 dc.$(OBJSUFF) \
160 dcmemory.$(OBJSUFF) \
161 dcclient.$(OBJSUFF) \
162 dcprint.$(OBJSUFF) \
163 dcscreen.$(OBJSUFF) \
164 dde.$(OBJSUFF) \
165 dialog.$(OBJSUFF) \
166 dib.$(OBJSUFF) \
167 dirdlg.$(OBJSUFF) \
168 filedlg.$(OBJSUFF) \
169 font.$(OBJSUFF) \
170 fontdlg.$(OBJSUFF) \
171 frame.$(OBJSUFF) \
172 gaugemsw.$(OBJSUFF) \
173 gauge95.$(OBJSUFF) \
174 gdiobj.$(OBJSUFF) \
175 helpwin.$(OBJSUFF) \
176 icon.$(OBJSUFF) \
177 imaglist.$(OBJSUFF) \
178 joystick.$(OBJSUFF) \
179 listbox.$(OBJSUFF) \
180 listctrl.$(OBJSUFF) \
181 main.$(OBJSUFF) \
182 mdi.$(OBJSUFF) \
183 menu.$(OBJSUFF) \
184 menuitem.$(OBJSUFF) \
185 metafile.$(OBJSUFF) \
186 minifram.$(OBJSUFF) \
187 msgdlg.$(OBJSUFF) \
188 nativdlg.$(OBJSUFF) \
189 notebook.$(OBJSUFF) \
190 ownerdrw.$(OBJSUFF) \
191 palette.$(OBJSUFF) \
192 pen.$(OBJSUFF) \
193 penwin.$(OBJSUFF) \
194 printdlg.$(OBJSUFF) \
195 printwin.$(OBJSUFF) \
196 radiobox.$(OBJSUFF) \
197 radiobut.$(OBJSUFF) \
198 region.$(OBJSUFF) \
199 registry.$(OBJSUFF) \
200 regconf.$(OBJSUFF) \
201 scrolbar.$(OBJSUFF) \
202 settings.$(OBJSUFF) \
203 slidrmsw.$(OBJSUFF) \
204 slider95.$(OBJSUFF) \
205 spinbutt.$(OBJSUFF) \
206 statbmp.$(OBJSUFF) \
207 statbox.$(OBJSUFF) \
208 statbr95.$(OBJSUFF) \
209 stattext.$(OBJSUFF) \
210 tabctrl.$(OBJSUFF) \
211 taskbar.$(OBJSUFF) \
212 tbar95.$(OBJSUFF) \
213 tbarmsw.$(OBJSUFF) \
214 textctrl.$(OBJSUFF) \
215 thread.$(OBJSUFF) \
216 timer.$(OBJSUFF) \
217 treectrl.$(OBJSUFF) \
218 utils.$(OBJSUFF) \
219 utilsexc.$(OBJSUFF) \
220 wave.$(OBJSUFF) \
221 window.$(OBJSUFF)
222
223 # OLE not supported yet by GnuWin32 (?)
224 # $(OLEDIR)/droptgt.$(OBJSUFF) \
225 # $(OLEDIR)/dropsrc.$(OBJSUFF) \
226 # $(OLEDIR)/dataobj.$(OBJSUFF) \
227 # $(OLEDIR)/oleutils.$(OBJSUFF) \
228 # $(OLEDIR)/uuid.$(OBJSUFF)
229
230 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS)
231
232 all: $(OBJECTS) $(WXLIB)
233
234 base:
235 cd $(WXDIR)/src/common; $(MAKE) -f makefile.g95 GUI=$(GUI) GUISUFFIX=$(GUISUFFIX) CC=$(CC)\
236 OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
237
238
239 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
240 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
241 $(RANLIB) $@
242
243 #$(MSWOBJDIR):
244 # mkdir $(OBJDIR)
245
246 #$(COMMOBJDIR):
247 # mkdir $(COMMDIR)/$(OBJDIR)
248
249 #$(GENERICOBJDIR):
250 # mkdir $(GENDIR)/$(OBJDIR)
251
252 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
253
254 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
255 $(CCLEX) -c $(CPPFLAGS) -o $@ $(COMMDIR)/y_tab.c
256
257 # Replace lex with flex if you run into compilation
258 # problems with lex_yy.c. See also note about LEX_SCANNER
259 # above.
260 $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
261 $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
262
263 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
264 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
265 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
266 # rm -f lex.yy.c
267
268 # Replace yacc with bison if you run into compilation
269 # problems with y_tab.c.
270 $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
271 $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
272
273 # mv y.tab.c $(COMMDIR)/y_tab.c
274
275
276 # Extra targets
277 rcparser:
278 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95
279 cd $(WXDIR)/src/msw
280
281 clean_rcp:
282 cd $(WXDIR)/utils/rcparser/src; $(MAKE) -f makefile.g95 clean
283 cd $(WXDIR)/src/msw
284
285 clean:
286 rm -f $(OBJECTS) $(EXTRAOBJS) ../common/y_tab.c ../common/lex_yy.c $(WXDIR)/lib/libwx$(GUISUFFIX).a core
287
288 cleanall: clean
289