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