]> git.saurik.com Git - wxWidgets.git/blob - build/palmos/makefile
Next step on bringing PalmOS build to the same filelist as in bakefiles: adjustements...
[wxWidgets.git] / build / palmos / makefile
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
14 SHELL = /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
23 ARTIFACT_NAME = wxWidgets
24 EMPTY =
25 SPACE =$(EMPTY) $(EMPTY)
26 ESCAPED_ARTIFACT_NAME = $(subst $(SPACE),\ ,$(ARTIFACT_NAME))
27
28 PROJECT_NAME = wxWidgets
29 PRC_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
44 BASE_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 \
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 \
65 ../../src/common/fs_zip.cpp
66
67 SOURCES = ../../samples/minimal/minimal.cpp \
68 $(BASE_CMN_SRC) \
69 ../../src/common/accesscmn.cpp \
70 ../../src/common/appcmn.cpp \
71 ../../src/common/artprov.cpp \
72 ../../src/common/artstd.cpp \
73 ../../src/common/bmpbase.cpp \
74 ../../src/common/bookctrl.cpp \
75 ../../src/common/choiccmn.cpp \
76 ../../src/common/clipcmn.cpp \
77 ../../src/common/cmdproc.cpp \
78 ../../src/common/cmndata.cpp \
79 ../../src/common/containr.cpp \
80 ../../src/common/cshelp.cpp \
81 ../../src/common/ctrlcmn.cpp \
82 ../../src/common/ctrlsub.cpp \
83 ../../src/common/datacmn.cpp \
84 ../../src/common/db.cpp \
85 ../../src/common/dbgrid.cpp \
86 ../../src/common/dbtable.cpp \
87 ../../src/common/dcbase.cpp \
88 ../../src/common/dlgcmn.cpp \
89 ../../src/common/dndcmn.cpp \
90 ../../src/common/dobjcmn.cpp \
91 ../../src/common/docmdi.cpp \
92 ../../src/common/docview.cpp \
93 ../../src/common/dpycmn.cpp \
94 ../../src/common/dseldlg.cpp \
95 ../../src/common/effects.cpp \
96 ../../src/common/event.cpp \
97 ../../src/common/fddlgcmn.cpp \
98 ../../src/common/fldlgcmn.cpp \
99 ../../src/common/fontcmn.cpp \
100 ../../src/common/fontmap.cpp \
101 ../../src/common/framecmn.cpp \
102 ../../src/common/fs_inet.cpp \
103 ../../src/common/fs_mem.cpp \
104 ../../src/common/ftp.cpp \
105 ../../src/common/gaugecmn.cpp \
106 ../../src/common/gbsizer.cpp \
107 ../../src/common/gdicmn.cpp \
108 ../../src/common/geometry.cpp \
109 ../../src/common/gifdecod.cpp \
110 ../../src/common/hash.cpp \
111 ../../src/common/hashmap.cpp \
112 ../../src/common/helpbase.cpp \
113 ../../src/common/http.cpp \
114 ../../src/common/iconbndl.cpp \
115 ../../src/common/imagall.cpp \
116 ../../src/common/imagbmp.cpp \
117 ../../src/common/image.cpp \
118 ../../src/common/imagfill.cpp \
119 ../../src/common/imaggif.cpp \
120 ../../src/common/imagiff.cpp \
121 ../../src/common/imagjpeg.cpp \
122 ../../src/common/imagpcx.cpp \
123 ../../src/common/imagpng.cpp \
124 ../../src/common/imagpnm.cpp \
125 ../../src/common/imagtiff.cpp \
126 ../../src/common/imagxpm.cpp \
127 ../../src/common/init.cpp \
128 ../../src/common/intl.cpp \
129 ../../src/common/ipcbase.cpp \
130 ../../src/common/layout.cpp \
131 ../../src/common/lboxcmn.cpp \
132 ../../src/common/list.cpp \
133 ../../src/common/log.cpp \
134 ../../src/common/longlong.cpp \
135 ../../src/common/matrix.cpp \
136 ../../src/common/memory.cpp \
137 ../../src/common/menucmn.cpp \
138 ../../src/common/mimecmn.cpp \
139 ../../src/common/module.cpp \
140 ../../src/common/msgout.cpp \
141 ../../src/common/mstream.cpp \
142 ../../src/common/nbkbase.cpp \
143 ../../src/common/object.cpp \
144 ../../src/common/paper.cpp \
145 ../../src/common/popupcmn.cpp \
146 ../../src/common/prntbase.cpp \
147 ../../src/common/process.cpp \
148 ../../src/common/protocol.cpp \
149 ../../src/common/quantize.cpp \
150 ../../src/common/radiocmn.cpp \
151 ../../src/common/regex.cpp \
152 ../../src/common/rendcmn.cpp \
153 ../../src/common/rgncmn.cpp \
154 ../../src/common/sckaddr.cpp \
155 ../../src/common/sckfile.cpp \
156 ../../src/common/sckipc.cpp \
157 ../../src/common/sckstrm.cpp \
158 ../../src/common/settcmn.cpp \
159 ../../src/common/sizer.cpp \
160 ../../src/common/socket.cpp \
161 ../../src/common/statbar.cpp \
162 ../../src/common/stockitem.cpp \
163 ../../src/common/stopwatch.cpp \
164 ../../src/common/strconv.cpp \
165 ../../src/common/stream.cpp \
166 ../../src/common/string.cpp \
167 ../../src/common/sysopt.cpp \
168 ../../src/common/taskbarcmn.cpp \
169 ../../src/common/tbarbase.cpp \
170 ../../src/common/textbuf.cpp \
171 ../../src/common/textcmn.cpp \
172 ../../src/common/textfile.cpp \
173 ../../src/common/timercmn.cpp \
174 ../../src/common/tokenzr.cpp \
175 ../../src/common/toplvcmn.cpp \
176 ../../src/common/treebase.cpp \
177 ../../src/common/txtstrm.cpp \
178 ../../src/common/url.cpp \
179 ../../src/common/utilscmn.cpp \
180 ../../src/common/valgen.cpp \
181 ../../src/common/validate.cpp \
182 ../../src/common/valtext.cpp \
183 ../../src/common/variant.cpp \
184 ../../src/common/wfstream.cpp \
185 ../../src/common/wincmn.cpp \
186 ../../src/common/wxchar.cpp \
187 ../../src/common/xpmdecod.cpp \
188 ../../src/common/xti.cpp \
189 ../../src/common/xtistrm.cpp \
190 ../../src/common/xtixml.cpp \
191 ../../src/common/zipstrm.cpp \
192 ../../src/common/zstream.cpp \
193 ../../src/generic/renderg.cpp \
194 ../../src/palmos/accel.cpp \
195 ../../src/palmos/app.cpp \
196 ../../src/palmos/base.cpp \
197 ../../src/palmos/bitmap.cpp \
198 ../../src/palmos/bmpbuttn.cpp \
199 ../../src/palmos/brush.cpp \
200 ../../src/palmos/button.cpp \
201 ../../src/palmos/caret.cpp \
202 ../../src/palmos/checkbox.cpp \
203 ../../src/palmos/checklst.cpp \
204 ../../src/palmos/choice.cpp \
205 ../../src/palmos/clipbrd.cpp \
206 ../../src/palmos/colordlg.cpp \
207 ../../src/palmos/colour.cpp \
208 ../../src/palmos/combobox.cpp \
209 ../../src/palmos/control.cpp \
210 ../../src/palmos/cursor.cpp \
211 ../../src/palmos/data.cpp \
212 ../../src/palmos/datectrl.cpp \
213 ../../src/palmos/dc.cpp \
214 ../../src/palmos/dcclient.cpp \
215 ../../src/palmos/dcmemory.cpp \
216 ../../src/palmos/dcprint.cpp \
217 ../../src/palmos/dcscreen.cpp \
218 ../../src/palmos/dialog.cpp \
219 ../../src/palmos/dib.cpp \
220 ../../src/palmos/dir.cpp \
221 ../../src/palmos/dirdlg.cpp \
222 ../../src/palmos/display.cpp \
223 ../../src/palmos/dragimag.cpp \
224 ../../src/palmos/dummy.cpp \
225 ../../src/palmos/enhmeta.cpp \
226 ../../src/palmos/evtloop.cpp \
227 ../../src/palmos/fdrepdlg.cpp \
228 ../../src/palmos/filedlg.cpp \
229 ../../src/palmos/font.cpp \
230 ../../src/palmos/fontdlg.cpp \
231 ../../src/palmos/fontenum.cpp \
232 ../../src/palmos/fontutil.cpp \
233 ../../src/palmos/frame.cpp \
234 ../../src/palmos/gauge.cpp \
235 ../../src/palmos/gdiimage.cpp \
236 ../../src/palmos/gdiobj.cpp \
237 ../../src/palmos/glcanvas.cpp \
238 ../../src/palmos/help.cpp \
239 ../../src/palmos/icon.cpp \
240 ../../src/palmos/imaglist.cpp \
241 ../../src/palmos/joystick.cpp \
242 ../../src/palmos/listbox.cpp \
243 ../../src/palmos/listctrl.cpp \
244 ../../src/palmos/main.cpp \
245 ../../src/palmos/mdi.cpp \
246 ../../src/palmos/menu.cpp \
247 ../../src/palmos/menuitem.cpp \
248 ../../src/palmos/metafile.cpp \
249 ../../src/palmos/minifram.cpp \
250 ../../src/palmos/msgdlg.cpp \
251 ../../src/palmos/nativdlg.cpp \
252 ../../src/palmos/notebook.cpp \
253 ../../src/palmos/ownerdrw.cpp \
254 ../../src/palmos/palette.cpp \
255 ../../src/palmos/pen.cpp \
256 ../../src/palmos/popupwin.cpp \
257 ../../src/palmos/prefconf.cpp \
258 ../../src/palmos/printdlg.cpp \
259 ../../src/palmos/printpalm.cpp \
260 ../../src/palmos/progdlg.cpp \
261 ../../src/palmos/radiobox.cpp \
262 ../../src/palmos/radiobut.cpp \
263 ../../src/palmos/region.cpp \
264 ../../src/palmos/scrolbar.cpp \
265 ../../src/palmos/settings.cpp \
266 ../../src/palmos/slider.cpp \
267 ../../src/palmos/snglinst.cpp \
268 ../../src/palmos/sound.cpp \
269 ../../src/palmos/spinbutt.cpp \
270 ../../src/palmos/spinctrl.cpp \
271 ../../src/palmos/statbmp.cpp \
272 ../../src/palmos/statbox.cpp \
273 ../../src/palmos/statbrpalm.cpp \
274 ../../src/palmos/statline.cpp \
275 ../../src/palmos/stattext.cpp \
276 ../../src/palmos/taskbar.cpp \
277 ../../src/palmos/toolbar.cpp \
278 ../../src/palmos/textctrl.cpp \
279 ../../src/palmos/tglbtn.cpp \
280 ../../src/palmos/thread.cpp \
281 ../../src/palmos/timer.cpp \
282 ../../src/palmos/tooltip.cpp \
283 ../../src/palmos/toplevel.cpp \
284 ../../src/palmos/treectrl.cpp \
285 ../../src/palmos/utils.cpp \
286 ../../src/palmos/utilsexc.cpp \
287 ../../src/palmos/utilsgui.cpp \
288 ../../src/palmos/volume.cpp \
289 ../../src/palmos/window.cpp
290
291 RESOURCES = ../../include/wx/palmos/wxWidgets.xrd ../../include/wx/palmos/Version.xrd
292 DEFS_FILE = ../../include/wx/palmos/wxWidgets.def
293 SLD_FILE = ../../include/wx/palmos/wxWidgets.sld
294
295 ## --------------------------------------------------------------------------
296 # Review Database information
297 # Register Creator ID at: http://dev.palmos.com/creatorid/
298 ## --------------------------------------------------------------------------
299
300 CREATOR_ID = wx06
301 DB_TYPE = appl
302
303 DATABASE_RESET =
304 DATABASE_BACKUP = -b
305 DATABASE_HIDDEN =
306 DATABASE_PROTECT =
307 DATABASE_VERSION = 1
308
309 LOCALE = enUS
310 DATABASE_NAME = $(APP_NAME)
311
312 ## --------------------------------------------------------------------------
313 # Choose SDK
314 # Supported values:
315 # sdk-6
316 ## --------------------------------------------------------------------------
317
318 SDK_VERSION = sdk-6
319
320 ifeq ($(SDK_LOCATION),)
321 SDK_LOCATION=../../
322 endif
323 ## --------------------------------------------------------------------------
324 # Build Settings
325 # Review the following for your needs.
326 # The default settings build with debug information and no optimization and
327 # a target platform of an actual device.
328 ## --------------------------------------------------------------------------
329
330 #
331 # Set Debug or Release configuration for this project via the project
332 # properties (right-click on the project and select Properties).
333 #
334 DEBUG_OR_RELEASE=Debug
335
336 #
337 # Set the target platform for the build; either Device or Simulator
338 # Use Device as a target for emulator builds.
339 #
340 TARGET_PLATFORM=Simulator
341
342 # Specify the level of optimization that you want:
343 # NONE, SOME, FULL, INTRAPROCEDURAL, INTERPROCEDURAL, INLINING.
344 # Leave blank to select FULL for release builds, and NONE for
345 # debug builds.
346 # INTRAPROCEDURAL, INTERPROCEDURAL, INLINING are applicable to
347 # device builds only; simulator builds will translate those levels
348 # to FULL.
349 OPTIMIZE_LEVEL = NONE
350
351 # Specify warning level
352 # NONE = suppress all warnings
353 # ALL = enable all warnings
354 # <undefined> = default warnings
355 WARNING_LEVEL =
356
357 # Specify exception handling support
358 # true = enable it
359 # false = don't enable it
360 ENABLE_EXCEPTION_HANDLING=true
361
362 # List additional libraries to link with
363 # (Full or project relative path)
364 ADDITIONAL_LINK_LIBRARIES =
365 ADDITIONAL_SIM_LINK_LIBRARIES =
366
367 # Additional paths to look for #include "header"
368 # (Source file directories are automatically included)
369 # Please note that both local and system include paths should
370 # either use "cygwin" syntax or if in Windows syntax the should
371 # be quoted. ie: ../MyLibrary/headers or "C:\Source\MyLibrary\headers"
372 # Additionally, you must explicly specify the "-I" prior to each
373 # path included in this variable. Spaces are used to separate
374 # each path from each other.
375 LOCAL_INCLUDE_PATHS = -Irsc -I../../lib/gcc_lib/palmos -I../../include
376 LOCAL_SIM_INCLUDE_PATHS = $(LOCAL_INCLUDE_PATHS)
377
378 # Additional paths to look for #include <header>
379 # (Palm OS SDK directories are automatically included)
380 # Additionally, you must explicly specify the "-I" prior to each
381 # path included in this variable. Spaces are used to separate
382 # each path from each other.
383 SYSTEM_INCLUDE_PATHS =
384 SYSTEM_SIM_INCLUDE_PATHS =
385
386 # Specify any needed preprocessor symbols.
387 # If you set DEFINES to "ASSERTLEVEL=1", the compiler will see "-DASSERTLEVEL=1"
388 # (separate individual entries with spaces)
389 DEFINES =
390 SIM_DEFINES =
391
392 # Specify additional compiler flags for all files
393 ADDITIONAL_COMPILER_FLAGS =
394 ADDITIONAL_SIM_COMPILER_FLAGS =
395
396 # Specify additional linker flags
397 ADDITIONAL_LINKER_FLAGS =
398 ADDITIONAL_SIM_LINKER_FLAGS =
399
400 # Specify additional archival flags (for static libraries)
401 ADDITIONAL_AR_FLAGS =
402 ADDITIONAL_SIM_AR_FLAGS =
403
404
405 # Tools Directory
406 # Normally you wouldn't want to override this since the necessary tools
407 # are in the PATH. But if you experimenting with other tools, then
408 # reset the directory here
409 # If overridden, end with a trailing '/'
410
411 ifeq ($(TOOLS_DIR), )
412 TOOLS_DIR = ../../../PalmOSTools/
413 endif
414
415 ## --------------------------------------------------------------------------
416 # Resource Settings
417 ## --------------------------------------------------------------------------
418
419 # Specify the target text encoding
420 # LATIN, JAPANESE, SIMPLIFIED_CHINESE
421 TEXTENCODING = LATIN
422
423 # Specify error levels for locale and text encoding
424 # NOCHECK
425 # STRICT
426 # <default>
427 LOCALE_CHECKING =
428
429 # Specific if encoding should be checked
430 # FALSE, TRUE
431 STRICT_ENCODING = FALSE
432
433 ## --------------------------------------------------------------------------
434 # Output Settings
435 ## --------------------------------------------------------------------------
436
437 # Modify if you want object and output files to be in different locations
438 # (However, please note that all three object directories must be different
439 # for the makefile engine to properly operate.)
440 # OUTPUT_DIR is the "main" output directory, where all linked and binary objects
441 # will be put.
442
443 DEBUG_DEVICE_OUTPUT_DIR := DebugDevice
444 RELEASE_DEVICE_OUTPUT_DIR := ReleaseDevice
445 DEBUG_SIMULATOR_OUTPUT_DIR := DebugSim
446 RELEASE_SIMULATOR_OUTPUT_DIR := ReleaseSim
447 RSC_OBJ_DIR := ResourceObjs
448
449 ## --------------------------------------------------------------------------
450 # Makefiles
451 ## --------------------------------------------------------------------------
452
453
454 ## include the makefile engine
455 include makefile-engine.mk
456
457 ## conditionally include your own custom.mk for your specific overrides or definitions
458 ## this is useful if you don't want to use the auto-generated.mk values
459 ## for some reason
460 -include custom.mk