]>
Commit | Line | Data |
---|---|---|
08ee50db JS |
1 | # |
2 | # File: makefile.unx | |
3 | # Author: Julian Smart | |
4 | # Created: 1998 | |
5 | # Updated: | |
6 | # Copyright: (c) 1998 | |
7 | # | |
8 | # | |
9 | # Makefile for wxMotif library, Unix | |
10 | ||
11 | EXTRACFLAGS=-DLEX_SCANNER | |
12 | ||
13 | include ../make.env | |
14 | ||
15 | LIB_CPP_SRC=\ | |
16 | \ | |
17 | ../common/cmndata.cpp \ | |
18 | ../common/config.cpp \ | |
eebc8b5e | 19 | ../common/dcbase.cpp \ |
08ee50db JS |
20 | ../common/date.cpp \ |
21 | ../common/docmdi.cpp \ | |
22 | ../common/docview.cpp \ | |
23 | ../common/dynarray.cpp \ | |
24 | ../common/dynlib.cpp \ | |
25 | ../common/event.cpp \ | |
26 | ../common/file.cpp \ | |
27 | ../common/fileconf.cpp \ | |
28 | ../common/filefn.cpp \ | |
29 | ../common/gdicmn.cpp \ | |
30 | ../common/hash.cpp \ | |
31 | ../common/helpbase.cpp \ | |
32 | ../common/intl.cpp \ | |
33 | ../common/ipcbase.cpp \ | |
ee4c6942 | 34 | ../common/image.cpp \ |
e9c4b1a2 JS |
35 | ../common/imagjpeg.cpp \ |
36 | ../common/imagpng.cpp \ | |
e702ff0f | 37 | ../common/imaggif.cpp \ |
08ee50db JS |
38 | ../common/layout.cpp \ |
39 | ../common/list.cpp \ | |
40 | ../common/log.cpp \ | |
41 | ../common/matrix.cpp \ | |
42 | ../common/memory.cpp \ | |
43 | ../common/module.cpp \ | |
44 | ../common/object.cpp \ | |
45 | ../common/odbc.cpp \ | |
08ee50db JS |
46 | ../common/prntbase.cpp \ |
47 | ../common/resource.cpp \ | |
48 | ../common/serbase.cpp \ | |
7bcb11d3 | 49 | ../common/paper.cpp \ |
08ee50db JS |
50 | ../common/string.cpp \ |
51 | ../common/textfile.cpp \ | |
52 | ../common/tbarbase.cpp \ | |
53 | ../common/tbarsmpl.cpp \ | |
7fe7d506 | 54 | ../common/time.cpp \ |
08ee50db JS |
55 | ../common/timercmn.cpp \ |
56 | ../common/utilscmn.cpp \ | |
57 | ../common/wincmn.cpp \ | |
58 | ../common/framecmn.cpp \ | |
59 | ../common/stream.cpp \ | |
60 | ../common/datstrm.cpp \ | |
25331334 | 61 | ../common/wfstream.cpp \ |
08ee50db JS |
62 | ../common/mstream.cpp \ |
63 | ../common/zstream.cpp \ | |
64 | ../common/objstrm.cpp \ | |
65 | ../common/sckstrm.cpp \ | |
66 | ../common/validate.cpp \ | |
89c684ef | 67 | ../common/valgen.cpp \ |
08ee50db JS |
68 | ../common/valtext.cpp \ |
69 | ../common/variant.cpp \ | |
70 | ../common/wxexpr.cpp \ | |
75737d05 | 71 | ../common/wxchar.cpp \ |
08ee50db JS |
72 | ../common/socket.cpp \ |
73 | ../common/sckaddr.cpp \ | |
a50fb9c0 | 74 | ../common/sckint.cpp \ |
08ee50db JS |
75 | ../common/sckipc.cpp \ |
76 | ../common/protocol.cpp \ | |
77 | ../common/ftp.cpp \ | |
78 | ../common/http.cpp \ | |
79 | ../common/url.cpp \ | |
80 | ../common/tokenzr.cpp \ | |
7bcb11d3 JS |
81 | \ |
82 | ../unix/threadpsx.cpp \ | |
83 | ../unix/utilsunx.cpp \ | |
08ee50db JS |
84 | \ |
85 | accel.cpp \ | |
86 | app.cpp \ | |
87 | bitmap.cpp \ | |
88 | bmpbuttn.cpp \ | |
89 | brush.cpp \ | |
90 | button.cpp \ | |
91 | checkbox.cpp \ | |
92 | choice.cpp \ | |
93 | clipbrd.cpp \ | |
94 | colour.cpp \ | |
08ee50db JS |
95 | control.cpp \ |
96 | combobox.cpp \ | |
97 | cursor.cpp \ | |
98 | data.cpp \ | |
2d120f83 | 99 | dataobj.cpp \ |
08ee50db JS |
100 | dc.cpp \ |
101 | dcclient.cpp \ | |
102 | dcmemory.cpp \ | |
103 | dcscreen.cpp \ | |
104 | dialog.cpp \ | |
08ee50db JS |
105 | dnd.cpp \ |
106 | filedlg.cpp \ | |
107 | font.cpp \ | |
08ee50db JS |
108 | frame.cpp \ |
109 | gauge.cpp \ | |
110 | gdiobj.cpp \ | |
08ee50db JS |
111 | icon.cpp \ |
112 | listbox.cpp \ | |
113 | joystick.cpp \ | |
114 | main.cpp \ | |
115 | mdi.cpp \ | |
116 | menu.cpp \ | |
117 | menuitem.cpp \ | |
08ee50db JS |
118 | minifram.cpp \ |
119 | msgdlg.cpp \ | |
08ee50db JS |
120 | palette.cpp \ |
121 | pen.cpp \ | |
08ee50db JS |
122 | radiobox.cpp \ |
123 | radiobut.cpp \ | |
124 | region.cpp \ | |
125 | scrolbar.cpp \ | |
126 | settings.cpp \ | |
127 | slider.cpp \ | |
128 | spinbutt.cpp \ | |
129 | statbox.cpp \ | |
130 | statbmp.cpp \ | |
131 | stattext.cpp \ | |
132 | taskbar.cpp \ | |
133 | textctrl.cpp \ | |
08ee50db | 134 | timer.cpp \ |
0d57be45 | 135 | toolbar.cpp \ |
08ee50db | 136 | utils.cpp \ |
08ee50db JS |
137 | wave.cpp \ |
138 | window.cpp \ | |
139 | \ | |
140 | ../generic/choicdgg.cpp \ | |
141 | ../generic/colrdlgg.cpp \ | |
94b49b93 | 142 | ../generic/dirdlgg.cpp \ |
bf38cbff | 143 | ../generic/dcpsg.cpp \ |
08ee50db JS |
144 | ../generic/fontdlgg.cpp \ |
145 | ../generic/gridg.cpp \ | |
f3a65071 | 146 | ../generic/helphtml.cpp \ |
55acd85e | 147 | ../generic/helpext.cpp \ |
08ee50db JS |
148 | ../generic/imaglist.cpp \ |
149 | ../generic/listctrl.cpp \ | |
150 | ../generic/laywin.cpp \ | |
151 | ../generic/msgdlgg.cpp \ | |
793f619f | 152 | ../generic/notebook.cpp \ |
08ee50db JS |
153 | ../generic/panelg.cpp \ |
154 | ../generic/printps.cpp \ | |
155 | ../generic/prntdlgg.cpp \ | |
e3a43801 JS |
156 | ../generic/prop.cpp \ |
157 | ../generic/propform.cpp \ | |
158 | ../generic/proplist.cpp \ | |
08ee50db JS |
159 | ../generic/sashwin.cpp \ |
160 | ../generic/scrolwin.cpp \ | |
161 | ../generic/splitter.cpp \ | |
162 | ../generic/statusbr.cpp \ | |
163 | ../generic/tabg.cpp \ | |
164 | ../generic/textdlgg.cpp \ | |
165 | ../generic/treectrl.cpp | |
166 | ||
3dd4e4e0 JS |
167 | ZLIB_SRC=\ |
168 | ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\ | |
169 | ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \ | |
170 | ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \ | |
171 | ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\ | |
172 | ../zlib/infutil.c ../zlib/uncompr.c | |
08ee50db JS |
173 | |
174 | LIB_C_SRC=\ | |
175 | \ | |
176 | ../common/y_tab.c \ | |
177 | ../common/extended.c | |
178 | ||
3dd4e4e0 JS |
179 | # Only need to compile zlib files if we don't |
180 | # already have a zlib library installed on our system | |
181 | # (or we wish to statically link them for some reason) | |
89c7e962 | 182 | EXTRA_C_SRC=\ |
ee4c6942 | 183 | xmcombo/xmcombo.c |
8704bf74 | 184 | |
777553d2 | 185 | EXTRA_CPP_SRC= |
621793f4 JS |
186 | |
187 | # mdi/lib/XsComponent.C\ | |
188 | # mdi/lib/XsMDICanvas.C\ | |
189 | # mdi/lib/XsMDIWindow.C\ | |
190 | # mdi/lib/XsMotifWindow.C\ | |
191 | # mdi/lib/XsMoveOutline.C\ | |
192 | # mdi/lib/XsOutline.C\ | |
193 | # mdi/lib/XsResizeOutline.C | |
89c7e962 | 194 | |
ee4c6942 | 195 | all: $(WXLIB) png zlib |
08ee50db JS |
196 | |
197 | # Define library objects | |
198 | OBJECTS=\ | |
8704bf74 | 199 | $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o) |
08ee50db JS |
200 | |
201 | $(WXLIB) : $(OBJECTS) | |
202 | ar $(AROPTIONS) $@ $(OBJECTS) | |
203 | $(RANLIB) $@ | |
204 | ||
205 | ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c | |
f57fe24c | 206 | $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c |
08ee50db JS |
207 | |
208 | # Replace lex with flex if you run into compilation | |
209 | # problems with lex_yy.c. See also note about LEX_SCANNER | |
210 | # above. | |
211 | ../common/lex_yy.c: ../common/lexer.l | |
a91b47e8 JS |
212 | $(LEX) ../common/lexer.l |
213 | sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \ | |
08ee50db JS |
214 | sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \ |
215 | sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c | |
a91b47e8 | 216 | /bin/rm -f lex.yy.c |
08ee50db | 217 | |
a91b47e8 JS |
218 | # The above should work with both lex and flex, but just in case not, |
219 | # here are alternative syntaxes. | |
220 | # | |
221 | # Flex-style syntax: | |
222 | # $(LEX) -olex.yy.c ../common/lexer.l | |
223 | ||
224 | # Lex-style syntax: | |
750b78ba JS |
225 | # $(LEX) ../common/lexer.l |
226 | ||
08ee50db JS |
227 | # Replace yacc with bison if you run into compilation |
228 | # problems with y_tab.c. | |
229 | ../common/y_tab.c: ../common/parser.y | |
230 | $(YACC) ../common/parser.y | |
231 | mv y.tab.c ../common/y_tab.c | |
232 | ||
89c7e962 JS |
233 | combobox/combobox.o: combobox/combobox.c |
234 | $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c | |
08ee50db | 235 | |
ee4c6942 JS |
236 | zlib: |
237 | cd ../zlib; make -f makefile.unx motif | |
238 | ||
239 | png: | |
240 | cd ../png; make -f makefile.unx motif | |
241 | ||
242 | clean: cleanzlib cleanpng | |
08ee50db JS |
243 | rm -f $(OBJECTS) $(WXLIB) |
244 | ||
ee4c6942 JS |
245 | cleanzlib: |
246 | cd ../zlib; make -f makefile.unx cleanmotif | |
247 | ||
248 | cleanpng: | |
249 | cd ../png; make -f makefile.unx cleanmotif | |
250 |