]> git.saurik.com Git - wxWidgets.git/blob - src/motif/makefile.unx
added an error message if a bitmap can't be addedto the image list
[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 dc.cpp \
91 dcclient.cpp \
92 dcmemory.cpp \
93 dcscreen.cpp \
94 dialog.cpp \
95 dnd.cpp \
96 filedlg.cpp \
97 font.cpp \
98 fontdlg.cpp \
99 frame.cpp \
100 gauge.cpp \
101 gdiobj.cpp \
102 icon.cpp \
103 listbox.cpp \
104 joystick.cpp \
105 main.cpp \
106 mdi.cpp \
107 menu.cpp \
108 menuitem.cpp \
109 metafile.cpp \
110 minifram.cpp \
111 msgdlg.cpp \
112 palette.cpp \
113 pen.cpp \
114 print.cpp \
115 radiobox.cpp \
116 radiobut.cpp \
117 region.cpp \
118 scrolbar.cpp \
119 settings.cpp \
120 slider.cpp \
121 spinbutt.cpp \
122 statbox.cpp \
123 statbmp.cpp \
124 stattext.cpp \
125 taskbar.cpp \
126 textctrl.cpp \
127 thread.cpp \
128 timer.cpp \
129 toolbar.cpp \
130 utils.cpp \
131 utilsexc.cpp \
132 wave.cpp \
133 window.cpp \
134 \
135 ../generic/choicdgg.cpp \
136 ../generic/colrdlgg.cpp \
137 ../generic/dirdlgg.cpp \
138 ../generic/fontdlgg.cpp \
139 ../generic/gridg.cpp \
140 ../generic/helpext.cpp \
141 ../generic/imaglist.cpp \
142 ../generic/listctrl.cpp \
143 ../generic/laywin.cpp \
144 ../generic/msgdlgg.cpp \
145 ../generic/notebook.cpp \
146 ../generic/panelg.cpp \
147 ../generic/printps.cpp \
148 ../generic/prntdlgg.cpp \
149 ../generic/prop.cpp \
150 ../generic/propform.cpp \
151 ../generic/proplist.cpp \
152 ../generic/sashwin.cpp \
153 ../generic/scrolwin.cpp \
154 ../generic/splitter.cpp \
155 ../generic/statusbr.cpp \
156 ../generic/tabg.cpp \
157 ../generic/textdlgg.cpp \
158 ../generic/treectrl.cpp
159
160 # If you're not using the generic ones, you
161 # may wish to define platform-specific ones
162 # dirdlg.cpp \
163 # treectrl.cpp \
164 # listctrl.cpp \
165 # imaglist.cpp \
166 # statusbr.cpp \
167
168 ZLIB_SRC=\
169 ../zlib/adler32.c ../zlib/deflate.c ../zlib/infblock.c\
170 ../zlib/inflate.c ../zlib/zutil.c ../zlib/compress.c \
171 ../zlib/infcodes.c ../zlib/inftrees.c ../zlib/trees.c \
172 ../zlib/crc32.c ../zlib/gzio.c ../zlib/inffast.c\
173 ../zlib/infutil.c ../zlib/uncompr.c
174
175 LIB_C_SRC=\
176 \
177 ../common/y_tab.c \
178 ../common/extended.c
179
180 # Only need to compile zlib files if we don't
181 # already have a zlib library installed on our system
182 # (or we wish to statically link them for some reason)
183 EXTRA_C_SRC=\
184 xmcombo/xmcombo.c
185
186 EXTRA_CPP_SRC=\
187
188 # mdi/lib/XsComponent.C\
189 # mdi/lib/XsMDICanvas.C\
190 # mdi/lib/XsMDIWindow.C\
191 # mdi/lib/XsMotifWindow.C\
192 # mdi/lib/XsMoveOutline.C\
193 # mdi/lib/XsOutline.C\
194 # mdi/lib/XsResizeOutline.C
195
196 all: $(WXLIB) png zlib
197
198 # Define library objects
199 OBJECTS=\
200 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
201
202 $(WXLIB) : $(OBJECTS)
203 ar $(AROPTIONS) $@ $(OBJECTS)
204 $(RANLIB) $@
205
206 ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
207 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
208
209 # Replace lex with flex if you run into compilation
210 # problems with lex_yy.c. See also note about LEX_SCANNER
211 # above.
212 ../common/lex_yy.c: ../common/lexer.l
213 $(LEX) -o../common/lex.yy.c ../common/lexer.l
214 sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \
215 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
216 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
217 /bin/rm -f ../common/lex.yy.c
218
219 # Replace yacc with bison if you run into compilation
220 # problems with y_tab.c.
221 ../common/y_tab.c: ../common/parser.y
222 $(YACC) ../common/parser.y
223 mv y.tab.c ../common/y_tab.c
224
225 combobox/combobox.o: combobox/combobox.c
226 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
227
228 zlib:
229 cd ../zlib; make -f makefile.unx motif
230
231 png:
232 cd ../png; make -f makefile.unx motif
233
234 clean: cleanzlib cleanpng
235 rm -f $(OBJECTS) $(WXLIB)
236
237 cleanzlib:
238 cd ../zlib; make -f makefile.unx cleanmotif
239
240 cleanpng:
241 cd ../png; make -f makefile.unx cleanmotif
242