]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/msw/makefile.mic
wxRegion fixes (off by one)
[wxWidgets.git] / src / msw / makefile.mic
... / ...
CommitLineData
1##############################################################################
2# Microwindows template Makefile
3# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4##############################################################################
5
6TOP=/home/julians/local/microwindows/microwin/src
7CONFIG = $(TOP)/config
8WXDIR = ../..
9OBJSUFF = o
10SRCSUFF = cpp
11WXLIB=$(WXDIR)/lib/libwx.a
12AROPTIONS = ruv
13RANLIB = ranlib
14RM = rm -f
15
16GENDIR = $(WXDIR)/src/generic
17COMMDIR = $(WXDIR)/src/common
18HTMLDIR = $(WXDIR)/src/html
19ZLIBDIR = $(WXDIR)/src/zlib
20PNGDIR = $(WXDIR)/src/png
21JPEGDIR = $(WXDIR)/src/jpeg
22TIFFDIR = $(WXDIR)/src/tiff
23OLEDIR = $(WXDIR)/src/msw/ole
24MICROWINDIR = $(WXDIR)/src/msw
25UNIXDIR = $(WXDIR)/src/unix
26UNIVDIR = $(WXDIR)/src/univ
27
28ZLIBLIB = $(WXDIR)/lib/libzlib.a
29PNGLIB = $(WXDIR)/lib/libpng.a
30JPEGLIB = $(WXDIR)/lib/libjpeg.a
31TIFFLIB = $(WXDIR)/lib/libtiff.a
32
33GENERICOBJS = \
34 $(GENDIR)/accel.$(OBJSUFF) \
35 $(GENDIR)/busyinfo.$(OBJSUFF) \
36 $(GENDIR)/calctrl.$(OBJSUFF) \
37 $(GENDIR)/choicdgg.$(OBJSUFF) \
38 $(GENDIR)/colrdlgg.$(OBJSUFF) \
39 $(GENDIR)/dirctrlg.$(OBJSUFF) \
40 $(GENDIR)/dragimgg.$(OBJSUFF) \
41 $(GENDIR)/fontdlgg.$(OBJSUFF) \
42 $(GENDIR)/grid.$(OBJSUFF) \
43 $(GENDIR)/gridctrl.$(OBJSUFF) \
44 $(GENDIR)/gridsel.$(OBJSUFF) \
45 $(GENDIR)/imaglist.$(OBJSUFF) \
46 $(GENDIR)/laywin.$(OBJSUFF) \
47 $(GENDIR)/listctrl.$(OBJSUFF) \
48 $(GENDIR)/logg.$(OBJSUFF) \
49 $(GENDIR)/msgdlgg.$(OBJSUFF) \
50 $(GENDIR)/numdlgg.$(OBJSUFF) \
51 $(GENDIR)/panelg.$(OBJSUFF) \
52 $(GENDIR)/progdlgg.$(OBJSUFF) \
53 $(GENDIR)/sashwin.$(OBJSUFF) \
54 $(GENDIR)/scrlwing.$(OBJSUFF) \
55 $(GENDIR)/spinctlg.$(OBJSUFF) \
56 $(GENDIR)/splash.$(OBJSUFF) \
57 $(GENDIR)/splitter.$(OBJSUFF) \
58 $(GENDIR)/statusbr.$(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
68COMMONOBJS = \
69 $(COMMDIR)/appcmn.$(OBJSUFF) \
70 $(COMMDIR)/choiccmn.$(OBJSUFF) \
71 $(COMMDIR)/clipcmn.$(OBJSUFF) \
72 $(COMMDIR)/cmdline.$(OBJSUFF) \
73 $(COMMDIR)/cmdproc.$(OBJSUFF) \
74 $(COMMDIR)/cmndata.$(OBJSUFF) \
75 $(COMMDIR)/config.$(OBJSUFF) \
76 $(COMMDIR)/cshelp.$(OBJSUFF) \
77 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
78 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
79 $(COMMDIR)/datetime.$(OBJSUFF) \
80 $(COMMDIR)/datstrm.$(OBJSUFF) \
81 $(COMMDIR)/dcbase.$(OBJSUFF) \
82 $(COMMDIR)/dircmn.$(OBJSUFF) \
83 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
84 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
85 $(COMMDIR)/docview.$(OBJSUFF) \
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) \
101 $(COMMDIR)/gaugecmn.$(OBJSUFF) \
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) \
118 $(COMMDIR)/ipcbase.$(OBJSUFF) \
119 $(COMMDIR)/layout.$(OBJSUFF) \
120 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
121 $(COMMDIR)/list.$(OBJSUFF) \
122 $(COMMDIR)/log.$(OBJSUFF) \
123 $(COMMDIR)/longlong.$(OBJSUFF) \
124 $(COMMDIR)/matrix.$(OBJSUFF) \
125 $(COMMDIR)/memory.$(OBJSUFF) \
126 $(COMMDIR)/menucmn.$(OBJSUFF) \
127 $(COMMDIR)/mimecmn.$(OBJSUFF) \
128 $(COMMDIR)/module.$(OBJSUFF) \
129 $(COMMDIR)/mstream.$(OBJSUFF) \
130 $(COMMDIR)/nbkbase.$(OBJSUFF) \
131 $(COMMDIR)/object.$(OBJSUFF) \
132 $(COMMDIR)/objstrm.$(OBJSUFF) \
133 $(COMMDIR)/paper.$(OBJSUFF) \
134 $(COMMDIR)/popupcmn.$(OBJSUFF) \
135 $(COMMDIR)/prntbase.$(OBJSUFF) \
136 $(COMMDIR)/process.$(OBJSUFF) \
137 $(COMMDIR)/quantize.$(OBJSUFF) \
138 $(COMMDIR)/radiocmn.$(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)/textcmn.$(OBJSUFF) \
146 $(COMMDIR)/textfile.$(OBJSUFF) \
147 $(COMMDIR)/timercmn.$(OBJSUFF) \
148 $(COMMDIR)/tokenzr.$(OBJSUFF) \
149 $(COMMDIR)/treebase.$(OBJSUFF) \
150 $(COMMDIR)/txtstrm.$(OBJSUFF) \
151 $(COMMDIR)/utilscmn.$(OBJSUFF) \
152 $(UNIXDIR)/utilsunx.$(OBJSUFF) \
153 $(COMMDIR)/valgen.$(OBJSUFF) \
154 $(COMMDIR)/validate.$(OBJSUFF) \
155 $(COMMDIR)/valtext.$(OBJSUFF) \
156 $(COMMDIR)/variant.$(OBJSUFF) \
157 $(COMMDIR)/wfstream.$(OBJSUFF) \
158 $(COMMDIR)/wincmn.$(OBJSUFF) \
159 $(COMMDIR)/wxchar.$(OBJSUFF) \
160 $(COMMDIR)/xpmdecod.$(OBJSUFF)
161
162HTMLOBJS = \
163 $(HTMLDIR)/helpctrl.$(OBJSUFF) \
164 $(HTMLDIR)/helpdata.$(OBJSUFF) \
165 $(HTMLDIR)/helpfrm.$(OBJSUFF) \
166 $(HTMLDIR)/htmlcell.$(OBJSUFF) \
167 $(HTMLDIR)/htmlfilt.$(OBJSUFF) \
168 $(HTMLDIR)/htmlpars.$(OBJSUFF) \
169 $(HTMLDIR)/htmltag.$(OBJSUFF) \
170 $(HTMLDIR)/htmlwin.$(OBJSUFF) \
171 $(HTMLDIR)/htmprint.$(OBJSUFF) \
172 $(HTMLDIR)/m_dflist.$(OBJSUFF) \
173 $(HTMLDIR)/m_fonts.$(OBJSUFF) \
174 $(HTMLDIR)/m_hline.$(OBJSUFF) \
175 $(HTMLDIR)/m_image.$(OBJSUFF) \
176 $(HTMLDIR)/m_layout.$(OBJSUFF) \
177 $(HTMLDIR)/m_links.$(OBJSUFF) \
178 $(HTMLDIR)/m_list.$(OBJSUFF) \
179 $(HTMLDIR)/m_meta.$(OBJSUFF) \
180 $(HTMLDIR)/m_pre.$(OBJSUFF) \
181 $(HTMLDIR)/m_tables.$(OBJSUFF) \
182 $(HTMLDIR)/winpars.$(OBJSUFF)
183
184MSWOBJS = \
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)/evtloop.$(OBJSUFF) \
203 $(MICROWINDIR)/font.$(OBJSUFF) \
204 $(MICROWINDIR)/fontenum.$(OBJSUFF) \
205 $(MICROWINDIR)/fontutil.$(OBJSUFF) \
206 $(MICROWINDIR)/frame.$(OBJSUFF) \
207 $(MICROWINDIR)/gdiimage.$(OBJSUFF) \
208 $(MICROWINDIR)/gdiobj.$(OBJSUFF) \
209 $(MICROWINDIR)/icon.$(OBJSUFF) \
210 $(MICROWINDIR)/main.$(OBJSUFF) \
211 $(MICROWINDIR)/microwin.$(OBJSUFF) \
212 $(MICROWINDIR)/palette.$(OBJSUFF) \
213 $(MICROWINDIR)/pen.$(OBJSUFF) \
214 $(MICROWINDIR)/regconf.$(OBJSUFF) \
215 $(MICROWINDIR)/region.$(OBJSUFF) \
216 $(MICROWINDIR)/settings.$(OBJSUFF) \
217 $(MICROWINDIR)/snglinst.$(OBJSUFF) \
218 $(MICROWINDIR)/thread.$(OBJSUFF) \
219 $(MICROWINDIR)/timer.$(OBJSUFF) \
220 $(MICROWINDIR)/utils.$(OBJSUFF) \
221 $(MICROWINDIR)/window.$(OBJSUFF) \
222 $(OLEDIR)/dataobj.$(OBJSUFF)
223
224UNIVOBJS_TODO = $(UNIVDIR)/choice.$(OBJSUFF) \
225 $(UNIVDIR)/colordlg.$(OBJSUFF) \
226
227
228UNIVOBJS = \
229 $(UNIVDIR)/bmpbuttn.$(OBJSUFF) \
230 $(UNIVDIR)/button.$(OBJSUFF) \
231 $(UNIVDIR)/checkbox.$(OBJSUFF) \
232 $(UNIVDIR)/checklst.$(OBJSUFF) \
233 $(UNIVDIR)/colschem.$(OBJSUFF) \
234 $(UNIVDIR)/combobox.$(OBJSUFF) \
235 $(UNIVDIR)/control.$(OBJSUFF) \
236 $(UNIVDIR)/framuniv.$(OBJSUFF) \
237 $(UNIVDIR)/gauge.$(OBJSUFF) \
238 $(UNIVDIR)/inphand.$(OBJSUFF) \
239 $(UNIVDIR)/listbox.$(OBJSUFF) \
240 $(UNIVDIR)/menu.$(OBJSUFF) \
241 $(UNIVDIR)/notebook.$(OBJSUFF) \
242 $(UNIVDIR)/radiobox.$(OBJSUFF) \
243 $(UNIVDIR)/radiobut.$(OBJSUFF) \
244 $(UNIVDIR)/renderer.$(OBJSUFF) \
245 $(UNIVDIR)/scrarrow.$(OBJSUFF) \
246 $(UNIVDIR)/scrolbar.$(OBJSUFF) \
247 $(UNIVDIR)/scrthumb.$(OBJSUFF) \
248 $(UNIVDIR)/slider.$(OBJSUFF) \
249 $(UNIVDIR)/spinbutt.$(OBJSUFF) \
250 $(UNIVDIR)/statbmp.$(OBJSUFF) \
251 $(UNIVDIR)/statbox.$(OBJSUFF) \
252 $(UNIVDIR)/statline.$(OBJSUFF) \
253 $(UNIVDIR)/stattext.$(OBJSUFF) \
254 $(UNIVDIR)/textctrl.$(OBJSUFF) \
255 $(UNIVDIR)/theme.$(OBJSUFF) \
256 $(UNIVDIR)/winuniv.$(OBJSUFF) \
257 $(UNIVDIR)/themes/gtk.$(OBJSUFF) \
258 $(UNIVDIR)/themes/win32.$(OBJSUFF)
259
260include $(CONFIG)
261
262######################## Additional Flags section ############################
263
264# Directories list for header files
265INCLUDEDIRS += -I$(WXDIR)/include
266# Defines for preprocessor
267DEFINES += -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\""
268
269# Compilation flags for C files OTHER than include directories
270CFLAGS +=
271# Preprocessor flags OTHER than defines
272CPPFLAGS +=
273# Linking flags
274LDFLAGS +=
275
276############################# targets section ################################
277
278# If you want to create a library with the objects files, define the name here
279LIBNAME =
280
281# If we put it below OBJS=, Makefile.rules includes .depend
282# and it continually looks for .c files to satisfy .o.cpp
283# dependency. What's going on there?
284include $(TOP)/Makefile.rules
285
286# List of objects to compile
287OBJS = $(COMMONOBJS) $(MSWOBJS) $(GENERICOBJS) $(UNIVOBJS)
288
289all: $(WXLIB)
290
291######################### Makefile.rules section #############################
292
293
294
295######################## Tools targets section ###############################
296
297#ntest: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
298# $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)
299
300$(WXLIB): $(OBJS)
301 ar $(AROPTIONS) $@ $(OBJS)
302 $(RANLIB) $@
303
304#.SUFFIXES: .cpp .cxx .c
305
306#.c.o:
307# $(CC) -c $(CFLAGS) $(CFLAGS) -o $@ $*.c
308
309.cxx.o:
310 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cxx
311
312.cpp.o:
313 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $*.cpp
314
315#$(COMMDIR)/appcmn.o: $(COMMDIR)/appcmn.cpp
316# $(CC) -c $(CPPFLAGS) -o $@ $*.cpp
317
318#appcmn.o: $(COMMDIR)/appcmn.cpp
319# $(CC) $(CPPFLAGS) -c -o $@ $<
320
321cleanwx:
322 -$(RM) *.o
323 -$(RM) *.bak
324 -$(RM) core
325 -$(RM) ole/*.o
326 -$(RM) ../common/y_tab.c
327 -$(RM) ../common/lex_yy.c
328 -$(RM) ../common/*.o
329 -$(RM) ../common/*.bak
330 -$(RM) ../generic/*.o
331 -$(RM) ../generic/*.bak
332 -$(RM) ../univ/*.o
333 -$(RM) ../univ/*.bak
334 -$(RM) ../unix/*.o
335 -$(RM) ../unix/*.bak
336 -$(RM) ../html/*.o
337 -$(RM) ../zlib/*.o
338 -$(RM) ../zlib/*.bak
339 -$(RM) ../png/*.o
340 -$(RM) ../png/*.bak
341 -$(RM) ../jpeg/*.o
342 -$(RM) ../jpeg/*.bak
343 -$(RM) ../tiff/*.o
344 -$(RM) ../tiff/*.bak