]>
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 | ||
33 | GENERICOBJS_ORIG = \ | |
34 | $(GENDIR)/busyinfo.$(OBJSUFF) \ | |
35 | $(GENDIR)/calctrl.$(OBJSUFF) \ | |
36 | $(GENDIR)/choicdgg.$(OBJSUFF) \ | |
37 | $(GENDIR)/dirctrlg.$(OBJSUFF) \ | |
38 | $(GENDIR)/dragimgg.$(OBJSUFF) \ | |
39 | $(GENDIR)/grid.$(OBJSUFF) \ | |
40 | $(GENDIR)/gridsel.$(OBJSUFF) \ | |
41 | $(GENDIR)/laywin.$(OBJSUFF) \ | |
42 | $(GENDIR)/logg.$(OBJSUFF) \ | |
43 | $(GENDIR)/numdlgg.$(OBJSUFF) \ | |
44 | $(GENDIR)/panelg.$(OBJSUFF) \ | |
45 | $(GENDIR)/progdlgg.$(OBJSUFF) \ | |
46 | $(GENDIR)/prop.$(OBJSUFF) \ | |
47 | $(GENDIR)/propform.$(OBJSUFF) \ | |
48 | $(GENDIR)/proplist.$(OBJSUFF) \ | |
49 | $(GENDIR)/sashwin.$(OBJSUFF) \ | |
50 | $(GENDIR)/scrolwin.$(OBJSUFF) \ | |
51 | $(GENDIR)/splash.$(OBJSUFF) \ | |
52 | $(GENDIR)/splitter.$(OBJSUFF) \ | |
53 | $(GENDIR)/statusbr.$(OBJSUFF) \ | |
54 | $(GENDIR)/tbarsmpl.$(OBJSUFF) \ | |
55 | $(GENDIR)/textdlgg.$(OBJSUFF) \ | |
56 | $(GENDIR)/tipdlg.$(OBJSUFF) \ | |
57 | $(GENDIR)/tipwin.$(OBJSUFF) \ | |
58 | $(GENDIR)/treectlg.$(OBJSUFF) \ | |
59 | $(GENDIR)/treelay.$(OBJSUFF) \ | |
60 | $(GENDIR)/wizard.$(OBJSUFF) | |
61 | ||
62 | GENERICOBJS = \ | |
63 | $(GENDIR)/laywin.$(OBJSUFF) \ | |
64 | $(GENDIR)/logg.$(OBJSUFF) \ | |
65 | $(GENDIR)/panelg.$(OBJSUFF) \ | |
66 | $(GENDIR)/sashwin.$(OBJSUFF) \ | |
67 | $(GENDIR)/scrolwin.$(OBJSUFF) \ | |
68 | $(GENDIR)/splash.$(OBJSUFF) \ | |
69 | $(GENDIR)/splitter.$(OBJSUFF) \ | |
70 | $(GENDIR)/statusbr.$(OBJSUFF) \ | |
71 | $(GENDIR)/tbarsmpl.$(OBJSUFF) \ | |
72 | $(GENDIR)/tipwin.$(OBJSUFF) | |
73 | ||
74 | COMMONOBJS_OTHER=\ | |
75 | $(COMMDIR)/choiccmn.$(OBJSUFF) \ | |
76 | $(COMMDIR)/ctrlsub.$(OBJSUFF) \ | |
77 | $(COMMDIR)/dobjcmn.$(OBJSUFF) \ | |
78 | $(COMMDIR)/lboxcmn.$(OBJSUFF) \ | |
79 | $(COMMDIR)/textcmn.$(OBJSUFF) \ | |
80 | ||
81 | COMMONOBJS = \ | |
82 | $(COMMDIR)/appcmn.$(OBJSUFF) \ | |
83 | $(COMMDIR)/clipcmn.$(OBJSUFF) \ | |
84 | $(COMMDIR)/cmdline.$(OBJSUFF) \ | |
85 | $(COMMDIR)/cmndata.$(OBJSUFF) \ | |
86 | $(COMMDIR)/config.$(OBJSUFF) \ | |
87 | $(COMMDIR)/cshelp.$(OBJSUFF) \ | |
88 | $(COMMDIR)/ctrlcmn.$(OBJSUFF) \ | |
89 | $(COMMDIR)/datetime.$(OBJSUFF) \ | |
90 | $(COMMDIR)/datstrm.$(OBJSUFF) \ | |
91 | $(COMMDIR)/dcbase.$(OBJSUFF) \ | |
92 | $(COMMDIR)/dlgcmn.$(OBJSUFF) \ | |
93 | $(COMMDIR)/dynarray.$(OBJSUFF) \ | |
94 | $(COMMDIR)/dynlib.$(OBJSUFF) \ | |
95 | $(COMMDIR)/effects.$(OBJSUFF) \ | |
96 | $(COMMDIR)/encconv.$(OBJSUFF) \ | |
97 | $(COMMDIR)/event.$(OBJSUFF) \ | |
98 | $(COMMDIR)/extended.$(OBJSUFF) \ | |
99 | $(COMMDIR)/ffile.$(OBJSUFF) \ | |
100 | $(COMMDIR)/file.$(OBJSUFF) \ | |
101 | $(COMMDIR)/fileconf.$(OBJSUFF) \ | |
102 | $(COMMDIR)/filefn.$(OBJSUFF) \ | |
103 | $(COMMDIR)/filename.$(OBJSUFF) \ | |
104 | $(COMMDIR)/filesys.$(OBJSUFF) \ | |
105 | $(COMMDIR)/fontcmn.$(OBJSUFF) \ | |
106 | $(COMMDIR)/fontmap.$(OBJSUFF) \ | |
107 | $(COMMDIR)/framecmn.$(OBJSUFF) \ | |
108 | $(COMMDIR)/gdicmn.$(OBJSUFF) \ | |
109 | $(COMMDIR)/geometry.$(OBJSUFF) \ | |
110 | $(COMMDIR)/gifdecod.$(OBJSUFF) \ | |
111 | $(COMMDIR)/hash.$(OBJSUFF) \ | |
112 | $(COMMDIR)/helpbase.$(OBJSUFF) \ | |
113 | $(COMMDIR)/imagall.$(OBJSUFF) \ | |
114 | $(COMMDIR)/imagbmp.$(OBJSUFF) \ | |
115 | $(COMMDIR)/image.$(OBJSUFF) \ | |
116 | $(COMMDIR)/imaggif.$(OBJSUFF) \ | |
117 | $(COMMDIR)/imagjpeg.$(OBJSUFF) \ | |
118 | $(COMMDIR)/imagpcx.$(OBJSUFF) \ | |
119 | $(COMMDIR)/imagpng.$(OBJSUFF) \ | |
120 | $(COMMDIR)/imagpnm.$(OBJSUFF) \ | |
121 | $(COMMDIR)/imagtiff.$(OBJSUFF) \ | |
122 | $(COMMDIR)/imagxpm.$(OBJSUFF) \ | |
123 | $(COMMDIR)/intl.$(OBJSUFF) \ | |
124 | $(COMMDIR)/layout.$(OBJSUFF) \ | |
125 | $(COMMDIR)/list.$(OBJSUFF) \ | |
126 | $(COMMDIR)/log.$(OBJSUFF) \ | |
127 | $(COMMDIR)/longlong.$(OBJSUFF) \ | |
128 | $(COMMDIR)/matrix.$(OBJSUFF) \ | |
129 | $(COMMDIR)/memory.$(OBJSUFF) \ | |
130 | $(COMMDIR)/menucmn.$(OBJSUFF) \ | |
131 | $(COMMDIR)/module.$(OBJSUFF) \ | |
132 | $(COMMDIR)/mstream.$(OBJSUFF) \ | |
133 | $(COMMDIR)/object.$(OBJSUFF) \ | |
134 | $(COMMDIR)/objstrm.$(OBJSUFF) \ | |
135 | $(COMMDIR)/paper.$(OBJSUFF) \ | |
136 | $(COMMDIR)/prntbase.$(OBJSUFF) \ | |
137 | $(COMMDIR)/process.$(OBJSUFF) \ | |
138 | $(COMMDIR)/quantize.$(OBJSUFF) \ | |
139 | $(COMMDIR)/resource.$(OBJSUFF) \ | |
140 | $(COMMDIR)/sizer.$(OBJSUFF) \ | |
141 | $(COMMDIR)/strconv.$(OBJSUFF) \ | |
142 | $(COMMDIR)/stream.$(OBJSUFF) \ | |
143 | $(COMMDIR)/string.$(OBJSUFF) \ | |
144 | $(COMMDIR)/tbarbase.$(OBJSUFF) \ | |
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 = \ | |
184 | $(MICROWINDIR)/accel.$(OBJSUFF) \ | |
185 | $(MICROWINDIR)/app.$(OBJSUFF) \ | |
186 | $(MICROWINDIR)/bitmap.$(OBJSUFF) \ | |
187 | $(MICROWINDIR)/brush.$(OBJSUFF) \ | |
188 | $(MICROWINDIR)/caret.$(OBJSUFF) \ | |
189 | $(MICROWINDIR)/clipbrd.$(OBJSUFF) \ | |
190 | $(MICROWINDIR)/colour.$(OBJSUFF) \ | |
191 | $(MICROWINDIR)/cursor.$(OBJSUFF) \ | |
192 | $(MICROWINDIR)/data.$(OBJSUFF) \ | |
193 | $(MICROWINDIR)/dc.$(OBJSUFF) \ | |
194 | $(MICROWINDIR)/dcclient.$(OBJSUFF) \ | |
195 | $(MICROWINDIR)/dcmemory.$(OBJSUFF) \ | |
196 | $(MICROWINDIR)/dcprint.$(OBJSUFF) \ | |
197 | $(MICROWINDIR)/dcscreen.$(OBJSUFF) \ | |
198 | $(MICROWINDIR)/dde.$(OBJSUFF) \ | |
199 | $(MICROWINDIR)/dialog.$(OBJSUFF) \ | |
200 | $(MICROWINDIR)/dialup.$(OBJSUFF) \ | |
201 | $(UNIXDIR)/dir.$(OBJSUFF) \ | |
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) \ | |
210 | $(MICROWINDIR)/menu.$(OBJSUFF) \ | |
211 | $(MICROWINDIR)/menuitem.$(OBJSUFF) \ | |
212 | $(MICROWINDIR)/microwin.$(OBJSUFF) \ | |
213 | $(MICROWINDIR)/msgdlg.$(OBJSUFF) \ | |
214 | $(MICROWINDIR)/palette.$(OBJSUFF) \ | |
215 | $(MICROWINDIR)/pen.$(OBJSUFF) \ | |
216 | $(MICROWINDIR)/regconf.$(OBJSUFF) \ | |
217 | $(MICROWINDIR)/region.$(OBJSUFF) \ | |
218 | $(MICROWINDIR)/settings.$(OBJSUFF) \ | |
219 | $(MICROWINDIR)/thread.$(OBJSUFF) \ | |
220 | $(MICROWINDIR)/timer.$(OBJSUFF) \ | |
221 | $(MICROWINDIR)/utils.$(OBJSUFF) \ | |
222 | $(MICROWINDIR)/window.$(OBJSUFF) | |
223 | ||
224 | UNIVOBJS = \ | |
225 | $(UNIVDIR)/bmpbuttn.$(OBJSUFF) \ | |
226 | $(UNIVDIR)/button.$(OBJSUFF) \ | |
227 | $(UNIVDIR)/checkbox.$(OBJSUFF) \ | |
228 | $(UNIVDIR)/checklst.$(OBJSUFF) \ | |
229 | $(UNIVDIR)/choice.$(OBJSUFF) \ | |
230 | $(UNIVDIR)/colordlg.$(OBJSUFF) \ | |
231 | $(UNIVDIR)/colschem.$(OBJSUFF) \ | |
232 | $(UNIVDIR)/control.$(OBJSUFF) \ | |
233 | $(UNIVDIR)/frameuniv.$(OBJSUFF) \ | |
234 | $(UNIVDIR)/gauge.$(OBJSUFF) \ | |
235 | $(UNIVDIR)/inphand.$(OBJSUFF) \ | |
236 | $(UNIVDIR)/listbox.$(OBJSUFF) \ | |
237 | $(UNIVDIR)/menu.$(OBJSUFF) \ | |
238 | $(UNIVDIR)/notebook.$(OBJSUFF) \ | |
239 | $(UNIVDIR)/radiobox.$(OBJSUFF) \ | |
240 | $(UNIVDIR)/radiobut.$(OBJSUFF) \ | |
241 | $(UNIVDIR)/renderer.$(OBJSUFF) \ | |
242 | $(UNIVDIR)/scrarrow.$(OBJSUFF) \ | |
243 | $(UNIVDIR)/scrolbar.$(OBJSUFF) \ | |
244 | $(UNIVDIR)/scrthumb.$(OBJSUFF) \ | |
245 | $(UNIVDIR)/slider.$(OBJSUFF) \ | |
246 | $(UNIVDIR)/spinbutt.$(OBJSUFF) \ | |
247 | $(UNIVDIR)/spinctrl.$(OBJSUFF) \ | |
248 | $(UNIVDIR)/statbmp.$(OBJSUFF) \ | |
249 | $(UNIVDIR)/statbox.$(OBJSUFF) \ | |
250 | $(UNIVDIR)/statline.$(OBJSUFF) \ | |
251 | $(UNIVDIR)/stattext.$(OBJSUFF) \ | |
252 | $(UNIVDIR)/textctrl.$(OBJSUFF) \ | |
253 | $(UNIVDIR)/theme.$(OBJSUFF) \ | |
254 | $(UNIVDIR)/winuniv.$(OBJSUFF) \ | |
255 | $(UNIVDIR)/themes/gtk.$(OBJSUFF) \ | |
256 | $(UNIVDIR)/themes/win32.$(OBJSUFF) | |
257 | ||
258 | include $(CONFIG) | |
259 | ||
260 | ######################## Additional Flags section ############################ | |
261 | ||
262 | # Directories list for header files | |
263 | INCLUDEDIRS += -I$(WXDIR)/include | |
264 | # Defines for preprocessor | |
265 | 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__ | |
266 | ||
267 | # Compilation flags for C files OTHER than include directories | |
268 | CFLAGS += | |
269 | # Preprocessor flags OTHER than defines | |
270 | CPPFLAGS += | |
271 | # Linking flags | |
272 | LDFLAGS += | |
273 | ||
274 | ############################# targets section ################################ | |
275 | ||
276 | # If you want to create a library with the objects files, define the name here | |
277 | LIBNAME = | |
278 | ||
279 | # If we put it below OBJS=, Makefile.rules includes .depend | |
280 | # and it continually looks for .c files to satisfy .o.cpp | |
281 | # dependency. What's going on there? | |
282 | include $(TOP)/Makefile.rules | |
283 | ||
284 | # List of objects to compile | |
285 | OBJS = $(COMMONOBJS) $(MSWOBJS) $(GENERICOBJS) | |
286 | ||
287 | all: $(WXLIB) | |
288 | ||
289 | ######################### Makefile.rules section ############################# | |
290 | ||
291 | ||
292 | ||
293 | ######################## Tools targets section ############################### | |
294 | ||
295 | #ntest: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config | |
296 | # $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS) | |
297 | ||
298 | $(WXLIB): $(OBJS) | |
299 | ar $(AROPTIONS) $@ $(OBJS) | |
300 | $(RANLIB) $@ | |
301 | ||
302 | #.SUFFIXES: .cpp .cxx .c | |
303 | ||
304 | #.c.o: | |
305 | # $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c | |
306 | ||
307 | .cxx.o: | |
308 | $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx | |
309 | ||
310 | .cpp.o: | |
311 | $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp | |
312 | ||
313 | #$(COMMDIR)/appcmn.o: $(COMMDIR)/appcmn.cpp | |
314 | # $(CC) -c $(CPPFLAGS) -o $@ $*.cpp | |
315 | ||
316 | #appcmn.o: $(COMMDIR)/appcmn.cpp | |
317 | # $(CC) $(CPPFLAGS) -c -o $@ $< | |
318 | ||
319 | cleanwx: | |
320 | -$(RM) *.o | |
321 | -$(RM) *.bak | |
322 | -$(RM) core | |
323 | -$(RM) ../common/y_tab.c | |
324 | -$(RM) ../common/lex_yy.c | |
325 | -$(RM) ../common/*.o | |
326 | -$(RM) ../common/*.bak | |
327 | -$(RM) ../generic/*.o | |
328 | -$(RM) ../generic/*.bak | |
329 | -$(RM) ../html/*.o | |
330 | -$(RM) ../zlib/*.o | |
331 | -$(RM) ../zlib/*.bak | |
332 | -$(RM) ../png/*.o | |
333 | -$(RM) ../png/*.bak | |
334 | -$(RM) ../jpeg/*.o | |
335 | -$(RM) ../jpeg/*.bak | |
336 | -$(RM) ../tiff/*.o | |
337 | -$(RM) ../tiff/*.bak |