]> git.saurik.com Git - wxWidgets.git/blame - src/msw/makefile.mic
extracted duplicated code from src/*/data.cpp in a common file
[wxWidgets.git] / src / msw / makefile.mic
CommitLineData
04ef50df
JS
1##############################################################################
2# Microwindows template Makefile
3# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4##############################################################################
5
d2913c40
JS
6TOP=$(MICROWINDOWS)
7ifeq "$(MICROWINDOWS)" ""
8TOP=/home/julians/local/microwindows/microwindows-0.89pre8/src
9endif
c67d6888 10
04ef50df
JS
11CONFIG = $(TOP)/config
12WXDIR = ../..
13OBJSUFF = o
14SRCSUFF = cpp
15WXLIB=$(WXDIR)/lib/libwx.a
16AROPTIONS = ruv
17RANLIB = ranlib
18RM = rm -f
19
20GENDIR = $(WXDIR)/src/generic
21COMMDIR = $(WXDIR)/src/common
22HTMLDIR = $(WXDIR)/src/html
23ZLIBDIR = $(WXDIR)/src/zlib
24PNGDIR = $(WXDIR)/src/png
25JPEGDIR = $(WXDIR)/src/jpeg
26TIFFDIR = $(WXDIR)/src/tiff
27OLEDIR = $(WXDIR)/src/msw/ole
28MICROWINDIR = $(WXDIR)/src/msw
29UNIXDIR = $(WXDIR)/src/unix
30UNIVDIR = $(WXDIR)/src/univ
31
32ZLIBLIB = $(WXDIR)/lib/libzlib.a
33PNGLIB = $(WXDIR)/lib/libpng.a
34JPEGLIB = $(WXDIR)/lib/libjpeg.a
35TIFFLIB = $(WXDIR)/lib/libtiff.a
36
f0b22b4a 37GENERICOBJS = \
fac3b423
JS
38 $(GENDIR)/accel.$(OBJSUFF) \
39 $(GENDIR)/busyinfo.$(OBJSUFF) \
04ef50df
JS
40 $(GENDIR)/calctrl.$(OBJSUFF) \
41 $(GENDIR)/choicdgg.$(OBJSUFF) \
f0b22b4a 42 $(GENDIR)/colrdlgg.$(OBJSUFF) \
04ef50df
JS
43 $(GENDIR)/dirctrlg.$(OBJSUFF) \
44 $(GENDIR)/dragimgg.$(OBJSUFF) \
f0b22b4a 45 $(GENDIR)/fontdlgg.$(OBJSUFF) \
04ef50df 46 $(GENDIR)/grid.$(OBJSUFF) \
f0b22b4a 47 $(GENDIR)/gridctrl.$(OBJSUFF) \
04ef50df 48 $(GENDIR)/gridsel.$(OBJSUFF) \
fac3b423 49 $(GENDIR)/imaglist.$(OBJSUFF) \
04ef50df 50 $(GENDIR)/laywin.$(OBJSUFF) \
f0b22b4a 51 $(GENDIR)/listctrl.$(OBJSUFF) \
04ef50df 52 $(GENDIR)/logg.$(OBJSUFF) \
f0b22b4a 53 $(GENDIR)/msgdlgg.$(OBJSUFF) \
04ef50df
JS
54 $(GENDIR)/numdlgg.$(OBJSUFF) \
55 $(GENDIR)/panelg.$(OBJSUFF) \
56 $(GENDIR)/progdlgg.$(OBJSUFF) \
04ef50df 57 $(GENDIR)/sashwin.$(OBJSUFF) \
8a46f9b1 58 $(GENDIR)/scrlwing.$(OBJSUFF) \
f0b22b4a 59 $(GENDIR)/spinctlg.$(OBJSUFF) \
04ef50df
JS
60 $(GENDIR)/splash.$(OBJSUFF) \
61 $(GENDIR)/splitter.$(OBJSUFF) \
f0b22b4a 62 $(GENDIR)/tabg.$(OBJSUFF) \
04ef50df
JS
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
04ef50df
JS
71COMMONOBJS = \
72 $(COMMDIR)/appcmn.$(OBJSUFF) \
f0b22b4a 73 $(COMMDIR)/choiccmn.$(OBJSUFF) \
c67d6888 74 $(COMMDIR)/clntdata.$(OBJSUFF) \
04ef50df
JS
75 $(COMMDIR)/clipcmn.$(OBJSUFF) \
76 $(COMMDIR)/cmdline.$(OBJSUFF) \
f0b22b4a 77 $(COMMDIR)/cmdproc.$(OBJSUFF) \
04ef50df
JS
78 $(COMMDIR)/cmndata.$(OBJSUFF) \
79 $(COMMDIR)/config.$(OBJSUFF) \
c67d6888 80 $(COMMDIR)/containr.$(OBJSUFF) \
04ef50df
JS
81 $(COMMDIR)/cshelp.$(OBJSUFF) \
82 $(COMMDIR)/ctrlcmn.$(OBJSUFF) \
f0b22b4a 83 $(COMMDIR)/ctrlsub.$(OBJSUFF) \
04ef50df
JS
84 $(COMMDIR)/datetime.$(OBJSUFF) \
85 $(COMMDIR)/datstrm.$(OBJSUFF) \
86 $(COMMDIR)/dcbase.$(OBJSUFF) \
f0b22b4a 87 $(COMMDIR)/dircmn.$(OBJSUFF) \
04ef50df 88 $(COMMDIR)/dlgcmn.$(OBJSUFF) \
f0b22b4a
JS
89 $(COMMDIR)/dobjcmn.$(OBJSUFF) \
90 $(COMMDIR)/docview.$(OBJSUFF) \
04ef50df
JS
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) \
f0b22b4a 106 $(COMMDIR)/gaugecmn.$(OBJSUFF) \
04ef50df
JS
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) \
f0b22b4a 123 $(COMMDIR)/ipcbase.$(OBJSUFF) \
04ef50df 124 $(COMMDIR)/layout.$(OBJSUFF) \
f0b22b4a 125 $(COMMDIR)/lboxcmn.$(OBJSUFF) \
04ef50df
JS
126 $(COMMDIR)/list.$(OBJSUFF) \
127 $(COMMDIR)/log.$(OBJSUFF) \
128 $(COMMDIR)/longlong.$(OBJSUFF) \
129 $(COMMDIR)/matrix.$(OBJSUFF) \
130 $(COMMDIR)/memory.$(OBJSUFF) \
131 $(COMMDIR)/menucmn.$(OBJSUFF) \
f0b22b4a 132 $(COMMDIR)/mimecmn.$(OBJSUFF) \
04ef50df
JS
133 $(COMMDIR)/module.$(OBJSUFF) \
134 $(COMMDIR)/mstream.$(OBJSUFF) \
fa494c40 135 $(COMMDIR)/nbkbase.$(OBJSUFF) \
04ef50df 136 $(COMMDIR)/object.$(OBJSUFF) \
04ef50df 137 $(COMMDIR)/paper.$(OBJSUFF) \
f0b22b4a 138 $(COMMDIR)/popupcmn.$(OBJSUFF) \
04ef50df
JS
139 $(COMMDIR)/prntbase.$(OBJSUFF) \
140 $(COMMDIR)/process.$(OBJSUFF) \
141 $(COMMDIR)/quantize.$(OBJSUFF) \
f0b22b4a 142 $(COMMDIR)/radiocmn.$(OBJSUFF) \
04ef50df 143 $(COMMDIR)/sizer.$(OBJSUFF) \
c67d6888 144 $(COMMDIR)/statbar.$(OBJSUFF) \
04ef50df
JS
145 $(COMMDIR)/strconv.$(OBJSUFF) \
146 $(COMMDIR)/stream.$(OBJSUFF) \
147 $(COMMDIR)/string.$(OBJSUFF) \
c67d6888 148 $(COMMDIR)/sysopt.$(OBJSUFF) \
04ef50df 149 $(COMMDIR)/tbarbase.$(OBJSUFF) \
c67d6888 150 $(COMMDIR)/textbuf.$(OBJSUFF) \
f0b22b4a 151 $(COMMDIR)/textcmn.$(OBJSUFF) \
04ef50df
JS
152 $(COMMDIR)/textfile.$(OBJSUFF) \
153 $(COMMDIR)/timercmn.$(OBJSUFF) \
154 $(COMMDIR)/tokenzr.$(OBJSUFF) \
c67d6888 155 $(COMMDIR)/toplvcmn.$(OBJSUFF) \
04ef50df
JS
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
169HTMLOBJS = \
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
191MSWOBJS = \
04ef50df
JS
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) \
f0b22b4a 209 $(MICROWINDIR)/evtloop.$(OBJSUFF) \
04ef50df
JS
210 $(MICROWINDIR)/font.$(OBJSUFF) \
211 $(MICROWINDIR)/fontenum.$(OBJSUFF) \
212 $(MICROWINDIR)/fontutil.$(OBJSUFF) \
04ef50df
JS
213 $(MICROWINDIR)/gdiimage.$(OBJSUFF) \
214 $(MICROWINDIR)/gdiobj.$(OBJSUFF) \
215 $(MICROWINDIR)/icon.$(OBJSUFF) \
216 $(MICROWINDIR)/main.$(OBJSUFF) \
04ef50df 217 $(MICROWINDIR)/microwin.$(OBJSUFF) \
04ef50df
JS
218 $(MICROWINDIR)/palette.$(OBJSUFF) \
219 $(MICROWINDIR)/pen.$(OBJSUFF) \
04ef50df
JS
220 $(MICROWINDIR)/region.$(OBJSUFF) \
221 $(MICROWINDIR)/settings.$(OBJSUFF) \
f0b22b4a 222 $(MICROWINDIR)/snglinst.$(OBJSUFF) \
04ef50df
JS
223 $(MICROWINDIR)/thread.$(OBJSUFF) \
224 $(MICROWINDIR)/timer.$(OBJSUFF) \
c67d6888 225 $(MICROWINDIR)/toplevel.$(OBJSUFF) \
04ef50df 226 $(MICROWINDIR)/utils.$(OBJSUFF) \
8cb172b4 227 $(MICROWINDIR)/window.$(OBJSUFF) \
f0b22b4a
JS
228 $(OLEDIR)/dataobj.$(OBJSUFF)
229
230UNIVOBJS_TODO = $(UNIVDIR)/choice.$(OBJSUFF) \
231 $(UNIVDIR)/colordlg.$(OBJSUFF) \
232
04ef50df
JS
233
234UNIVOBJS = \
235 $(UNIVDIR)/bmpbuttn.$(OBJSUFF) \
236 $(UNIVDIR)/button.$(OBJSUFF) \
237 $(UNIVDIR)/checkbox.$(OBJSUFF) \
238 $(UNIVDIR)/checklst.$(OBJSUFF) \
04ef50df 239 $(UNIVDIR)/colschem.$(OBJSUFF) \
f0b22b4a 240 $(UNIVDIR)/combobox.$(OBJSUFF) \
04ef50df 241 $(UNIVDIR)/control.$(OBJSUFF) \
8cb172b4 242 $(UNIVDIR)/framuniv.$(OBJSUFF) \
04ef50df
JS
243 $(UNIVDIR)/gauge.$(OBJSUFF) \
244 $(UNIVDIR)/inphand.$(OBJSUFF) \
c67d6888 245 $(UNIVDIR)/inpcons.$(OBJSUFF) \
04ef50df
JS
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) \
04ef50df
JS
257 $(UNIVDIR)/statbmp.$(OBJSUFF) \
258 $(UNIVDIR)/statbox.$(OBJSUFF) \
259 $(UNIVDIR)/statline.$(OBJSUFF) \
260 $(UNIVDIR)/stattext.$(OBJSUFF) \
c67d6888 261 $(UNIVDIR)/statusbr.$(OBJSUFF) \
04ef50df
JS
262 $(UNIVDIR)/textctrl.$(OBJSUFF) \
263 $(UNIVDIR)/theme.$(OBJSUFF) \
c67d6888 264 $(UNIVDIR)/topluniv.$(OBJSUFF) \
04ef50df
JS
265 $(UNIVDIR)/winuniv.$(OBJSUFF) \
266 $(UNIVDIR)/themes/gtk.$(OBJSUFF) \
267 $(UNIVDIR)/themes/win32.$(OBJSUFF)
268
269include $(CONFIG)
270
271######################## Additional Flags section ############################
272
273# Directories list for header files
274INCLUDEDIRS += -I$(WXDIR)/include
275# Defines for preprocessor
8cb172b4 276DEFINES += -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
277
278# Compilation flags for C files OTHER than include directories
279CFLAGS +=
280# Preprocessor flags OTHER than defines
281CPPFLAGS +=
282# Linking flags
283LDFLAGS +=
284
285############################# targets section ################################
286
287# If you want to create a library with the objects files, define the name here
288LIBNAME =
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?
293include $(TOP)/Makefile.rules
294
295# List of objects to compile
f0b22b4a 296OBJS = $(COMMONOBJS) $(MSWOBJS) $(GENERICOBJS) $(UNIVOBJS)
04ef50df
JS
297
298all: $(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
330cleanwx:
331 -$(RM) *.o
332 -$(RM) *.bak
333 -$(RM) core
018d679e 334 -$(RM) ole/*.o
04ef50df
JS
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
71908213
JS
341 -$(RM) ../univ/*.o
342 -$(RM) ../univ/*.bak
54a96d02
JS
343 -$(RM) ../univ/themes/*.o
344 -$(RM) ../univ/themes/*.bak
71908213
JS
345 -$(RM) ../unix/*.o
346 -$(RM) ../unix/*.bak
04ef50df
JS
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