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