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