update so works again.

This commit is contained in:
ehouse 2005-02-11 02:48:13 +00:00
parent b8cb6467f0
commit 1cca026c24
2 changed files with 25 additions and 13 deletions

View file

@ -1,9 +1,10 @@
# -*- mode: Makefile; -*-
ifeq (x$(shell echo $$WINCE_DEV_PATH)x,xx)
ifeq (x$(shell echo $$PPC_SDK_PPC)x,xx)
WINCE_PATH = "PLEASE DEFINE shell env variable WINCE_DEV_PATH"
include exit_right_now
else
WINCE_PATH = $(shell echo $$WINCE_DEV_PATH)
WINCE_PATH = $(shell echo $$PPC_SDK_PPC)
endif
PLATOBJ = \
@ -17,13 +18,22 @@ PLATOBJ = \
$(PLATFORM)/ceprefs.o \
$(PLATFORM)/cestrbx.o \
$(PLATFORM)/ceutil.o \
$(PLATFORM)/ceclrsel.o \
$(PLATFORM)/cehntlim.o \
XW_BOTH_DEFINES = \
/D XWFEATURE_STANDALONE_ONLY \
/DXWFEATURE_STANDALONE_ONLY /DNODE_CAN_4 /DMY_COLOR_SEL \
/DCOLOR_SUPPORT /DFEATURE_TRAY_EDIT /DXWFEATURE_SEARCHLIMIT \
/DXWFEATURE_HINT_CONFIG \
/D POINTER_SUPPORT /D KEY_SUPPORT /D __LITTLE_ENDIAN \
$(DEBUG) $(MEM_DEBUG) \
XW_C_DEFINES = \
/D __LITTLE_ENDIAN /D POINTER_SUPPORT /D KEY_SUPPORT \
/D XWFEATURE_STANDALONE_ONLY $(DEBUG) $(MEM_DEBUG)
$(XW_BOTH_DEFINES) \
XW_RES_DEFINES = \
/d XWFEATURE_STANDALONE_ONLY $(DEBUG) $(MEM_DEBUG)
$(XW_BOTH_DEFINES)
all: $(TARGET)

View file

@ -3,19 +3,21 @@
PLATFORM = emulatorDbg
TARGET = $(PLATFORM)/xwords4.exe
LIBS = commctrl.lib coredll.lib corelibc.lib winsock.lib
LIBS = commctrl.lib coredll.lib corelibc.lib winsock.lib aygshell.lib
RSRC = $(PLATFORM)/xwords4.res
MAKE = make -f simrel.mk
CC = $(WCE420)/bin/cl.exe
LINK = $(WCE420)/bin/link.exe
RC = $(VSDIR)/Common/MSDev98/Bin/rc.exe
include ../common/config.mk
include ./shared.mk
C_CMD = \
mkdir -p $(dir $@) && \
cl.exe /nologo /W3 /Zi /Od \
/I "$(WINCE_DEV_PATH)\Include\Emulator" \
$(CC) /nologo /W3 /Zi /Od \
/I "$(WINCE_PATH)\Include\Emulator" \
/I "..\common" /I "." /D "DEBUG" /D "_i386_" /D UNDER_CE=420 \
/D _WIN32_WCE=420 /D "WIN32_PLATFORM_PSPC=400" /D "i_386_" \
/D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" $(XW_C_DEFINES) \
@ -31,8 +33,8 @@ $(PLATFORM)/%.o: %.c
$(C_CMD)
$(RSRC): xwords4.rc
rc.exe /l 0x409 /fo$@ \
/i "$(WINCE_DEV_PATH)\Include\Emulator" \
$(RC) /l 0x409 /fo$@ \
/i "$(WINCE_PATH)\Include\Emulator" \
/d "WIN32_PLATFORM_PSPC=400" /d UNDER_CE=420 /d _WIN32_WCE=420 \
/d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "_X86_" /d "x86" /d "_i386_" \
$(XW_RES_DEFINES) \
@ -42,14 +44,14 @@ test:
echo $(basename $(TARGET)).pdb
$(TARGET): $(COMMONOBJ) $(PLATOBJ) $(RSRC)
link.exe $(LIBS) /nologo /base:"0x00010000" /stack:0x10000,0x1000 \
$(LINK) $(LIBS) /nologo /base:"0x00010000" /stack:0x10000,0x1000 \
/entry:"WinMainCRTStartup" /incremental:yes \
/pdb:$(basename $(TARGET)).pdb \
/debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:libc.lib \
/nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib \
/nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib \
/nodefaultlib:msvcrtd.lib /out:$@ \
/libpath:"$(WINCE_DEV_PATH)\Lib\emulator" \
/libpath:"$(WINCE_PATH)\Lib\emulator" \
/subsystem:windowsce,4.20 /MACHINE:IX86 \
$(COMMONOBJ) $(PLATOBJ) $(RSRC)