]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # File: makefile.unx | |
3 | # Author: Julian Smart | |
4 | # Created: 1998 | |
5 | # Updated: | |
6 | # Copyright: (c) 1998 | |
7 | # | |
8 | # | |
9 | # Makefile for wxStubs 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/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/prntbase.cpp \ | |
42 | ../common/resource.cpp \ | |
43 | ../common/serbase.cpp \ | |
44 | ../common/string.cpp \ | |
45 | ../common/textfile.cpp \ | |
46 | ../common/tbarbase.cpp \ | |
47 | ../common/tbarsmpl.cpp \ | |
48 | ../common/timercmn.cpp \ | |
49 | ../common/utilscmn.cpp \ | |
50 | ../common/wincmn.cpp \ | |
51 | ../common/framecmn.cpp \ | |
52 | ../common/stream.cpp \ | |
53 | ../common/datstrm.cpp \ | |
54 | ../common/wfstream.cpp \ | |
55 | ../common/mstream.cpp \ | |
56 | ../common/zstream.cpp \ | |
57 | ../common/objstrm.cpp \ | |
58 | ../common/sckstrm.cpp \ | |
59 | ../common/validate.cpp \ | |
60 | ../common/valgen.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 | dnd.cpp \ | |
94 | filedlg.cpp \ | |
95 | font.cpp \ | |
96 | fontdlg.cpp \ | |
97 | frame.cpp \ | |
98 | gauge.cpp \ | |
99 | gdiobj.cpp \ | |
100 | helpxxxx.cpp \ | |
101 | icon.cpp \ | |
102 | listbox.cpp \ | |
103 | joystick.cpp \ | |
104 | main.cpp \ | |
105 | mdi.cpp \ | |
106 | menu.cpp \ | |
107 | menuitem.cpp \ | |
108 | metafile.cpp \ | |
109 | minifram.cpp \ | |
110 | msgdlg.cpp \ | |
111 | notebook.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/dcpsg.cpp \ | |
138 | ../generic/dirdlgg.cpp \ | |
139 | ../generic/fontdlgg.cpp \ | |
140 | ../generic/gridg.cpp \ | |
141 | ../generic/imaglist.cpp \ | |
142 | ../generic/listctrl.cpp \ | |
143 | ../generic/laywin.cpp \ | |
144 | ../generic/msgdlgg.cpp \ | |
145 | ../generic/panelg.cpp \ | |
146 | ../generic/prop.cpp \ | |
147 | ../generic/proplist.cpp \ | |
148 | ../generic/propform.cpp \ | |
149 | ../generic/printps.cpp \ | |
150 | ../generic/prntdlgg.cpp \ | |
151 | ../generic/sashwin.cpp \ | |
152 | ../generic/scrolwin.cpp \ | |
153 | ../generic/splitter.cpp \ | |
154 | ../generic/statusbr.cpp \ | |
155 | ../generic/tabg.cpp \ | |
156 | ../generic/textdlgg.cpp \ | |
157 | ../generic/treectrl.cpp | |
158 | ||
159 | # If you're not using the generic ones, you | |
160 | # may wish to define platform-specific ones | |
161 | # dirdlg.cpp \ | |
162 | # treectrl.cpp \ | |
163 | # listctrl.cpp \ | |
164 | # imaglist.cpp \ | |
165 | # statusbr.cpp \ | |
166 | ||
167 | LIB_C_SRC=\ | |
168 | \ | |
169 | ../common/y_tab.c \ | |
170 | ../common/extended.c | |
171 | ||
172 | all: $(WXLIB) | |
173 | ||
174 | # Define library objects | |
175 | OBJECTS=\ | |
176 | $(LIB_CPP_SRC:.cpp=.o) $(LIB_C_SRC:.c=.o) | |
177 | ||
178 | $(WXLIB) : $(OBJECTS) | |
179 | ar $(AROPTIONS) $@ $(OBJECTS) | |
180 | $(RANLIB) $@ | |
181 | ||
182 | ../common/y_tab.$(OBJSUFF): ../common/y_tab.c ../common/lex_yy.c | |
183 | $(CCLEX) -c $(CFLAGS) -o $@ ../common/y_tab.c | |
184 | ||
185 | # Replace lex with flex if you run into compilation | |
186 | # problems with lex_yy.c. See also note about LEX_SCANNER | |
187 | # above. | |
188 | ../common/lex_yy.c: ../common/lexer.l | |
189 | $(LEX) ../common/lexer.l | |
190 | sed -e "s/BUFSIZ/5000/g" < ../common/lex.yy.c | \ | |
191 | sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \ | |
192 | sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c | |
193 | /bin/rm -f ../common/lex.yy.c | |
194 | ||
195 | # Replace yacc with bison if you run into compilation | |
196 | # problems with y_tab.c. | |
197 | ../common/y_tab.c: ../common/parser.y | |
198 | $(YACC) ../common/parser.y | |
199 | mv y.tab.c ../common/y_tab.c | |
200 | ||
201 | ||
202 | clean: | |
203 | rm -f $(OBJECTS) $(WXLIB) | |
204 |