2006-07-28 09:53:18 +02:00
|
|
|
# -*- mode: Makefile; compile-command: "make ARCH=68K_ONLY MEMDEBUG=TRUE"; -*-
|
2006-10-28 16:48:08 +02:00
|
|
|
# Copyright 2002-2006 by Eric House (xwords@eehouse.org). All rights
|
|
|
|
# reserved.
|
2003-11-16 20:23:48 +01:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
2006-03-31 12:57:01 +02:00
|
|
|
PLATFORM=obj_palm
|
2007-01-16 03:48:27 +01:00
|
|
|
SVNREV = $(shell svnversion -n .. | tr ':' '_')
|
2006-03-31 12:57:01 +02:00
|
|
|
|
|
|
|
ifeq ($(MEMDEBUG),TRUE)
|
2008-02-17 22:48:48 +01:00
|
|
|
DEBUG = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING
|
2006-03-31 12:57:01 +02:00
|
|
|
PLATFORM := $(PLATFORM)_memdebug
|
2006-09-16 18:08:33 +02:00
|
|
|
CFLAGS += $(DEBUG) -g -O0
|
2006-03-31 12:57:01 +02:00
|
|
|
CSFLAGS += -O0 -g
|
|
|
|
NAME = "CrossDbg"
|
|
|
|
ICONTEXT = "CrossDbg"
|
|
|
|
APPID ?= Xwdb
|
|
|
|
else
|
|
|
|
PLATFORM := $(PLATFORM)_rel
|
|
|
|
CFLAGS += -O2 -fomit-frame-pointer
|
|
|
|
# The -Os flag breaks multilink, at least as I'm using it
|
|
|
|
CSFLAGS += -OS -fomit-frame-pointer
|
|
|
|
NAME = "Crosswords"
|
|
|
|
ICONTEXT = "Crosswords"
|
|
|
|
APPID ?= Xwr4
|
|
|
|
endif
|
|
|
|
|
2003-11-16 20:23:48 +01:00
|
|
|
LANG=en_US
|
2006-03-31 12:57:01 +02:00
|
|
|
ROOTNAME = $(NAME)
|
2003-11-16 20:23:48 +01:00
|
|
|
BITMAPS = ./bmps
|
|
|
|
TYPE = appl
|
|
|
|
MLPREFIX = /usr
|
|
|
|
DICT = $(shell echo $$BASENG_PATH)
|
|
|
|
|
2006-01-16 07:07:33 +01:00
|
|
|
ARCH ?= ARM_ONLY
|
2004-04-20 06:11:57 +02:00
|
|
|
|
2005-03-08 06:36:33 +01:00
|
|
|
ifeq ($(ARCH),ARM_ONLY)
|
2006-03-31 12:57:01 +02:00
|
|
|
PLATFORM := $(PLATFORM)_armonly
|
2005-03-08 06:36:33 +01:00
|
|
|
BUILD_AS_PNOLET = 1
|
2006-12-20 05:57:36 +01:00
|
|
|
TARGET=$(PLATFORM)/xw4_ARM_$(SVNREV).prc
|
2005-03-08 06:36:33 +01:00
|
|
|
else
|
|
|
|
ifeq ($(ARCH),68K_ONLY)
|
2006-03-31 12:57:01 +02:00
|
|
|
PLATFORM := $(PLATFORM)_68konly
|
2006-12-20 05:57:36 +01:00
|
|
|
TARGET=$(PLATFORM)/xw4_68K_$(SVNREV).prc
|
2005-03-08 06:36:33 +01:00
|
|
|
else
|
|
|
|
ifeq ($(ARCH),SONY)
|
|
|
|
# No highres in sony build case
|
2006-03-31 12:57:01 +02:00
|
|
|
PLATFORM := $(PLATFORM)_sony
|
2005-03-08 06:36:33 +01:00
|
|
|
BUILD_AS_PNOLET = 1
|
|
|
|
FEATURE_PNOAND68K = -DFEATURE_PNOAND68K
|
2006-12-20 05:57:36 +01:00
|
|
|
TARGET=$(PLATFORM)/xw4_SONY_$(SVNREV).prc
|
2005-03-08 06:36:33 +01:00
|
|
|
else
|
|
|
|
ifeq ($(ARCH),COMBINED)
|
2006-03-31 12:57:01 +02:00
|
|
|
PLATFORM := $(PLATFORM)_combined
|
2004-10-16 07:05:27 +02:00
|
|
|
BUILD_AS_PNOLET = 1
|
2005-03-08 06:36:33 +01:00
|
|
|
FEATURE_PNOAND68K = -DFEATURE_PNOAND68K
|
2007-03-17 18:30:30 +01:00
|
|
|
TARGET=$(PLATFORM)/xw4_COMB_$(SVNREV).prc
|
2005-03-08 06:36:33 +01:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2007-04-12 03:22:31 +02:00
|
|
|
PLATFORM := $(PLATFORM)_$(shell echo $(LANG) | tr [A-Z] [a-z])
|
2005-03-08 06:36:33 +01:00
|
|
|
|
|
|
|
APPNAME = "$(NAME)"
|
2003-11-16 20:23:48 +01:00
|
|
|
|
|
|
|
PALM_TOOLS_PREFIX = $(shell echo $$PALM_TOOLS_PREFIX)
|
|
|
|
|
|
|
|
ifeq (x$(PALM_TOOLS_PREFIX)x, xx)
|
|
|
|
PALM_TOOLS_PREFIX = m68k-palmos-
|
|
|
|
endif
|
|
|
|
#PALM_TOOLS_PREFIX=m68k-palmos-coff-
|
|
|
|
|
|
|
|
CC = $(PALM_TOOLS_PREFIX)gcc
|
|
|
|
AR = $(PALM_TOOLS_PREFIX)ar
|
|
|
|
MULTILINK = $(PALM_TOOLS_PREFIX)multilink
|
2006-01-16 07:07:33 +01:00
|
|
|
###############################################################################
|
|
|
|
# par is a utility for manipulating .prc and .pdb files. See
|
|
|
|
# http://djw.org/product/palm/par/index.html to download source.
|
|
|
|
###############################################################################
|
2003-11-16 20:23:48 +01:00
|
|
|
PAR = par
|
|
|
|
PILRC = pilrc
|
2006-01-16 07:07:33 +01:00
|
|
|
BUILD-PRC = build-prc
|
|
|
|
OBJ-RES = m68k-palmos-obj-res
|
2003-11-16 20:23:48 +01:00
|
|
|
|
|
|
|
MULTILINK_OPTIONS = -basename $(ROOTNAME) -segmentsize 27k -g \
|
|
|
|
-deadstrip -verbose -gdb-script app.gdb
|
|
|
|
|
2004-09-24 03:21:42 +02:00
|
|
|
MYDEFS_COMMON = $(PASSTHRU) -DXW_FEATURE_UTILS -DPOINTER_SUPPORT \
|
|
|
|
-DKEY_SUPPORT -DOVERRIDE_EDGE_FOR_INDEX -DCOLOR_SUPPORT \
|
2007-01-19 09:22:14 +01:00
|
|
|
-DSHOW_PROGRESS $(HASHDEF) -DNO_REG_REQUIRED -DPERIMETER_FOCUS
|
2003-11-16 20:23:48 +01:00
|
|
|
|
|
|
|
# turn on letting users pick tiles "face-up"
|
2004-09-24 03:21:42 +02:00
|
|
|
MYDEFS_COMMON += -DFEATURE_TRAY_EDIT
|
2004-09-19 05:17:27 +02:00
|
|
|
|
2004-07-01 03:15:15 +02:00
|
|
|
# turn on limits to searches on board and in tray (number of tiles to
|
|
|
|
# use)
|
2004-09-24 03:21:42 +02:00
|
|
|
MYDEFS_COMMON += -DXWFEATURE_SEARCHLIMIT
|
2004-07-01 03:15:15 +02:00
|
|
|
|
2004-09-24 03:21:42 +02:00
|
|
|
#MYDEFS_COMMON += -DXWFEATURE_HINT_CONFIG
|
2004-09-19 05:17:27 +02:00
|
|
|
|
2009-02-17 06:54:28 +01:00
|
|
|
ifdef XWFEATURE_STANDALONE_ONLY
|
|
|
|
MYDEFS_COMMON += -DXWFEATURE_STANDALONE_ONLY
|
|
|
|
else
|
2003-12-12 11:19:21 +01:00
|
|
|
# Turn on network play over IP via cellular modem. Very much
|
|
|
|
# experimental at this point!
|
2009-02-17 06:54:28 +01:00
|
|
|
MYDEFS_COMMON += -DXWFEATURE_RELAY -DRELAY_NAME_DEFAULT="\"localhost\""
|
2003-11-16 20:23:48 +01:00
|
|
|
|
2007-11-15 15:39:33 +01:00
|
|
|
# turn on bluetooth comms option for 68K and ARM
|
2009-02-17 06:54:28 +01:00
|
|
|
#BLUETOOTH = -DXWFEATURE_BLUETOOTH -DBT_USE_L2CAP
|
2007-12-05 07:33:37 +01:00
|
|
|
# -DCOMMS_HEARTBEAT
|
2007-11-15 15:39:33 +01:00
|
|
|
#BLUETOOTH = -DXWFEATURE_BLUETOOTH -DBT_USE_RFCOMM
|
2007-03-15 02:21:56 +01:00
|
|
|
MYDEFS_COMMON += $(BLUETOOTH)
|
2006-08-26 23:12:10 +02:00
|
|
|
|
2009-02-17 06:54:28 +01:00
|
|
|
#MYDEFS_COMMON += -DXWFEATURE_IR
|
|
|
|
|
|
|
|
endif # ifdef XWFEATURE_STANDALONE_ONLY
|
|
|
|
|
2006-08-26 23:12:10 +02:00
|
|
|
# Add menu allowing to choose to run 68K or ARM
|
2007-03-17 18:30:30 +01:00
|
|
|
ifeq ($(ARCH),COMBINED)
|
|
|
|
MYDEFS_COMMON += -DFEATURE_DUALCHOOSE
|
|
|
|
endif
|
2006-08-23 06:44:55 +02:00
|
|
|
|
2005-09-04 22:32:16 +02:00
|
|
|
# For Danish and perhaps other languages, custom-measure glyph height
|
|
|
|
# so that overtall letters have a chance of fitting.
|
|
|
|
MYDEFS_COMMON += -DTALL_FONTS
|
|
|
|
|
2003-12-10 06:52:39 +01:00
|
|
|
# Turn on ability to handle 4-byte-node DAWG files. These are of type
|
|
|
|
# Xwr4, not Xwr3 like the old ones. Currently this option means the
|
|
|
|
# binary won't be able to read or even find the old dictionaries.
|
|
|
|
# Don't release with this on until there's a UI decision and code on
|
|
|
|
# how to help users transition.
|
2004-09-24 03:21:42 +02:00
|
|
|
MYDEFS_COMMON += -DNODE_CAN_4
|
2003-12-10 06:52:39 +01:00
|
|
|
|
2006-05-15 06:24:30 +02:00
|
|
|
MYDEFS_COMMON += -DSVN_REV=\"$(shell svnversion -n .)\"
|
|
|
|
|
2004-09-24 03:21:42 +02:00
|
|
|
MYDEFS_ARM = -D__LITTLE_ENDIAN -DXW_TARGET_PNO $(MYDEFS_COMMON)
|
2006-08-26 23:12:10 +02:00
|
|
|
MYDEFS_68K = -DPLATFORM_PALM -D__BIG_ENDIAN $(MYDEFS_COMMON) \
|
|
|
|
-DAPPNAME=\"$(APPNAME)\" \
|
2006-10-10 03:34:37 +02:00
|
|
|
$(BLUETOOTH)
|
2006-08-26 23:12:10 +02:00
|
|
|
|
2004-09-24 03:21:42 +02:00
|
|
|
|
2003-11-16 20:23:48 +01:00
|
|
|
BITMAP_RSRCS = \
|
|
|
|
$(BITMAPS)/rightarrow.pbitm \
|
|
|
|
$(BITMAPS)/downarrow.pbitm \
|
|
|
|
$(BITMAPS)/flipbutton.pbitm \
|
|
|
|
$(BITMAPS)/valuebutton.pbitm \
|
|
|
|
$(BITMAPS)/lightbulb.pbitm \
|
|
|
|
$(BITMAPS)/traybuttons.pbitm \
|
|
|
|
$(BITMAPS)/showtray.pbitm \
|
|
|
|
$(BITMAPS)/xwords4.pbitm \
|
|
|
|
|
2006-08-23 06:44:55 +02:00
|
|
|
# INCLUDES += -I/usr/local/share/palmdev/sdk-5r3/Extensions/ExpansionMgr
|
2006-12-13 06:03:19 +01:00
|
|
|
ifdef BLUETOOTH
|
2006-08-23 06:44:55 +02:00
|
|
|
INCLUDES += -I/usr/local/share/palmdev/sdk-5r3/include/Extensions/Bluetooth
|
2006-12-13 06:03:19 +01:00
|
|
|
endif
|
2003-11-16 20:23:48 +01:00
|
|
|
|
2006-11-03 07:23:54 +01:00
|
|
|
XWFEATURE_FIVEWAY = -DXWFEATURE_FIVEWAY -DKEYBOARD_NAV
|
2007-01-18 06:49:54 +01:00
|
|
|
XWFEATURE_FIVEWAY += -DDO_TUNGSTEN_FIVEWAY
|
2004-09-24 03:21:42 +02:00
|
|
|
|
2006-10-28 16:48:08 +02:00
|
|
|
ifneq (x$(XWFEATURE_FIVEWAY)x, xx)
|
|
|
|
INCLUDES += -I/usr/local/share/palmdev/Handspring5
|
|
|
|
INCLUDES += -I/usr/local/share/palmdev/Handspring5/68K
|
|
|
|
# INCLUDES += -I/usr/local/share/palmdev/duoIncs
|
|
|
|
# INCLUDES += -I/usr/local/share/palmdev/duoIncs/68K
|
|
|
|
# INCLUDES += -I/usr/local/share/palmdev/duoIncs/68K/System
|
|
|
|
# INCLUDES += -I/usr/local/share/palmdev/duoIncs/Common/System
|
2003-11-16 20:23:48 +01:00
|
|
|
|
2006-10-28 16:48:08 +02:00
|
|
|
MYDEFS_68K += $(XWFEATURE_FIVEWAY)
|
|
|
|
MYDEFS_ARM += $(XWFEATURE_FIVEWAY)
|
2003-11-16 20:23:48 +01:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2006-03-31 12:57:01 +02:00
|
|
|
INCLUDES += -I/usr/local/share/palmdev/sdk-5r3/include/SonyIncs
|
|
|
|
INCLUDES += -I/usr/local/share/palmdev/sdk-5r3/include/SonyIncs/System
|
|
|
|
INCLUDES += -I/usr/local/share/palmdev/sdk-5r3/include/SonyIncs/Libraries
|
|
|
|
MYDEFS_68K += -DCPU_TYPE=CPU_68K
|
2003-11-16 20:23:48 +01:00
|
|
|
|
|
|
|
include ../common/config.mk
|
|
|
|
|
2004-09-24 03:21:42 +02:00
|
|
|
OBJS_68K = $(PLATFORM)/palmmain.o \
|
2003-11-16 20:23:48 +01:00
|
|
|
$(PLATFORM)/palmsavg.o \
|
|
|
|
$(PLATFORM)/gameutil.o \
|
|
|
|
$(PLATFORM)/newgame.o \
|
|
|
|
$(PLATFORM)/palmdict.o \
|
|
|
|
$(PLATFORM)/palmdraw.o \
|
|
|
|
$(PLATFORM)/palmutil.o \
|
|
|
|
$(PLATFORM)/dictui.o \
|
|
|
|
$(PLATFORM)/dictlist.o \
|
|
|
|
$(PLATFORM)/palmir.o \
|
2005-04-03 03:39:08 +02:00
|
|
|
$(PLATFORM)/palmip.o \
|
2006-08-23 06:44:55 +02:00
|
|
|
$(PLATFORM)/palmbt.o \
|
2003-11-16 20:23:48 +01:00
|
|
|
$(PLATFORM)/prefsdlg.o \
|
|
|
|
$(PLATFORM)/connsdlg.o \
|
2006-11-08 06:04:13 +01:00
|
|
|
$(PLATFORM)/palmdbg.o \
|
2003-11-16 20:23:48 +01:00
|
|
|
$(COMMONOBJ)
|
2004-09-24 03:21:42 +02:00
|
|
|
|
|
|
|
# if BUILD_AS_PNOLET is defined and FEATURE_PNOAND68K isn't, exclude
|
|
|
|
# all but enter68k.o from the 68K part of the binary (code resources).
|
2005-03-08 06:36:33 +01:00
|
|
|
ifdef BUILD_AS_PNOLET
|
2004-09-24 03:21:42 +02:00
|
|
|
OBJS = $(PLATFORM)/enter68k.o
|
|
|
|
PNOLET = pnolet
|
|
|
|
endif
|
2005-03-08 06:36:33 +01:00
|
|
|
ifndef BUILD_AS_PNOLET
|
2004-09-24 03:21:42 +02:00
|
|
|
OBJS += $(OBJS_68K)
|
2004-09-17 09:09:40 +02:00
|
|
|
else
|
2005-03-08 06:36:33 +01:00
|
|
|
ifdef FEATURE_PNOAND68K
|
2004-09-24 03:21:42 +02:00
|
|
|
OBJS += $(OBJS_68K)
|
2004-09-17 09:09:40 +02:00
|
|
|
endif
|
2004-09-24 03:21:42 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
MYDEFS_68K += $(FEATURE_PNOAND68K)
|
|
|
|
MYDEFS_ARM += $(FEATURE_PNOAND68K)
|
2003-11-16 20:23:48 +01:00
|
|
|
|
|
|
|
include ../common/rules.mk
|
|
|
|
|
2006-03-31 12:57:01 +02:00
|
|
|
CSFLAGS += -S -Wall -DAPPID=\'$(APPID)\' $(MYDEFS_68K) $(INCLUDES)
|
|
|
|
CFLAGS += -Wall -DAPPID=\'$(APPID)\' $(MYDEFS_68K) $(INCLUDES)
|
2004-09-24 03:21:42 +02:00
|
|
|
# In the non-debug mode (for which DONT_OMIT is undefined) build without
|
|
|
|
# the frame pointer.
|
|
|
|
|
2003-11-16 20:23:48 +01:00
|
|
|
$(TARGET): $(PLATFORM)/objs.prc $(PLATFORM)/res.prc
|
2004-07-11 00:43:21 +02:00
|
|
|
$(PAR) -c -a 'resource|backup' -v 4 $@ $(NAME) $(TYPE) $(APPID) $^
|
2006-10-28 16:48:08 +02:00
|
|
|
ifdef XW_UPLOAD_SCRIPT
|
|
|
|
$(XW_UPLOAD_SCRIPT) $@
|
2005-04-03 03:39:08 +02:00
|
|
|
endif
|
2003-11-16 20:23:48 +01:00
|
|
|
|
|
|
|
solo:
|
|
|
|
$(MAKE) XWFEATURE_STANDALONE_ONLY=1
|
|
|
|
|
|
|
|
gremlins:
|
2004-09-24 03:21:42 +02:00
|
|
|
$(MAKE) PASSTHRU="-DDEBUG -DMEM_DEBUG -DFOR_GREMLINS" DONT_OMIT=true
|
2003-11-16 20:23:48 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
REL=405
|
|
|
|
REL_PATH=public_html/xwords/4.0.5
|
|
|
|
ship-all:
|
|
|
|
make clean; make; \
|
|
|
|
make; (cd xwconfig && make); \
|
|
|
|
for l in fr_FR en_US es_ES es_CT sv_SE de_DE ; do \
|
|
|
|
make clean; \
|
|
|
|
make LANG=$$l; \
|
|
|
|
zip -j xw$(REL)_$$l.zip xwconfig/xwconfig.prc $(TARGET); \
|
|
|
|
done
|
|
|
|
|
|
|
|
.S.o:
|
|
|
|
$(CC) $(TARGETFLAGS) -c $<
|
|
|
|
|
|
|
|
.c.s:
|
|
|
|
$(CC) $(CSFLAGS) $<
|
|
|
|
|
|
|
|
$(BITMAPS)/%.pbitm: $(BITMAPS)/%.bmp
|
|
|
|
bmtoa $< > $@
|
|
|
|
|
2007-05-13 23:06:42 +02:00
|
|
|
$(PLATFORM)/objs.prc: $(PLATFORM)/LocalizedStrIncludes.h $(OBJS) gdbload
|
2003-11-16 20:23:48 +01:00
|
|
|
@rm -f *.grc *.bin
|
2006-01-16 07:07:33 +01:00
|
|
|
ifeq ($(ARCH),ARM_ONLY)
|
|
|
|
$(CC) $(OBJS) -o tmp.o
|
|
|
|
$(OBJ-RES) tmp.o
|
|
|
|
rm -f tmp.o
|
|
|
|
else
|
2003-11-16 20:23:48 +01:00
|
|
|
$(MULTILINK) $(MULTILINK_OPTIONS) $(OBJS)
|
2006-01-16 07:07:33 +01:00
|
|
|
endif
|
2003-11-16 20:23:48 +01:00
|
|
|
$(PAR) -c -a resource $(PLATFORM)/objs.prc Code rsrc rsrc *.grc
|
|
|
|
@rm -f *.grc *.bin
|
|
|
|
|
2006-01-16 07:07:33 +01:00
|
|
|
|
|
|
|
$(PLATFORM)/res.prc: xwords4.rcp $(HEADERS) StrL03e8.bin $(FNAVS) $(PNOLET)
|
2003-11-16 20:23:48 +01:00
|
|
|
$(PILRC) $< >/dev/null
|
|
|
|
$(PAR) -c -a 'resource' $@ Rsrc rsrc rsrc *.bin
|
|
|
|
rm -f $< *.bin
|
|
|
|
|
|
|
|
xwords4.rcp: l10n/xwords4_$(LANG).rcp.pre xwords4defines.h $(BITMAP_RSRCS)
|
2006-09-16 18:08:33 +02:00
|
|
|
gcc -x c -E -P $(INCLUDES) $(MYDEFS_68K) $(DEBUG) \
|
2003-11-16 20:23:48 +01:00
|
|
|
-DICONTEXT=\"$(ICONTEXT)\" $< > $@
|
|
|
|
|
2006-09-17 07:03:59 +02:00
|
|
|
# LocalizedStrIncludes.h: SVN_REV can change, but I don't have a way
|
|
|
|
# to express a dependency on it. If it does change, strings can wind
|
|
|
|
# up with offsets out of sync with the .h file. Not sure what to do
|
|
|
|
# about this.... Clean builds are probably a safe fallback.
|
|
|
|
|
2007-05-13 23:06:42 +02:00
|
|
|
$(PLATFORM)/LocalizedStrIncludes.h StrL03e8.bin: \
|
2006-09-17 15:33:45 +02:00
|
|
|
./l10n/StrRes_$(LANG).pre ./l10n/mkstrsres.c
|
2003-11-16 20:23:48 +01:00
|
|
|
gcc $(CFLAGS) $(FORMATDEFINES) \
|
|
|
|
-DLANGSTRFILE=\"$<\" ./l10n/mkstrsres.c \
|
|
|
|
-o mkstrsres
|
2007-05-13 23:06:42 +02:00
|
|
|
mkdir -p $(PLATFORM)
|
|
|
|
./mkstrsres StrL03e8.bin $(PLATFORM)/LocalizedStrIncludes.h
|
2003-11-16 20:23:48 +01:00
|
|
|
rm -f mkstrsres
|
|
|
|
|
2004-09-17 09:09:40 +02:00
|
|
|
ifneq (x$(BUILD_AS_PNOLET)x, xx)
|
|
|
|
.PHONY : pnolet
|
|
|
|
|
2007-05-13 23:06:42 +02:00
|
|
|
pnolet: $(PLATFORM)/LocalizedStrIncludes.h
|
|
|
|
$(MAKE) -f Makefile.PNO MEMDEBUG=$(MEMDEBUG) PLATFORM=$(PLATFORM) \
|
|
|
|
MYDEFS="$(MYDEFS_ARM) -DAPPID=\'$(APPID)\' -DAPPNAME=\\\"$(APPNAME)\\\""
|
2004-09-17 09:09:40 +02:00
|
|
|
endif
|
|
|
|
|
2003-11-16 20:23:48 +01:00
|
|
|
# GDB seems confused by relative paths these days. So generate the
|
|
|
|
# file rather than trying to keep in in cvs.
|
|
|
|
gdbload:
|
|
|
|
echo "source app.gdb" > $@
|
|
|
|
echo "load-segments" >> $@
|
|
|
|
echo "dir $(shell pwd)" >> $@
|
|
|
|
echo "dir $(shell pwd)/../common" >> $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
cd ../common && $(MAKE) PLATFORM=$(PLATFORM) $@
|
|
|
|
rm -rf $(PLATFORM)/*.[oa] xwords4 *.bin *.stamp *.[pg]rc \
|
2007-05-13 23:06:42 +02:00
|
|
|
xwords4.rcp *.btxt $(PLATFORM)/* $(PLATFORM)/LocalizedStrIncludes.h \
|
|
|
|
gdbload
|
2004-09-19 05:17:27 +02:00
|
|
|
ifneq (x$(BUILD_AS_PNOLET)x, xx)
|
2007-05-13 23:06:42 +02:00
|
|
|
$(MAKE) -f Makefile.PNO PLATFORM=$(PLATFORM) clean
|
2004-09-19 05:17:27 +02:00
|
|
|
endif
|
2003-11-16 20:23:48 +01:00
|
|
|
|
|
|
|
#cmod03E8.bin: palmdraw.c Makefile
|
2004-09-24 03:21:42 +02:00
|
|
|
# $(CC) -O2 -nostartfiles $(INCLUDES) $(MYDEFS) -o tmp $<
|
2003-11-16 20:23:48 +01:00
|
|
|
# $(OBJRES) tmp
|
|
|
|
# mv code0001.tmp.grc $@ ; rm *.tmp.grc
|
|
|
|
|
|
|
|
help:
|
2006-03-31 12:57:01 +02:00
|
|
|
@echo "make [ARCH=(ARM_ONLY|68K_ONLY|SONY|COMBINED)] [MEMDEBUG=TRUE] [LANG=fr_FR|en_US|es_ES|es_CT|sv_SE|de_DE] [clean]"
|
|
|
|
@echo OR
|
|
|
|
@echo "make ship-all"
|
|
|
|
@echo OR
|
|
|
|
@echo "make gremlins"
|