From 26490177528f1d09f07b7c939d49c0c99f6ab014 Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 5 Feb 2008 03:45:24 +0000 Subject: [PATCH] Modify to switch between cegcc and pocketpc-sdk, with pocketpc-sdk choice commented out. cegcc builds it about 30% smaller, in line with what the older M$ tools could do. --- wince/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/wince/Makefile b/wince/Makefile index f0a8172d2..d6f636945 100644 --- a/wince/Makefile +++ b/wince/Makefile @@ -27,13 +27,17 @@ MINGW_INC_PATH ?= /usr/i586-mingw32msvc/include # This requires custom Debian pocketpc-sdk package at the moment HAVE_COMMCTRL = 1 +# arm-wince-mingw32ce for cegcc, arm-wince-pe for pocketpc-gcc +#ARCH = arm-wince-pe +ARCH = arm-wince-mingw32ce ifeq ($(TARGET_OS),wince) # BLUETOOTH = -DXWFEATURE_BLUETOOTH # RELAY = -DXWFEATURE_RELAY -DCOMMS_HEARTBEAT -CC = arm-wince-pe-gcc -WINDRES = arm-wince-pe-windres -STRIP = arm-wince-pe-strip -CELIBS = -L/usr/arm-wince-pe/lib +CC = ${ARCH}-gcc +WINDRES = ${ARCH}-windres +STRIP = ${ARCH}-strip +#CELIBS = -L/usr/arm-wince-pe/lib +CELIBS = -L${CEOPT_ROOT}/opt/${ARCH}/lib/ -lws2 TARGET_OS_DEF = -DTARGET_OS_WINCE STANDALONE = -DXWFEATURE_STANDALONE_ONLY CFLAGS += -D_WIN32_WCE=400 -DUNDER_CE -DMY_COLOR_SEL \