]> git.saurik.com Git - wxWidgets.git/blob - src/motif/makefile.unx
Fixed compile errors.
[wxWidgets.git] / src / motif / makefile.unx
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/dcbase.cpp \
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 \
34 ../common/image.cpp \
35 ../common/imagjpeg.cpp \
36 ../common/imagpng.cpp \
37 ../common/imaggif.cpp \
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 \
46 ../common/prntbase.cpp \
47 ../common/resource.cpp \
48 ../common/serbase.cpp \
49 ../common/paper.cpp \
50 ../common/string.cpp \
51 ../common/textfile.cpp \
52 ../common/tbarbase.cpp \
53 ../common/tbarsmpl.cpp \
54 ../common/time.cpp \
55 ../common/timercmn.cpp \
56 ../common/utilscmn.cpp \
57 ../common/wincmn.cpp \
58 ../common/framecmn.cpp \
59 ../common/stream.cpp \
60 ../common/datstrm.cpp \
61 ../common/wfstream.cpp \
62 ../common/mstream.cpp \
63 ../common/zstream.cpp \
64 ../common/objstrm.cpp \
65 ../common/sckstrm.cpp \
66 ../common/validate.cpp \
67 ../common/valgen.cpp \
68 ../common/valtext.cpp \
69 ../common/variant.cpp \
70 ../common/wxexpr.cpp \
71 ../common/wxchar.cpp \
72 ../common/socket.cpp \
73 ../common/sckaddr.cpp \
74 ../common/sckint.cpp \
75 ../common/sckipc.cpp \
76 ../common/protocol.cpp \
77 ../common/ftp.cpp \
78 ../common/http.cpp \
79 ../common/url.cpp \
80 ../common/tokenzr.cpp \
81 \
82 ../unix/threadpsx.cpp \
83 ../unix/utilsunx.cpp \
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 \
95 control.cpp \
96 combobox.cpp \
97 cursor.cpp \
98 data.cpp \
99 dataobj.cpp \
100 dc.cpp \
101 dcclient.cpp \
102 dcmemory.cpp \
103 dcscreen.cpp \
104 dialog.cpp \
105 dnd.cpp \
106 filedlg.cpp \
107 font.cpp \
108 frame.cpp \
109 gauge.cpp \
110 gdiobj.cpp \
111 icon.cpp \
112 listbox.cpp \
113 joystick.cpp \
114 main.cpp \
115 mdi.cpp \
116 menu.cpp \
117 menuitem.cpp \
118 minifram.cpp \
119 msgdlg.cpp \
120 palette.cpp \
121 pen.cpp \
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 \
134 timer.cpp \
135 toolbar.cpp \
136 utils.cpp \
137 wave.cpp \
138 window.cpp \
139 \
140 ../generic/choicdgg.cpp \
141 ../generic/colrdlgg.cpp \
142 ../generic/dirdlgg.cpp \
143 ../generic/dcpsg.cpp \
144 ../generic/fontdlgg.cpp \
145 ../generic/gridg.cpp \
146 ../generic/helphtml.cpp \
147 ../generic/helpext.cpp \
148 ../generic/imaglist.cpp \
149 ../generic/listctrl.cpp \
150 ../generic/laywin.cpp \
151 ../generic/msgdlgg.cpp \
152 ../generic/notebook.cpp \
153 ../generic/panelg.cpp \
154 ../generic/printps.cpp \
155 ../generic/prntdlgg.cpp \
156 ../generic/prop.cpp \
157 ../generic/propform.cpp \
158 ../generic/proplist.cpp \
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
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
173
174 LIB_C_SRC=\
175 \
176 ../common/y_tab.c \
177 ../common/extended.c
178
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)
182 EXTRA_C_SRC=\
183 xmcombo/xmcombo.c
184
185 EXTRA_CPP_SRC=
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
194
195 all: $(WXLIB) png zlib
196
197 # Define library objects
198 OBJECTS=\
199 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
200
201 $(WXLIB) : $(OBJECTS)
202 ar $(AROPTIONS) $@ $(OBJECTS)
203 $(RANLIB) $@
204
205 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
206 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
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
212 $(LEX) ../common/lexer.l
213 sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
214 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
215 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
216 /bin/rm -f lex.yy.c
217
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:
225 # $(LEX) ../common/lexer.l
226
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
233 combobox/combobox.o: combobox/combobox.c
234 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
235
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
243 rm -f $(OBJECTS) $(WXLIB)
244
245 cleanzlib:
246 cd ../zlib; make -f makefile.unx cleanmotif
247
248 cleanpng:
249 cd ../png; make -f makefile.unx cleanmotif
250