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