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