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