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