]> git.saurik.com Git - wxWidgets.git/blame - src/motif/makefile.unx
Changes to WXDLLEXPORT keyword position for VC++ 6.0; changed
[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 \
33 ../common/layout.cpp \
34 ../common/list.cpp \
35 ../common/log.cpp \
36 ../common/matrix.cpp \
37 ../common/memory.cpp \
38 ../common/module.cpp \
39 ../common/object.cpp \
40 ../common/odbc.cpp \
41 ../common/postscrp.cpp \
42 ../common/prntbase.cpp \
43 ../common/resource.cpp \
44 ../common/serbase.cpp \
45 ../common/string.cpp \
46 ../common/textfile.cpp \
47 ../common/tbarbase.cpp \
48 ../common/tbarsmpl.cpp \
49 ../common/timercmn.cpp \
50 ../common/utilscmn.cpp \
51 ../common/wincmn.cpp \
52 ../common/framecmn.cpp \
53 ../common/stream.cpp \
54 ../common/datstrm.cpp \
25331334 55 ../common/wfstream.cpp \
08ee50db
JS
56 ../common/mstream.cpp \
57 ../common/zstream.cpp \
58 ../common/objstrm.cpp \
59 ../common/sckstrm.cpp \
60 ../common/validate.cpp \
61 ../common/valtext.cpp \
62 ../common/variant.cpp \
63 ../common/wxexpr.cpp \
64 ../common/socket.cpp \
65 ../common/sckaddr.cpp \
66 ../common/sckipc.cpp \
67 ../common/protocol.cpp \
68 ../common/ftp.cpp \
69 ../common/http.cpp \
70 ../common/url.cpp \
71 ../common/tokenzr.cpp \
72\
73 accel.cpp \
74 app.cpp \
75 bitmap.cpp \
76 bmpbuttn.cpp \
77 brush.cpp \
78 button.cpp \
79 checkbox.cpp \
80 choice.cpp \
81 clipbrd.cpp \
82 colour.cpp \
83 colordlg.cpp \
84 control.cpp \
85 combobox.cpp \
86 cursor.cpp \
87 data.cpp \
88 dc.cpp \
89 dcclient.cpp \
90 dcmemory.cpp \
91 dcscreen.cpp \
92 dialog.cpp \
93 dirdlg.cpp \
94 dnd.cpp \
95 filedlg.cpp \
96 font.cpp \
97 fontdlg.cpp \
98 frame.cpp \
99 gauge.cpp \
100 gdiobj.cpp \
101 helpxxxx.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 notebook.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 \
0d57be45 130 toolbar.cpp \
08ee50db
JS
131 utils.cpp \
132 utilsexc.cpp \
133 wave.cpp \
134 window.cpp \
135\
136 ../generic/choicdgg.cpp \
137 ../generic/colrdlgg.cpp \
138 ../generic/fontdlgg.cpp \
139 ../generic/gridg.cpp \
55acd85e 140 ../generic/helpext.cpp \
08ee50db
JS
141 ../generic/imaglist.cpp \
142 ../generic/listctrl.cpp \
143 ../generic/laywin.cpp \
144 ../generic/msgdlgg.cpp \
145 ../generic/panelg.cpp \
146 ../generic/printps.cpp \
147 ../generic/prntdlgg.cpp \
148 ../generic/sashwin.cpp \
149 ../generic/scrolwin.cpp \
150 ../generic/splitter.cpp \
151 ../generic/statusbr.cpp \
152 ../generic/tabg.cpp \
153 ../generic/textdlgg.cpp \
154 ../generic/treectrl.cpp
155
156# If you're not using the generic ones, you
157# may wish to define platform-specific ones
158# treectrl.cpp \
159# listctrl.cpp \
160# imaglist.cpp \
161# statusbr.cpp \
3dd4e4e0
JS
162
163ZLIB_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
08ee50db
JS
169
170LIB_C_SRC=\
171\
172 ../common/y_tab.c \
173 ../common/extended.c
174
3dd4e4e0
JS
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)
89c7e962 178EXTRA_C_SRC=\
3dd4e4e0 179 xmcombo/xmcombo.c # $(ZLIB_SRC)
8704bf74
JS
180
181EXTRA_CPP_SRC=\
182 mdi/lib/XsComponent.C\
183 mdi/lib/XsMDICanvas.C\
184 mdi/lib/XsMDIWindow.C\
185 mdi/lib/XsMotifWindow.C\
186 mdi/lib/XsMoveOutline.C\
187 mdi/lib/XsOutline.C\
188 mdi/lib/XsResizeOutline.C
89c7e962 189
08ee50db
JS
190all: $(WXLIB)
191
192# Define library objects
193OBJECTS=\
8704bf74 194 $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) $(EXTRA_C_SRC:.c=.o) $(EXTRA_CPP_SRC:.C=.o)
08ee50db
JS
195
196$(WXLIB) : $(OBJECTS)
197 ar $(AROPTIONS) $@ $(OBJECTS)
198 $(RANLIB) $@
199
200../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c
f57fe24c 201 $(CCLEX) -c $(CFLAGS) -DNO_CONFIGURE -o $@ ../common/y_tab.c
08ee50db
JS
202
203# Replace lex with flex if you run into compilation
204# problems with lex_yy.c. See also note about LEX_SCANNER
205# above.
206../common/lex_yy.c: ../common/lexer.l
207 $(LEX) -o../common/lex.yy.c ../common/lexer.l
208 sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \
209 sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
210 sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
211 /bin/rm -f ../common/lex.yy.c
212
213# Replace yacc with bison if you run into compilation
214# problems with y_tab.c.
215../common/y_tab.c: ../common/parser.y
216 $(YACC) ../common/parser.y
217 mv y.tab.c ../common/y_tab.c
218
89c7e962
JS
219combobox/combobox.o: combobox/combobox.c
220 $(CCC) -c $(CFLAGS) -o $@ combobox/combobox.c
08ee50db
JS
221
222clean:
223 rm -f $(OBJECTS) $(WXLIB)
224