]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################## | |
2 | # Microwindows template Makefile | |
3 | # Copyright (c) 2000 Martin Jolicoeur, Greg Haerr | |
4 | ############################################################################## | |
5 | ||
6 | TOP=/home/julians/microwindows/microwindows-0.89pre8/src | |
7 | ||
8 | CONFIG = $(TOP)/config | |
9 | WXDIR = ../.. | |
10 | OBJSUFF = o | |
11 | SRCSUFF = cpp | |
12 | WXLIB=$(WXDIR)/lib/libwx.a | |
13 | AROPTIONS = ruv | |
14 | RANLIB = ranlib | |
15 | RM = rm -f | |
16 | ||
17 | GENDIR = $(WXDIR)/src/generic | |
18 | COMMDIR = $(WXDIR)/src/common | |
19 | HTMLDIR = $(WXDIR)/src/html | |
20 | ZLIBDIR = $(WXDIR)/src/zlib | |
21 | PNGDIR = $(WXDIR)/src/png | |
22 | JPEGDIR = $(WXDIR)/src/jpeg | |
23 | TIFFDIR = $(WXDIR)/src/tiff | |
24 | OLEDIR = $(WXDIR)/src/msw/ole | |
25 | MICROWINDIR = $(WXDIR)/src/msw | |
26 | UNIXDIR = $(WXDIR)/src/unix | |
27 | UNIVDIR = $(WXDIR)/src/univ | |
28 | ||
29 | ZLIBLIB = $(WXDIR)/lib/libzlib.a | |
30 | PNGLIB = $(WXDIR)/lib/libpng.a | |
31 | JPEGLIB = $(WXDIR)/lib/libjpeg.a | |
32 | TIFFLIB = $(WXDIR)/lib/libtiff.a | |
33 | ||
34 | GENERICOBJS = \ | |
35 | $(GENDIR)/accel.$(OBJSUFF) \ | |
36 | $(GENDIR)/busyinfo.$(OBJSUFF) \ | |
37 | $(GENDIR)/calctrl.$(OBJSUFF) \ | |
38 | $(GENDIR)/choicdgg.$(OBJSUFF) \ | |
39 | $(GENDIR)/colrdlgg.$(OBJSUFF) \ | |
40 | $(GENDIR)/dirctrlg.$(OBJSUFF) \ | |
41 | $(GENDIR)/dragimgg.$(OBJSUFF) \ | |
42 | $(GENDIR)/fontdlgg.$(OBJSUFF) \ | |
43 | $(GENDIR)/grid.$(OBJSUFF) \ | |
44 | $(GENDIR)/gridctrl.$(OBJSUFF) \ | |
45 | $(GENDIR)/gridsel.$(OBJSUFF) \ | |
46 | $(GENDIR)/imaglist.$(OBJSUFF) \ | |
47 | $(GENDIR)/laywin.$(OBJSUFF) \ | |
48 | $(GENDIR)/listctrl.$(OBJSUFF) \ | |
49 | $(GENDIR)/logg.$(OBJSUFF) \ | |
50 | $(GENDIR)/msgdlgg.$(OBJSUFF) \ | |
51 | $(GENDIR)/numdlgg.$(OBJSUFF) \ | |
52 | $(GENDIR)/panelg.$(OBJSUFF) \ | |
53 | $(GENDIR)/progdlgg.$(OBJSUFF) \ | |
54 | $(GENDIR)/sashwin.$(OBJSUFF) \ | |
55 | $(GENDIR)/scrlwing.$(OBJSUFF) \ | |
56 | $(GENDIR)/spinctlg.$(OBJSUFF) \ | |
57 | $(GENDIR)/splash.$(OBJSUFF) \ | |
58 | $(GENDIR)/splitter.$(OBJSUFF) \ | |
59 | $(GENDIR)/tabg.$(OBJSUFF) \ | |
60 | $(GENDIR)/tbarsmpl.$(OBJSUFF) \ | |
61 | $(GENDIR)/textdlgg.$(OBJSUFF) \ | |
62 | $(GENDIR)/tipdlg.$(OBJSUFF) \ | |
63 | $(GENDIR)/tipwin.$(OBJSUFF) \ | |
64 | $(GENDIR)/treectlg.$(OBJSUFF) \ | |
65 | $(GENDIR)/treelay.$(OBJSUFF) \ | |
66 | $(GENDIR)/wizard.$(OBJSUFF) | |
67 | ||
68 | COMMONOBJS = \ | |
69 | $(COMMDIR)/appcmn.$(OBJSUFF) \ | |
70 | $(COMMDIR)/choiccmn.$(OBJSUFF) \ | |
71 | $(COMMDIR)/clntdata.$(OBJSUFF) \ | |
72 | $(COMMDIR)/clipcmn.$(OBJSUFF) \ | |
73 | $(COMMDIR)/cmdline.$(OBJSUFF) \ | |
74 | $(COMMDIR)/cmdproc.$(OBJSUFF) \ | |
75 | $(COMMDIR)/cmndata.$(OBJSUFF) \ | |
76 | $(COMMDIR)/config.$(OBJSUFF) \ | |
77 | $(COMMDIR)/containr.$(OBJSUFF) \ | |
78 | $(COMMDIR)/cshelp.$(OBJSUFF) \ | |
79 | $(COMMDIR)/ctrlcmn.$(OBJSUFF) \ | |
80 | $(COMMDIR)/ctrlsub.$(OBJSUFF) \ | |
81 | $(COMMDIR)/datetime.$(OBJSUFF) \ | |
82 | $(COMMDIR)/datstrm.$(OBJSUFF) \ | |
83 | $(COMMDIR)/dcbase.$(OBJSUFF) \ | |
84 | $(COMMDIR)/dircmn.$(OBJSUFF) \ | |
85 | $(COMMDIR)/dlgcmn.$(OBJSUFF) \ | |
86 | $(COMMDIR)/dobjcmn.$(OBJSUFF) \ | |
87 | $(COMMDIR)/docview.$(OBJSUFF) \ | |
88 | $(COMMDIR)/dynarray.$(OBJSUFF) \ | |
89 | $(COMMDIR)/dynlib.$(OBJSUFF) \ | |
90 | $(COMMDIR)/effects.$(OBJSUFF) \ | |
91 | $(COMMDIR)/encconv.$(OBJSUFF) \ | |
92 | $(COMMDIR)/event.$(OBJSUFF) \ | |
93 | $(COMMDIR)/extended.$(OBJSUFF) \ | |
94 | $(COMMDIR)/ffile.$(OBJSUFF) \ | |
95 | $(COMMDIR)/file.$(OBJSUFF) \ | |
96 | $(COMMDIR)/fileconf.$(OBJSUFF) \ | |
97 | $(COMMDIR)/filefn.$(OBJSUFF) \ | |
98 | $(COMMDIR)/filename.$(OBJSUFF) \ | |
99 | $(COMMDIR)/filesys.$(OBJSUFF) \ | |
100 | $(COMMDIR)/fontcmn.$(OBJSUFF) \ | |
101 | $(COMMDIR)/fontmap.$(OBJSUFF) \ | |
102 | $(COMMDIR)/framecmn.$(OBJSUFF) \ | |
103 | $(COMMDIR)/gaugecmn.$(OBJSUFF) \ | |
104 | $(COMMDIR)/gdicmn.$(OBJSUFF) \ | |
105 | $(COMMDIR)/geometry.$(OBJSUFF) \ | |
106 | $(COMMDIR)/gifdecod.$(OBJSUFF) \ | |
107 | $(COMMDIR)/hash.$(OBJSUFF) \ | |
108 | $(COMMDIR)/helpbase.$(OBJSUFF) \ | |
109 | $(COMMDIR)/imagall.$(OBJSUFF) \ | |
110 | $(COMMDIR)/imagbmp.$(OBJSUFF) \ | |
111 | $(COMMDIR)/image.$(OBJSUFF) \ | |
112 | $(COMMDIR)/imaggif.$(OBJSUFF) \ | |
113 | $(COMMDIR)/imagjpeg.$(OBJSUFF) \ | |
114 | $(COMMDIR)/imagpcx.$(OBJSUFF) \ | |
115 | $(COMMDIR)/imagpng.$(OBJSUFF) \ | |
116 | $(COMMDIR)/imagpnm.$(OBJSUFF) \ | |
117 | $(COMMDIR)/imagtiff.$(OBJSUFF) \ | |
118 | $(COMMDIR)/imagxpm.$(OBJSUFF) \ | |
119 | $(COMMDIR)/intl.$(OBJSUFF) \ | |
120 | $(COMMDIR)/ipcbase.$(OBJSUFF) \ | |
121 | $(COMMDIR)/layout.$(OBJSUFF) \ | |
122 | $(COMMDIR)/lboxcmn.$(OBJSUFF) \ | |
123 | $(COMMDIR)/list.$(OBJSUFF) \ | |
124 | $(COMMDIR)/log.$(OBJSUFF) \ | |
125 | $(COMMDIR)/longlong.$(OBJSUFF) \ | |
126 | $(COMMDIR)/matrix.$(OBJSUFF) \ | |
127 | $(COMMDIR)/memory.$(OBJSUFF) \ | |
128 | $(COMMDIR)/menucmn.$(OBJSUFF) \ | |
129 | $(COMMDIR)/mimecmn.$(OBJSUFF) \ | |
130 | $(COMMDIR)/module.$(OBJSUFF) \ | |
131 | $(COMMDIR)/mstream.$(OBJSUFF) \ | |
132 | $(COMMDIR)/nbkbase.$(OBJSUFF) \ | |
133 | $(COMMDIR)/object.$(OBJSUFF) \ | |
134 | $(COMMDIR)/objstrm.$(OBJSUFF) \ | |
135 | $(COMMDIR)/paper.$(OBJSUFF) \ | |
136 | $(COMMDIR)/popupcmn.$(OBJSUFF) \ | |
137 | $(COMMDIR)/prntbase.$(OBJSUFF) \ | |
138 | $(COMMDIR)/process.$(OBJSUFF) \ | |
139 | $(COMMDIR)/quantize.$(OBJSUFF) \ | |
140 | $(COMMDIR)/radiocmn.$(OBJSUFF) \ | |
141 | $(COMMDIR)/resource.$(OBJSUFF) \ | |
142 | $(COMMDIR)/sizer.$(OBJSUFF) \ | |
143 | $(COMMDIR)/statbar.$(OBJSUFF) \ | |
144 | $(COMMDIR)/strconv.$(OBJSUFF) \ | |
145 | $(COMMDIR)/stream.$(OBJSUFF) \ | |
146 | $(COMMDIR)/string.$(OBJSUFF) \ | |
147 | $(COMMDIR)/sysopt.$(OBJSUFF) \ | |
148 | $(COMMDIR)/tbarbase.$(OBJSUFF) \ | |
149 | $(COMMDIR)/textbuf.$(OBJSUFF) \ | |
150 | $(COMMDIR)/textcmn.$(OBJSUFF) \ | |
151 | $(COMMDIR)/textfile.$(OBJSUFF) \ | |
152 | $(COMMDIR)/timercmn.$(OBJSUFF) \ | |
153 | $(COMMDIR)/tokenzr.$(OBJSUFF) \ | |
154 | $(COMMDIR)/toplvcmn.$(OBJSUFF) \ | |
155 | $(COMMDIR)/treebase.$(OBJSUFF) \ | |
156 | $(COMMDIR)/txtstrm.$(OBJSUFF) \ | |
157 | $(COMMDIR)/utilscmn.$(OBJSUFF) \ | |
158 | $(UNIXDIR)/utilsunx.$(OBJSUFF) \ | |
159 | $(COMMDIR)/valgen.$(OBJSUFF) \ | |
160 | $(COMMDIR)/validate.$(OBJSUFF) \ | |
161 | $(COMMDIR)/valtext.$(OBJSUFF) \ | |
162 | $(COMMDIR)/variant.$(OBJSUFF) \ | |
163 | $(COMMDIR)/wfstream.$(OBJSUFF) \ | |
164 | $(COMMDIR)/wincmn.$(OBJSUFF) \ | |
165 | $(COMMDIR)/wxchar.$(OBJSUFF) \ | |
166 | $(COMMDIR)/xpmdecod.$(OBJSUFF) | |
167 | ||
168 | HTMLOBJS = \ | |
169 | $(HTMLDIR)/helpctrl.$(OBJSUFF) \ | |
170 | $(HTMLDIR)/helpdata.$(OBJSUFF) \ | |
171 | $(HTMLDIR)/helpfrm.$(OBJSUFF) \ | |
172 | $(HTMLDIR)/htmlcell.$(OBJSUFF) \ | |
173 | $(HTMLDIR)/htmlfilt.$(OBJSUFF) \ | |
174 | $(HTMLDIR)/htmlpars.$(OBJSUFF) \ | |
175 | $(HTMLDIR)/htmltag.$(OBJSUFF) \ | |
176 | $(HTMLDIR)/htmlwin.$(OBJSUFF) \ | |
177 | $(HTMLDIR)/htmprint.$(OBJSUFF) \ | |
178 | $(HTMLDIR)/m_dflist.$(OBJSUFF) \ | |
179 | $(HTMLDIR)/m_fonts.$(OBJSUFF) \ | |
180 | $(HTMLDIR)/m_hline.$(OBJSUFF) \ | |
181 | $(HTMLDIR)/m_image.$(OBJSUFF) \ | |
182 | $(HTMLDIR)/m_layout.$(OBJSUFF) \ | |
183 | $(HTMLDIR)/m_links.$(OBJSUFF) \ | |
184 | $(HTMLDIR)/m_list.$(OBJSUFF) \ | |
185 | $(HTMLDIR)/m_meta.$(OBJSUFF) \ | |
186 | $(HTMLDIR)/m_pre.$(OBJSUFF) \ | |
187 | $(HTMLDIR)/m_tables.$(OBJSUFF) \ | |
188 | $(HTMLDIR)/winpars.$(OBJSUFF) | |
189 | ||
190 | MSWOBJS = \ | |
191 | $(MICROWINDIR)/app.$(OBJSUFF) \ | |
192 | $(MICROWINDIR)/bitmap.$(OBJSUFF) \ | |
193 | $(MICROWINDIR)/brush.$(OBJSUFF) \ | |
194 | $(MICROWINDIR)/caret.$(OBJSUFF) \ | |
195 | $(MICROWINDIR)/clipbrd.$(OBJSUFF) \ | |
196 | $(MICROWINDIR)/colour.$(OBJSUFF) \ | |
197 | $(MICROWINDIR)/cursor.$(OBJSUFF) \ | |
198 | $(MICROWINDIR)/data.$(OBJSUFF) \ | |
199 | $(MICROWINDIR)/dc.$(OBJSUFF) \ | |
200 | $(MICROWINDIR)/dcclient.$(OBJSUFF) \ | |
201 | $(MICROWINDIR)/dcmemory.$(OBJSUFF) \ | |
202 | $(MICROWINDIR)/dcprint.$(OBJSUFF) \ | |
203 | $(MICROWINDIR)/dcscreen.$(OBJSUFF) \ | |
204 | $(MICROWINDIR)/dde.$(OBJSUFF) \ | |
205 | $(MICROWINDIR)/dialog.$(OBJSUFF) \ | |
206 | $(MICROWINDIR)/dialup.$(OBJSUFF) \ | |
207 | $(UNIXDIR)/dir.$(OBJSUFF) \ | |
208 | $(MICROWINDIR)/evtloop.$(OBJSUFF) \ | |
209 | $(MICROWINDIR)/font.$(OBJSUFF) \ | |
210 | $(MICROWINDIR)/fontenum.$(OBJSUFF) \ | |
211 | $(MICROWINDIR)/fontutil.$(OBJSUFF) \ | |
212 | $(MICROWINDIR)/gdiimage.$(OBJSUFF) \ | |
213 | $(MICROWINDIR)/gdiobj.$(OBJSUFF) \ | |
214 | $(MICROWINDIR)/icon.$(OBJSUFF) \ | |
215 | $(MICROWINDIR)/main.$(OBJSUFF) \ | |
216 | $(MICROWINDIR)/microwin.$(OBJSUFF) \ | |
217 | $(MICROWINDIR)/palette.$(OBJSUFF) \ | |
218 | $(MICROWINDIR)/pen.$(OBJSUFF) \ | |
219 | $(MICROWINDIR)/region.$(OBJSUFF) \ | |
220 | $(MICROWINDIR)/settings.$(OBJSUFF) \ | |
221 | $(MICROWINDIR)/snglinst.$(OBJSUFF) \ | |
222 | $(MICROWINDIR)/thread.$(OBJSUFF) \ | |
223 | $(MICROWINDIR)/timer.$(OBJSUFF) \ | |
224 | $(MICROWINDIR)/toplevel.$(OBJSUFF) \ | |
225 | $(MICROWINDIR)/utils.$(OBJSUFF) \ | |
226 | $(MICROWINDIR)/window.$(OBJSUFF) \ | |
227 | $(OLEDIR)/dataobj.$(OBJSUFF) | |
228 | ||
229 | UNIVOBJS_TODO = $(UNIVDIR)/choice.$(OBJSUFF) \ | |
230 | $(UNIVDIR)/colordlg.$(OBJSUFF) \ | |
231 | ||
232 | ||
233 | UNIVOBJS = \ | |
234 | $(UNIVDIR)/bmpbuttn.$(OBJSUFF) \ | |
235 | $(UNIVDIR)/button.$(OBJSUFF) \ | |
236 | $(UNIVDIR)/checkbox.$(OBJSUFF) \ | |
237 | $(UNIVDIR)/checklst.$(OBJSUFF) \ | |
238 | $(UNIVDIR)/colschem.$(OBJSUFF) \ | |
239 | $(UNIVDIR)/combobox.$(OBJSUFF) \ | |
240 | $(UNIVDIR)/control.$(OBJSUFF) \ | |
241 | $(UNIVDIR)/framuniv.$(OBJSUFF) \ | |
242 | $(UNIVDIR)/gauge.$(OBJSUFF) \ | |
243 | $(UNIVDIR)/inphand.$(OBJSUFF) \ | |
244 | $(UNIVDIR)/inpcons.$(OBJSUFF) \ | |
245 | $(UNIVDIR)/listbox.$(OBJSUFF) \ | |
246 | $(UNIVDIR)/menu.$(OBJSUFF) \ | |
247 | $(UNIVDIR)/notebook.$(OBJSUFF) \ | |
248 | $(UNIVDIR)/radiobox.$(OBJSUFF) \ | |
249 | $(UNIVDIR)/radiobut.$(OBJSUFF) \ | |
250 | $(UNIVDIR)/renderer.$(OBJSUFF) \ | |
251 | $(UNIVDIR)/scrarrow.$(OBJSUFF) \ | |
252 | $(UNIVDIR)/scrolbar.$(OBJSUFF) \ | |
253 | $(UNIVDIR)/scrthumb.$(OBJSUFF) \ | |
254 | $(UNIVDIR)/slider.$(OBJSUFF) \ | |
255 | $(UNIVDIR)/spinbutt.$(OBJSUFF) \ | |
256 | $(UNIVDIR)/statbmp.$(OBJSUFF) \ | |
257 | $(UNIVDIR)/statbox.$(OBJSUFF) \ | |
258 | $(UNIVDIR)/statline.$(OBJSUFF) \ | |
259 | $(UNIVDIR)/stattext.$(OBJSUFF) \ | |
260 | $(UNIVDIR)/statusbr.$(OBJSUFF) \ | |
261 | $(UNIVDIR)/textctrl.$(OBJSUFF) \ | |
262 | $(UNIVDIR)/theme.$(OBJSUFF) \ | |
263 | $(UNIVDIR)/topluniv.$(OBJSUFF) \ | |
264 | $(UNIVDIR)/winuniv.$(OBJSUFF) \ | |
265 | $(UNIVDIR)/themes/gtk.$(OBJSUFF) \ | |
266 | $(UNIVDIR)/themes/win32.$(OBJSUFF) | |
267 | ||
268 | include $(CONFIG) | |
269 | ||
270 | ######################## Additional Flags section ############################ | |
271 | ||
272 | # Directories list for header files | |
273 | INCLUDEDIRS += -I$(WXDIR)/include | |
274 | # Defines for preprocessor | |
275 | DEFINES += -DMWIN -D__WXMSW__ -D__WXMICROWIN__ -D__WXUNIVERSAL__ -D__WIN32__ -D__WIN95__ -DHAVE_BOOL -DMICROWIN_TODO=1 -D__UNIX__ -DHAVE_NANOSLEEP -DMICROWIN_NOCONTROLS -D__WXDEBUG__ -DwxSIZE_T_IS_UINT -DWXWIN_OS_DESCRIPTION="\"MicroWindows\"" | |
276 | ||
277 | # Compilation flags for C files OTHER than include directories | |
278 | CFLAGS += | |
279 | # Preprocessor flags OTHER than defines | |
280 | CPPFLAGS += | |
281 | # Linking flags | |
282 | LDFLAGS += | |
283 | ||
284 | ############################# targets section ################################ | |
285 | ||
286 | # If you want to create a library with the objects files, define the name here | |
287 | LIBNAME = | |
288 | ||
289 | # If we put it below OBJS=, Makefile.rules includes .depend | |
290 | # and it continually looks for .c files to satisfy .o.cpp | |
291 | # dependency. What's going on there? | |
292 | include $(TOP)/Makefile.rules | |
293 | ||
294 | # List of objects to compile | |
295 | OBJS = $(COMMONOBJS) $(MSWOBJS) $(GENERICOBJS) $(UNIVOBJS) | |
296 | ||
297 | all: $(WXLIB) | |
298 | ||
299 | ######################### Makefile.rules section ############################# | |
300 | ||
301 | ||
302 | ||
303 | ######################## Tools targets section ############################### | |
304 | ||
305 | #ntest: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config | |
306 | # $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS) | |
307 | ||
308 | $(WXLIB): $(OBJS) | |
309 | ar $(AROPTIONS) $@ $(OBJS) | |
310 | $(RANLIB) $@ | |
311 | ||
312 | #.SUFFIXES: .cpp .cxx .c | |
313 | ||
314 | #.c.o: | |
315 | # $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c | |
316 | ||
317 | .cxx.o: | |
318 | $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx | |
319 | ||
320 | .cpp.o: | |
321 | $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp | |
322 | ||
323 | #$(COMMDIR)/appcmn.o: $(COMMDIR)/appcmn.cpp | |
324 | # $(CC) -c $(CPPFLAGS) -o $@ $*.cpp | |
325 | ||
326 | #appcmn.o: $(COMMDIR)/appcmn.cpp | |
327 | # $(CC) $(CPPFLAGS) -c -o $@ $< | |
328 | ||
329 | cleanwx: | |
330 | -$(RM) *.o | |
331 | -$(RM) *.bak | |
332 | -$(RM) core | |
333 | -$(RM) ole/*.o | |
334 | -$(RM) ../common/y_tab.c | |
335 | -$(RM) ../common/lex_yy.c | |
336 | -$(RM) ../common/*.o | |
337 | -$(RM) ../common/*.bak | |
338 | -$(RM) ../generic/*.o | |
339 | -$(RM) ../generic/*.bak | |
340 | -$(RM) ../univ/*.o | |
341 | -$(RM) ../univ/*.bak | |
342 | -$(RM) ../unix/*.o | |
343 | -$(RM) ../unix/*.bak | |
344 | -$(RM) ../html/*.o | |
345 | -$(RM) ../zlib/*.o | |
346 | -$(RM) ../zlib/*.bak | |
347 | -$(RM) ../png/*.o | |
348 | -$(RM) ../png/*.bak | |
349 | -$(RM) ../jpeg/*.o | |
350 | -$(RM) ../jpeg/*.bak | |
351 | -$(RM) ../tiff/*.o | |
352 | -$(RM) ../tiff/*.bak |