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