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