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