]> git.saurik.com Git - wxWidgets.git/blob - src/x11/makefile.unx
fixed memory leak in RestoreState
[wxWidgets.git] / src / x11 / makefile.unx
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)/resource.$(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
170 HTMLOBJS = \
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
192 MSWOBJS = \
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
231 UNIVOBJS_TODO = $(UNIVDIR)/choice.$(OBJSUFF) \
232 $(UNIVDIR)/colordlg.$(OBJSUFF) \
233
234
235 UNIVOBJS = \
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
270 include $(CONFIG)
271
272 ######################## Additional Flags section ############################
273
274 # Directories list for header files
275 INCLUDEDIRS += -I$(WXDIR)/include
276 # Defines for preprocessor
277 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\""
278
279 # Compilation flags for C files OTHER than include directories
280 CFLAGS +=
281 # Preprocessor flags OTHER than defines
282 CPPFLAGS +=
283 # Linking flags
284 LDFLAGS +=
285
286 ############################# targets section ################################
287
288 # If you want to create a library with the objects files, define the name here
289 LIBNAME =
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?
294 include $(TOP)/Makefile.rules
295
296 # List of objects to compile
297 OBJS = $(COMMONOBJS) $(MSWOBJS) $(GENERICOBJS) $(UNIVOBJS)
298
299 all: $(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
331 cleanwx:
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