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