]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # File: makefile.unx | |
3 | # Author: Robert Roebling | |
4 | # Created: 1998 | |
5 | # Updated: | |
6 | # Copyright: (c) 1998, 1999 | |
7 | # | |
8 | # | |
9 | # Makefile for wxWindows library, GTK 1.2, Unix | |
10 | # | |
11 | ||
12 | EXTRACFLAGS=-DLEX_SCANNER | |
13 | ||
14 | include ../make.env | |
15 | ||
16 | LIB_CPP_SRC=\ | |
17 | \ | |
18 | accel.cpp \ | |
19 | app.cpp \ | |
20 | bitmap.cpp \ | |
21 | bmpbuttn.cpp \ | |
22 | brush.cpp \ | |
23 | button.cpp \ | |
24 | checkbox.cpp \ | |
25 | checklst.cpp \ | |
26 | choice.cpp \ | |
27 | choicdlg.cpp \ | |
28 | clipbrd.cpp \ | |
29 | colour.cpp \ | |
30 | combobox.cpp \ | |
31 | control.cpp \ | |
32 | cursor.cpp \ | |
33 | data.cpp \ | |
34 | dataobj.cpp \ | |
35 | dc.cpp \ | |
36 | dcclient.cpp \ | |
37 | dcmemory.cpp \ | |
38 | dcscreen.cpp \ | |
39 | dialog.cpp \ | |
40 | dnd.cpp \ | |
41 | filedlg.cpp \ | |
42 | font.cpp \ | |
43 | frame.cpp \ | |
44 | gauge.cpp \ | |
45 | gdiobj.cpp \ | |
46 | icon.cpp \ | |
47 | listbox.cpp \ | |
48 | main.cpp \ | |
49 | mdi.cpp \ | |
50 | menu.cpp \ | |
51 | minifram.cpp \ | |
52 | msgdlg.cpp \ | |
53 | notebook.cpp \ | |
54 | palette.cpp \ | |
55 | pen.cpp \ | |
56 | radiobox.cpp \ | |
57 | radiobut.cpp \ | |
58 | region.cpp \ | |
59 | scrolbar.cpp \ | |
60 | settings.cpp \ | |
61 | slider.cpp \ | |
62 | spinbutt.cpp \ | |
63 | statbmp.cpp \ | |
64 | statbox.cpp \ | |
65 | statline.cpp \ | |
66 | stattext.cpp \ | |
67 | tbargtk.cpp \ | |
68 | textctrl.cpp \ | |
69 | textdlg.cpp \ | |
70 | timer.cpp \ | |
71 | tooltip.cpp \ | |
72 | utilsgtk.cpp \ | |
73 | utilsres.cpp \ | |
74 | wave.cpp \ | |
75 | window.cpp \ | |
76 | \ | |
77 | ../common/cmndata.cpp \ | |
78 | ../common/config.cpp \ | |
79 | ../common/date.cpp \ | |
80 | ../common/datstrm.cpp \ | |
81 | ../common/dcbase.cpp \ | |
82 | ../common/dlgcmn.cpp \ | |
83 | ../common/docmdi.cpp \ | |
84 | ../common/docview.cpp \ | |
85 | ../common/dynarray.cpp \ | |
86 | ../common/dynlib.cpp \ | |
87 | ../common/event.cpp \ | |
88 | ../common/file.cpp \ | |
89 | ../common/fileconf.cpp \ | |
90 | ../common/filefn.cpp \ | |
91 | ../common/framecmn.cpp \ | |
92 | ../common/ftp.cpp \ | |
93 | ../common/gdicmn.cpp \ | |
94 | ../common/hash.cpp \ | |
95 | ../common/helpbase.cpp \ | |
96 | ../common/http.cpp \ | |
97 | ../common/image.cpp \ | |
98 | ../common/imagjpeg.cpp \ | |
99 | ../common/imagbmp.cpp \ | |
100 | ../common/imaggif.cpp \ | |
101 | ../common/imagpng.cpp \ | |
102 | ../common/intl.cpp \ | |
103 | ../common/ipcbase.cpp \ | |
104 | ../common/layout.cpp \ | |
105 | ../common/list.cpp \ | |
106 | ../common/log.cpp \ | |
107 | ../common/longlong.cpp \ | |
108 | ../common/matrix.cpp \ | |
109 | ../common/memory.cpp \ | |
110 | ../common/mimetype.cpp \ | |
111 | ../common/module.cpp \ | |
112 | ../common/mstream.cpp \ | |
113 | ../common/object.cpp \ | |
114 | ../common/objstrm.cpp \ | |
115 | ../common/odbc.cpp \ | |
116 | ../common/paper.cpp \ | |
117 | ../common/prntbase.cpp \ | |
118 | ../common/process.cpp \ | |
119 | ../common/protocol.cpp \ | |
120 | ../common/resource.cpp \ | |
121 | ../common/sckaddr.cpp \ | |
122 | ../common/sckfile.cpp \ | |
123 | ../common/sckint.cpp \ | |
124 | ../common/sckipc.cpp \ | |
125 | ../common/sckstrm.cpp \ | |
126 | ../common/serbase.cpp \ | |
127 | ../common/socket.cpp \ | |
128 | ../common/stream.cpp \ | |
129 | ../common/string.cpp \ | |
130 | ../common/tbarbase.cpp \ | |
131 | ../common/tbarsmpl.cpp \ | |
132 | ../common/textfile.cpp \ | |
133 | ../common/time.cpp \ | |
134 | ../common/timercmn.cpp \ | |
135 | ../common/tokenzr.cpp \ | |
136 | ../common/url.cpp \ | |
137 | ../common/utilscmn.cpp \ | |
138 | ../common/valgen.cpp \ | |
139 | ../common/validate.cpp \ | |
140 | ../common/valtext.cpp \ | |
141 | ../common/variant.cpp \ | |
142 | ../common/wfstream.cpp \ | |
143 | ../common/wincmn.cpp \ | |
144 | ../common/wxchar.cpp \ | |
145 | ../common/wxexpr.cpp \ | |
146 | ../common/zstream.cpp \ | |
147 | \ | |
148 | ../common/db.cpp \ | |
149 | ../common/dbtable.cpp \ | |
150 | \ | |
151 | ../unix/threadpsx.cpp \ | |
152 | ../unix/utilsunx.cpp \ | |
153 | \ | |
154 | ../generic/caret.cpp \ | |
155 | ../generic/colrdlgg.cpp \ | |
156 | ../generic/dcpsg.cpp \ | |
157 | ../generic/dirdlgg.cpp \ | |
158 | ../generic/fontdlgg.cpp \ | |
159 | ../generic/gridg.cpp \ | |
160 | ../generic/helpext.cpp \ | |
161 | ../generic/helphtml.cpp \ | |
162 | ../generic/imaglist.cpp \ | |
163 | ../generic/laywin.cpp \ | |
164 | ../generic/listctrl.cpp \ | |
165 | ../generic/panelg.cpp \ | |
166 | ../generic/printps.cpp \ | |
167 | ../generic/prntdlgg.cpp \ | |
168 | ../generic/progdlgg.cpp \ | |
169 | ../generic/prop.cpp \ | |
170 | ../generic/propform.cpp \ | |
171 | ../generic/proplist.cpp \ | |
172 | ../generic/sashwin.cpp \ | |
173 | ../generic/scrolwin.cpp \ | |
174 | ../generic/splitter.cpp \ | |
175 | ../generic/statusbr.cpp \ | |
176 | ../generic/tabg.cpp \ | |
177 | ../generic/tipdlg.cpp \ | |
178 | ../generic/treectrl.cpp | |
179 | ||
180 | ||
181 | ZLIB_SRC=\ | |
182 | ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\ | |
183 | ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \ | |
184 | ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \ | |
185 | ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\ | |
186 | ../zlib/infutil.c ../zlib/uncompr.c | |
187 | ||
188 | PNG_SRC=\ | |
189 | ../png/png.c \ | |
190 | ../png/pngset.c \ | |
191 | ../png/pngget.c \ | |
192 | ../png/pngrutil.c \ | |
193 | ../png/pngtrans.c \ | |
194 | ../png/pngwutil.c \ | |
195 | ../png/pngread.c \ | |
196 | ../png/pngrio.c \ | |
197 | ../png/pngwio.c \ | |
198 | ../png/pngwrite.c \ | |
199 | ../png/pngrtran.c \ | |
200 | ../png/pngwtran.c \ | |
201 | ../png/pngmem.c \ | |
202 | ../png/pngerror.c \ | |
203 | ../png/pngpread.c | |
204 | ||
205 | JPEG_SRC=\ | |
206 | ../jpeg/jcomapi.c \ | |
207 | ../jpeg/jutils.c \ | |
208 | ../jpeg/jerror.c \ | |
209 | ../jpeg/jmemmgr.c \ | |
210 | ../jpeg/jmemnobs.c \ | |
211 | ../jpeg/jcapimin.c \ | |
212 | ../jpeg/jcapistd.c \ | |
213 | ../jpeg/jctrans.c \ | |
214 | ../jpeg/jcparam.c \ | |
215 | ../jpeg/jdatadst.c \ | |
216 | ../jpeg/jcinit.c \ | |
217 | ../jpeg/jcmaster.c \ | |
218 | ../jpeg/jcmarker.c \ | |
219 | ../jpeg/jcmainct.c \ | |
220 | ../jpeg/jcprepct.c \ | |
221 | ../jpeg/jccoefct.c \ | |
222 | ../jpeg/jccolor.c \ | |
223 | ../jpeg/jcsample.c \ | |
224 | ../jpeg/jchuff.c \ | |
225 | ../jpeg/jcphuff.c \ | |
226 | ../jpeg/jcdctmgr.c \ | |
227 | ../jpeg/jfdctfst.c \ | |
228 | ../jpeg/jfdctflt.c \ | |
229 | ../jpeg/jfdctint.c \ | |
230 | ../jpeg/jdapimin.c \ | |
231 | ../jpeg/jdapistd.c \ | |
232 | ../jpeg/jdtrans.c \ | |
233 | ../jpeg/jdatasrc.c \ | |
234 | ../jpeg/jdmaster.c \ | |
235 | ../jpeg/jdinput.c \ | |
236 | ../jpeg/jdmarker.c \ | |
237 | ../jpeg/jdhuff.c \ | |
238 | ../jpeg/jdphuff.c \ | |
239 | ../jpeg/jdmainct.c \ | |
240 | ../jpeg/jdcoefct.c \ | |
241 | ../jpeg/jdpostct.c \ | |
242 | ../jpeg/jddctmgr.c \ | |
243 | ../jpeg/jidctfst.c \ | |
244 | ../jpeg/jidctflt.c \ | |
245 | ../jpeg/jidctint.c \ | |
246 | ../jpeg/jidctred.c \ | |
247 | ../jpeg/jdsample.c \ | |
248 | ../jpeg/jdcolor.c \ | |
249 | ../jpeg/jquant1.c \ | |
250 | ../jpeg/jquant2.c \ | |
251 | ../jpeg/jdmerge.c | |
252 | ||
253 | LIB_C_SRC=\ | |
254 | \ | |
255 | win_gtk.c \ | |
256 | ../common/y_tab.c \ | |
257 | ../common/extended.c | |
258 | ||
259 | # Only need to compile zlib files if we don't | |
260 | # already have a zlib library installed on our system | |
261 | # (or we wish to statically link them for some reason) | |
262 | EXTRA_C_SRC=\ | |
263 | $(ZLIB_SRC) $(PNG_SRC) $(JPEG_SRC) | |
264 | ||
265 | all: $(WXLIB) | |
266 | ||
267 | # Define library objects | |
268 | OBJECTS=\ | |
269 | $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) | |
270 | ||
271 | $(WXLIB) : $(OBJECTS) | |
272 | ar $(AROPTIONS) $@ $(OBJECTS) | |
273 | $(RANLIB) $@ | |
274 | ||
275 | ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c | |
276 | $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c | |
277 | ||
278 | # Replace lex with flex if you run into compilation | |
279 | # problems with lex_yy.c. See also note about LEX_SCANNER | |
280 | # above. | |
281 | ../common/lex_yy.c: ../common/lexer.l | |
282 | $(LEX) -o../common/lex.yy.c ../common/lexer.l | |
283 | sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \ | |
284 | sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \ | |
285 | sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c | |
286 | /bin/rm -f ../common/lex.yy.c | |
287 | ||
288 | # Replace yacc with bison if you run into compilation | |
289 | # problems with y_tab.c. | |
290 | ../common/y_tab.c: ../common/parser.y | |
291 | $(YACC) ../common/parser.y | |
292 | mv y.tab.c ../common/y_tab.c | |
293 | ||
294 | clean: | |
295 | rm -f $(OBJECTS) $(WXLIB) | |
296 |