]> git.saurik.com Git - wxWidgets.git/blame - build/palmos/makefile
no_rtti fix was not having correct eval order
[wxWidgets.git] / build / palmos / makefile
CommitLineData
ffecfa5a
JS
1## --------------------------------------------------------------------------
2# Palm OS Generic Protein Makefile for Eclipse v1.0.0
3#
4# Fill in this file to specify your project and the source that you want
5# to build, and the settings involved in the build. The makefile-engine.mk
6# will then do the hard work of the makefile and dependency handling.
7#
8# After starting a new project, please remember the following steps...
9# 1. Add all sources and resources in SOURCES and RESOURCES
10# 2. Review the other settings as needed.
11#
12## --------------------------------------------------------------------------
13
14SHELL = /bin/sh
15## conditionally include an auto-generated.mk for dynamic definitions
16-include auto-generated.mk
17
18## --------------------------------------------------------------------------
19# Set up the artifact name.
20# The database name and other file names are based on the application name
21## --------------------------------------------------------------------------
22
23ARTIFACT_NAME = wxWidgets
24EMPTY =
25SPACE =$(EMPTY) $(EMPTY)
26ESCAPED_ARTIFACT_NAME = $(subst $(SPACE),\ ,$(ARTIFACT_NAME))
27
28PROJECT_NAME = wxWidgets
29PRC_NAME = wxWidgets.prc
30
31## --------------------------------------------------------------------------
32# Sources and Resources and Definition files
33# List all the sources (.c/.cpp), resources (.xrd), and definition file (.sld)
34# in your project. Use project relative path names with forward slashes
35# (src/code.cpp). Please do not use spaces in directory or file names.
36#
37# A note about XRD resource files: If you have existing .rsrc or .rcp files,
38# refer to the documentation for the GenerateXRD tool to convert them into
39# XRD files for use with all Palm OS SDKs.
40## --------------------------------------------------------------------------
41
42# TODO: Update all sources and resources
43
acb1070b
WS
44BASE_CMN_SRC = \
45../../src/common/appbase.cpp \
46../../src/common/archive.cpp \
47../../src/common/clntdata.cpp \
48../../src/common/cmdline.cpp \
49../../src/common/config.cpp \
50../../src/common/datetime.cpp \
51../../src/common/datstrm.cpp \
52../../src/common/dircmn.cpp \
53../../src/common/dynarray.cpp \
54../../src/common/dynlib.cpp \
55../../src/common/dynload.cpp \
56../../src/common/encconv.cpp \
68351053
WS
57../../src/common/extended.c \
58../../src/common/ffile.cpp \
59../../src/common/file.cpp \
60../../src/common/fileconf.cpp \
61../../src/common/filefn.cpp \
62../../src/common/filename.cpp \
63../../src/common/filesys.cpp \
64../../src/common/fmapbase.cpp \
a809b45d
WS
65../../src/common/fs_zip.cpp \
66../../src/common/hash.cpp \
67../../src/common/hashmap.cpp \
68../../src/common/init.cpp \
69../../src/common/intl.cpp \
70../../src/common/ipcbase.cpp \
71../../src/common/list.cpp \
72../../src/common/log.cpp \
73../../src/common/longlong.cpp \
74../../src/common/memory.cpp \
75../../src/common/mimecmn.cpp \
76../../src/common/module.cpp \
77../../src/common/mstream.cpp \
78../../src/common/object.cpp \
79../../src/common/process.cpp \
80../../src/common/regex.cpp \
81../../src/common/stdpbase.cpp \
82../../src/common/sstream.cpp \
83../../src/common/stopwatch.cpp \
84../../src/common/strconv.cpp \
85../../src/common/stream.cpp \
86../../src/common/string.cpp \
87../../src/common/sysopt.cpp \
88../../src/common/textbuf.cpp \
89../../src/common/textfile.cpp \
90../../src/common/tokenzr.cpp \
91../../src/common/txtstrm.cpp \
92../../src/common/uri.cpp \
93../../src/common/variant.cpp \
94../../src/common/wfstream.cpp \
95../../src/common/wxchar.cpp \
96../../src/common/xti.cpp \
97../../src/common/xtistrm.cpp \
98../../src/common/zipstrm.cpp \
99../../src/common/zstream.cpp
acb1070b 100
a2dc319b
WS
101BASE_PALMOS_SRC = \
102../../src/palmos/base.cpp \
103../../src/palmos/dir.cpp \
104../../src/palmos/prefconf.cpp \
105../../src/palmos/snglinst.cpp \
106../../src/palmos/thread.cpp \
107../../src/palmos/utils.cpp \
108../../src/palmos/utilsexc.cpp
109
110BASE_AND_GUI_CMN_SRC = \
111../../src/common/event.cpp \
112../../src/common/fs_mem.cpp \
113../../src/common/msgout.cpp \
114../../src/common/utilscmn.cpp
115
116BASE_AND_GUI_PALMOS_SRC = \
117../../src/palmos/main.cpp \
118../../src/palmos/volume.cpp
119
120NET_CMN_SRC = \
121../../src/common/fs_inet.cpp \
122../../src/common/ftp.cpp \
123../../src/common/http.cpp \
124../../src/common/protocol.cpp \
125../../src/common/sckaddr.cpp \
126../../src/common/sckfile.cpp \
127../../src/common/sckipc.cpp \
128../../src/common/sckstrm.cpp \
129../../src/common/socket.cpp \
130../../src/common/url.cpp
131
132PALMOS_LOWLEVEL_SRC = \
133../../src/palmos/app.cpp \
134../../src/palmos/bitmap.cpp \
135../../src/palmos/brush.cpp \
136../../src/palmos/caret.cpp \
137../../src/palmos/clipbrd.cpp \
138../../src/palmos/colour.cpp \
139../../src/palmos/cursor.cpp \
140../../src/palmos/data.cpp \
141../../src/palmos/dc.cpp \
142../../src/palmos/dcclient.cpp \
143../../src/palmos/dcmemory.cpp \
144../../src/palmos/dcprint.cpp \
145../../src/palmos/dcscreen.cpp \
146../../src/palmos/dib.cpp \
147../../src/palmos/display.cpp \
148../../src/palmos/enhmeta.cpp \
149../../src/palmos/evtloop.cpp \
150../../src/palmos/font.cpp \
151../../src/palmos/fontenum.cpp \
152../../src/palmos/fontutil.cpp \
153../../src/palmos/gdiimage.cpp \
154../../src/palmos/gdiobj.cpp \
155../../src/palmos/icon.cpp \
156../../src/palmos/minifram.cpp \
157../../src/palmos/palette.cpp \
158../../src/palmos/pen.cpp \
159../../src/palmos/popupwin.cpp \
160../../src/palmos/printdlg.cpp \
161../../src/palmos/printpalm.cpp \
162../../src/palmos/region.cpp \
163../../src/palmos/settings.cpp \
164../../src/palmos/timer.cpp \
165../../src/palmos/tooltip.cpp \
166../../src/palmos/toplevel.cpp \
167../../src/palmos/utilsgui.cpp \
168../../src/palmos/window.cpp
169
170PALMOS_DESKTOP_LOWLEVEL_SRC = \
171../../src/palmos/help.cpp
172
173PALMOS_SRC = \
174../../src/palmos/accel.cpp \
175../../src/palmos/bmpbuttn.cpp \
176../../src/palmos/button.cpp \
177../../src/palmos/checkbox.cpp \
178../../src/palmos/checklst.cpp \
179../../src/palmos/choice.cpp \
180../../src/palmos/colordlg.cpp \
181../../src/palmos/combobox.cpp \
182../../src/palmos/control.cpp \
183../../src/palmos/dialog.cpp \
184../../src/palmos/dirdlg.cpp \
185../../src/palmos/dragimag.cpp \
186../../src/palmos/fdrepdlg.cpp \
187../../src/palmos/filedlg.cpp \
188../../src/palmos/fontdlg.cpp \
189../../src/palmos/frame.cpp \
190../../src/palmos/gauge.cpp \
191../../src/palmos/imaglist.cpp \
192../../src/palmos/listbox.cpp \
193../../src/palmos/listctrl.cpp \
194../../src/palmos/mdi.cpp \
195../../src/palmos/menu.cpp \
196../../src/palmos/menuitem.cpp \
197../../src/palmos/metafile.cpp \
198../../src/palmos/msgdlg.cpp \
199../../src/palmos/nativdlg.cpp \
200../../src/palmos/notebook.cpp \
201../../src/palmos/ownerdrw.cpp \
202../../src/palmos/radiobox.cpp \
203../../src/palmos/radiobut.cpp \
204../../src/palmos/scrolbar.cpp \
205../../src/palmos/slider.cpp \
206../../src/palmos/spinbutt.cpp \
207../../src/palmos/spinctrl.cpp \
208../../src/palmos/statbmp.cpp \
209../../src/palmos/statbox.cpp \
210../../src/palmos/statbrpalm.cpp \
211../../src/palmos/statline.cpp \
212../../src/palmos/stattext.cpp \
213../../src/palmos/taskbar.cpp \
214../../src/palmos/toolbar.cpp \
215../../src/palmos/textctrl.cpp \
216../../src/palmos/tglbtn.cpp \
217../../src/palmos/treectrl.cpp
218
219GUI_CMN_SRC = \
ffecfa5a 220../../src/common/accesscmn.cpp \
ffecfa5a
JS
221../../src/common/appcmn.cpp \
222../../src/common/artprov.cpp \
223../../src/common/artstd.cpp \
224../../src/common/bmpbase.cpp \
225../../src/common/bookctrl.cpp \
226../../src/common/choiccmn.cpp \
227../../src/common/clipcmn.cpp \
ffecfa5a
JS
228../../src/common/cmdproc.cpp \
229../../src/common/cmndata.cpp \
ffecfa5a
JS
230../../src/common/containr.cpp \
231../../src/common/cshelp.cpp \
232../../src/common/ctrlcmn.cpp \
233../../src/common/ctrlsub.cpp \
234../../src/common/datacmn.cpp \
ffecfa5a 235../../src/common/dcbase.cpp \
ffecfa5a
JS
236../../src/common/dlgcmn.cpp \
237../../src/common/dndcmn.cpp \
238../../src/common/dobjcmn.cpp \
239../../src/common/docmdi.cpp \
240../../src/common/docview.cpp \
241../../src/common/dpycmn.cpp \
242../../src/common/dseldlg.cpp \
ffecfa5a 243../../src/common/effects.cpp \
ffecfa5a 244../../src/common/fddlgcmn.cpp \
ffecfa5a 245../../src/common/fldlgcmn.cpp \
ffecfa5a
JS
246../../src/common/fontcmn.cpp \
247../../src/common/fontmap.cpp \
248../../src/common/framecmn.cpp \
ffecfa5a
JS
249../../src/common/gaugecmn.cpp \
250../../src/common/gbsizer.cpp \
251../../src/common/gdicmn.cpp \
252../../src/common/geometry.cpp \
253../../src/common/gifdecod.cpp \
ffecfa5a 254../../src/common/helpbase.cpp \
ffecfa5a
JS
255../../src/common/iconbndl.cpp \
256../../src/common/imagall.cpp \
257../../src/common/imagbmp.cpp \
258../../src/common/image.cpp \
259../../src/common/imagfill.cpp \
260../../src/common/imaggif.cpp \
261../../src/common/imagiff.cpp \
262../../src/common/imagjpeg.cpp \
263../../src/common/imagpcx.cpp \
264../../src/common/imagpng.cpp \
265../../src/common/imagpnm.cpp \
266../../src/common/imagtiff.cpp \
267../../src/common/imagxpm.cpp \
ffecfa5a
JS
268../../src/common/layout.cpp \
269../../src/common/lboxcmn.cpp \
ffecfa5a 270../../src/common/matrix.cpp \
ffecfa5a 271../../src/common/menucmn.cpp \
ffecfa5a 272../../src/common/nbkbase.cpp \
ffecfa5a
JS
273../../src/common/paper.cpp \
274../../src/common/popupcmn.cpp \
275../../src/common/prntbase.cpp \
ffecfa5a
JS
276../../src/common/quantize.cpp \
277../../src/common/radiocmn.cpp \
ffecfa5a
JS
278../../src/common/rendcmn.cpp \
279../../src/common/rgncmn.cpp \
ffecfa5a
JS
280../../src/common/settcmn.cpp \
281../../src/common/sizer.cpp \
ffecfa5a 282../../src/common/statbar.cpp \
808e3bce 283../../src/common/stockitem.cpp \
ffecfa5a 284../../src/common/tbarbase.cpp \
ffecfa5a 285../../src/common/textcmn.cpp \
ffecfa5a 286../../src/common/timercmn.cpp \
ffecfa5a
JS
287../../src/common/toplvcmn.cpp \
288../../src/common/treebase.cpp \
ffecfa5a
JS
289../../src/common/valgen.cpp \
290../../src/common/validate.cpp \
291../../src/common/valtext.cpp \
ffecfa5a 292../../src/common/wincmn.cpp \
a2dc319b
WS
293../../src/common/xpmdecod.cpp
294
295LOWLEVEL_SRC = $(PALMOS_LOWLEVEL_SRC)
296
297GUI_SRC = $(PALMOS_SRC) $(PALMOS_DESKTOP_SRC)
298
299BASE_PLATFORM_SRC = $(BASE_PALMOS_SRC)
300
301BASE_AND_GUI_PLATFORM_SRC = $(BASE_AND_GUI_PALMOS_SRC)
302
303BASE_SRC = $(BASE_CMN_SRC) $(BASE_PLATFORM_SRC)
304
305BASE_AND_GUI_SRC = $(BASE_AND_GUI_CMN_SRC) $(BASE_AND_GUI_PLATFORM_SRC)
306
307NET_SRC = $(NET_CMN_SRC)
308
309CORE_SRC = $(LOWLEVEL_SRC) $(GUI_SRC) $(GUI_CMN_SRC)
310
311# ADVANCED_SRC =
312# MEDIA_SRC =
313# HTML_SRC =
314# ODBC_SRC =
315# DBGRID_SRC =
316# XRC_SRC =
317# XML_SRC =
318
319SOURCES = ../../samples/minimal/minimal.cpp \
320$(BASE_SRC) \
321$(BASE_AND_GUI_SRC) \
322$(NET_SRC) \
323$(CORE_SRC) \
324$(ADVANCED_SRC) \
325$(MEDIA_SRC) \
326$(HTML_SRC) \
327$(ODBC_SRC) \
328$(DBGRID_SRC) \
329$(XRC_SRC) \
330$(XML_SRC) \
331../../src/common/db.cpp \
332../../src/common/dbgrid.cpp \
333../../src/common/dbtable.cpp \
334../../src/common/taskbarcmn.cpp \
ffecfa5a 335../../src/common/xtixml.cpp \
ffecfa5a 336../../src/generic/renderg.cpp \
324eeecb 337../../src/palmos/datectrl.cpp \
ffecfa5a 338../../src/palmos/glcanvas.cpp \
ffecfa5a 339../../src/palmos/joystick.cpp \
555f645a 340../../src/palmos/progdlg.cpp \
a2dc319b 341../../src/palmos/sound.cpp
ffecfa5a
JS
342
343RESOURCES = ../../include/wx/palmos/wxWidgets.xrd ../../include/wx/palmos/Version.xrd
344DEFS_FILE = ../../include/wx/palmos/wxWidgets.def
345SLD_FILE = ../../include/wx/palmos/wxWidgets.sld
346
347## --------------------------------------------------------------------------
348# Review Database information
349# Register Creator ID at: http://dev.palmos.com/creatorid/
350## --------------------------------------------------------------------------
351
68351053 352CREATOR_ID = wx06
ffecfa5a
JS
353DB_TYPE = appl
354
355DATABASE_RESET =
356DATABASE_BACKUP = -b
357DATABASE_HIDDEN =
358DATABASE_PROTECT =
359DATABASE_VERSION = 1
360
361LOCALE = enUS
362DATABASE_NAME = $(APP_NAME)
363
364## --------------------------------------------------------------------------
365# Choose SDK
366# Supported values:
367# sdk-6
368## --------------------------------------------------------------------------
369
370SDK_VERSION = sdk-6
371
372ifeq ($(SDK_LOCATION),)
373SDK_LOCATION=../../
374endif
375## --------------------------------------------------------------------------
376# Build Settings
377# Review the following for your needs.
378# The default settings build with debug information and no optimization and
379# a target platform of an actual device.
380## --------------------------------------------------------------------------
381
382#
383# Set Debug or Release configuration for this project via the project
384# properties (right-click on the project and select Properties).
385#
386DEBUG_OR_RELEASE=Debug
387
388#
389# Set the target platform for the build; either Device or Simulator
390# Use Device as a target for emulator builds.
391#
392TARGET_PLATFORM=Simulator
393
394# Specify the level of optimization that you want:
395# NONE, SOME, FULL, INTRAPROCEDURAL, INTERPROCEDURAL, INLINING.
396# Leave blank to select FULL for release builds, and NONE for
397# debug builds.
398# INTRAPROCEDURAL, INTERPROCEDURAL, INLINING are applicable to
399# device builds only; simulator builds will translate those levels
400# to FULL.
401OPTIMIZE_LEVEL = NONE
402
403# Specify warning level
404# NONE = suppress all warnings
405# ALL = enable all warnings
406# <undefined> = default warnings
407WARNING_LEVEL =
408
409# Specify exception handling support
410# true = enable it
411# false = don't enable it
412ENABLE_EXCEPTION_HANDLING=true
413
414# List additional libraries to link with
415# (Full or project relative path)
416ADDITIONAL_LINK_LIBRARIES =
417ADDITIONAL_SIM_LINK_LIBRARIES =
418
419# Additional paths to look for #include "header"
420# (Source file directories are automatically included)
421# Please note that both local and system include paths should
422# either use "cygwin" syntax or if in Windows syntax the should
423# be quoted. ie: ../MyLibrary/headers or "C:\Source\MyLibrary\headers"
424# Additionally, you must explicly specify the "-I" prior to each
425# path included in this variable. Spaces are used to separate
426# each path from each other.
771be77f
VZ
427LOCAL_INCLUDE_PATHS = -Irsc -I../../lib/gcc_lib/palmos -I../../include
428LOCAL_SIM_INCLUDE_PATHS = $(LOCAL_INCLUDE_PATHS)
ffecfa5a
JS
429
430# Additional paths to look for #include <header>
431# (Palm OS SDK directories are automatically included)
432# Additionally, you must explicly specify the "-I" prior to each
433# path included in this variable. Spaces are used to separate
434# each path from each other.
435SYSTEM_INCLUDE_PATHS =
436SYSTEM_SIM_INCLUDE_PATHS =
437
438# Specify any needed preprocessor symbols.
439# If you set DEFINES to "ASSERTLEVEL=1", the compiler will see "-DASSERTLEVEL=1"
440# (separate individual entries with spaces)
441DEFINES =
442SIM_DEFINES =
443
444# Specify additional compiler flags for all files
445ADDITIONAL_COMPILER_FLAGS =
446ADDITIONAL_SIM_COMPILER_FLAGS =
447
448# Specify additional linker flags
449ADDITIONAL_LINKER_FLAGS =
450ADDITIONAL_SIM_LINKER_FLAGS =
451
452# Specify additional archival flags (for static libraries)
453ADDITIONAL_AR_FLAGS =
454ADDITIONAL_SIM_AR_FLAGS =
455
456
457# Tools Directory
458# Normally you wouldn't want to override this since the necessary tools
459# are in the PATH. But if you experimenting with other tools, then
460# reset the directory here
461# If overridden, end with a trailing '/'
462
463ifeq ($(TOOLS_DIR), )
464TOOLS_DIR = ../../../PalmOSTools/
465endif
466
467## --------------------------------------------------------------------------
468# Resource Settings
469## --------------------------------------------------------------------------
470
471# Specify the target text encoding
472# LATIN, JAPANESE, SIMPLIFIED_CHINESE
473TEXTENCODING = LATIN
474
475# Specify error levels for locale and text encoding
476# NOCHECK
477# STRICT
478# <default>
479LOCALE_CHECKING =
480
481# Specific if encoding should be checked
482# FALSE, TRUE
483STRICT_ENCODING = FALSE
484
485## --------------------------------------------------------------------------
486# Output Settings
487## --------------------------------------------------------------------------
488
489# Modify if you want object and output files to be in different locations
490# (However, please note that all three object directories must be different
491# for the makefile engine to properly operate.)
492# OUTPUT_DIR is the "main" output directory, where all linked and binary objects
493# will be put.
494
495DEBUG_DEVICE_OUTPUT_DIR := DebugDevice
496RELEASE_DEVICE_OUTPUT_DIR := ReleaseDevice
497DEBUG_SIMULATOR_OUTPUT_DIR := DebugSim
498RELEASE_SIMULATOR_OUTPUT_DIR := ReleaseSim
499RSC_OBJ_DIR := ResourceObjs
500
501## --------------------------------------------------------------------------
502# Makefiles
503## --------------------------------------------------------------------------
504
505
506## include the makefile engine
507include makefile-engine.mk
508
509## conditionally include your own custom.mk for your specific overrides or definitions
510## this is useful if you don't want to use the auto-generated.mk values
511## for some reason
512-include custom.mk