]> git.saurik.com Git - wxWidgets.git/blame - src/motif/makefile.unx
Oh well, I'll just stuff in the rest of the Unicode changes I have made
[wxWidgets.git] / src / motif / makefile.unx
CommitLineData
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
11EXTRACFLAGS=-DLEX_SCANNER
12
13include ../make.env
14
15LIB_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 \
70 ../common/socket.cpp \
71 ../common/sckaddr.cpp \
72 ../common/sckipc.cpp \
73 ../common/protocol.cpp \
74 ../common/ftp.cpp \
75 ../common/http.cpp \
76 ../common/url.cpp \
77 ../common/tokenzr.cpp \
7bcb11d3
JS
78\
79 ../unix/threadpsx.cpp \
80 ../unix/utilsunx.cpp \
08ee50db
JS
81\
82 accel.cpp \
83 app.cpp \
84 bitmap.cpp \
85 bmpbuttn.cpp \
86 brush.cpp \
87 button.cpp \
88 checkbox.cpp \
89 choice.cpp \
90 clipbrd.cpp \
91 colour.cpp \
08ee50db
JS
92 control.cpp \
93 combobox.cpp \
94 cursor.cpp \
95 data.cpp \
2d120f83 96 dataobj.cpp \
08ee50db
JS
97 dc.cpp \
98 dcclient.cpp \
99 dcmemory.cpp \
100 dcscreen.cpp \
101 dialog.cpp \
08ee50db
JS
102 dnd.cpp \
103 filedlg.cpp \
104 font.cpp \
08ee50db
JS
105 frame.cpp \
106 gauge.cpp \
107 gdiobj.cpp \
08ee50db
JS
108 icon.cpp \
109 listbox.cpp \
110 joystick.cpp \
111 main.cpp \
112 mdi.cpp \
113 menu.cpp \
114 menuitem.cpp \
08ee50db
JS
115 minifram.cpp \
116 msgdlg.cpp \
08ee50db
JS
117 palette.cpp \
118 pen.cpp \
08ee50db
JS
119 radiobox.cpp \
120 radiobut.cpp \
121 region.cpp \
122 scrolbar.cpp \
123 settings.cpp \
124 slider.cpp \
125 spinbutt.cpp \
126 statbox.cpp \
127 statbmp.cpp \
128 stattext.cpp \
129 taskbar.cpp \
130 textctrl.cpp \
08ee50db 131 timer.cpp \
0d57be45 132 toolbar.cpp \
08ee50db 133 utils.cpp \
08ee50db
JS
134 wave.cpp \
135 window.cpp \
136\
137 ../generic/choicdgg.cpp \
138 ../generic/colrdlgg.cpp \
94b49b93 139 ../generic/dirdlgg.cpp \
bf38cbff 140 ../generic/dcpsg.cpp \
08ee50db
JS
141 ../generic/fontdlgg.cpp \
142 ../generic/gridg.cpp \
f3a65071 143 ../generic/helphtml.cpp \
55acd85e 144 ../generic/helpext.cpp \
08ee50db
JS
145 ../generic/imaglist.cpp \
146 ../generic/listctrl.cpp \
147 ../generic/laywin.cpp \
148 ../generic/msgdlgg.cpp \
793f619f 149 ../generic/notebook.cpp \
08ee50db
JS
150 ../generic/panelg.cpp \
151 ../generic/printps.cpp \
152 ../generic/prntdlgg.cpp \
e3a43801
JS
153 ../generic/prop.cpp \
154 ../generic/propform.cpp \
155 ../generic/proplist.cpp \
08ee50db
JS
156 ../generic/sashwin.cpp \
157 ../generic/scrolwin.cpp \
158 ../generic/splitter.cpp \
159 ../generic/statusbr.cpp \
160 ../generic/tabg.cpp \
161 ../generic/textdlgg.cpp \
162 ../generic/treectrl.cpp
163
3dd4e4e0
JS
164ZLIB_SRC=\
165 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
166 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
167 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
168 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
169 ../zlib/infutil.c ../zlib/uncompr.c
08ee50db
JS
170
171LIB_C_SRC=\
172\
173 ../common/y_tab.c \
174 ../common/extended.c
175
3dd4e4e0
JS
176# Only need to compile zlib files if we don't
177# already have a zlib library installed on our system
178# (or we wish to statically link them for some reason)
89c7e962 179EXTRA_C_SRC=\
ee4c6942 180 xmcombo/xmcombo.c
8704bf74 181
777553d2 182EXTRA_CPP_SRC=
621793f4
JS
183
184# mdi/lib/XsComponent.C\
185# mdi/lib/XsMDICanvas.C\
186# mdi/lib/XsMDIWindow.C\
187# mdi/lib/XsMotifWindow.C\
188# mdi/lib/XsMoveOutline.C\
189# mdi/lib/XsOutline.C\
190# mdi/lib/XsResizeOutline.C
89c7e962 191
ee4c6942 192all: $(WXLIB) png zlib
08ee50db
JS
193
194# Define library objects
195OBJECTS=\
8704bf74 196 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
08ee50db
JS
197
198$(WXLIB) : $(OBJECTS)
199 ar $(AROPTIONS) $@ $(OBJECTS)
200 $(RANLIB) $@
201
202../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
f57fe24c 203 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
08ee50db
JS
204
205# Replace lex with flex if you run into compilation
206# problems with lex_yy.c. See also note about LEX_SCANNER
207# above.
208../common/lex_yy.c: ../common/lexer.l
a91b47e8
JS
209 $(LEX) ../common/lexer.l
210 sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
08ee50db
JS
211 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
212 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
a91b47e8 213 /bin/rm -f lex.yy.c
08ee50db 214
a91b47e8
JS
215# The above should work with both lex and flex, but just in case not,
216# here are alternative syntaxes.
217#
218# Flex-style syntax:
219# $(LEX) -olex.yy.c ../common/lexer.l
220
221# Lex-style syntax:
750b78ba
JS
222# $(LEX) ../common/lexer.l
223
08ee50db
JS
224# Replace yacc with bison if you run into compilation
225# problems with y_tab.c.
226../common/y_tab.c: ../common/parser.y
227 $(YACC) ../common/parser.y
228 mv y.tab.c ../common/y_tab.c
229
89c7e962
JS
230combobox/combobox.o: combobox/combobox.c
231 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
08ee50db 232
ee4c6942
JS
233zlib:
234 cd ../zlib; make -f makefile.unx motif
235
236png:
237 cd ../png; make -f makefile.unx motif
238
239clean: cleanzlib cleanpng
08ee50db
JS
240 rm -f $(OBJECTS) $(WXLIB)
241
ee4c6942
JS
242cleanzlib:
243 cd ../zlib; make -f makefile.unx cleanmotif
244
245cleanpng:
246 cd ../png; make -f makefile.unx cleanmotif
247