xwords/xwords4/wince/simrel.mk

60 lines
1.7 KiB
Makefile
Raw Normal View History

2005-06-13 15:23:33 +02:00
# -*- mode: Makefile; compile-command: "make -f simrel.mk"; -*-
2003-11-20 17:26:35 +01:00
PLATFORM = emulatorDbg
TARGET = $(PLATFORM)/xwords4.exe
2005-02-11 03:48:13 +01:00
LIBS = commctrl.lib coredll.lib corelibc.lib winsock.lib aygshell.lib
2003-11-20 17:26:35 +01:00
RSRC = $(PLATFORM)/xwords4.res
MAKE = make -f simrel.mk
2005-02-11 03:48:13 +01:00
CC = $(WCE420)/bin/cl.exe
LINK = $(WCE420)/bin/link.exe
RC = $(VSDIR)/Common/MSDev98/Bin/rc.exe
2003-11-20 17:26:35 +01:00
include ../common/config.mk
include ./shared.mk
C_CMD = \
2005-02-11 03:48:13 +01:00
$(CC) /nologo /W3 /Zi /Od \
/I "$(WINCE_PATH)\Include\Emulator" \
2005-06-13 15:23:33 +02:00
/I "..\common" /I "..\relay" /I "." /D "DEBUG" /D "_i386_" /D UNDER_CE=420 \
2003-11-20 17:26:35 +01:00
/D _WIN32_WCE=420 /D "WIN32_PLATFORM_PSPC=400" /D "i_386_" \
/D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" $(XW_C_DEFINES) \
/Fo$@ /Gs8192 /GF /c $<
$(PLATFORM)/StdAfx.o: StdAfx.cpp
$(C_CMD)
$(PLATFORM)/%.o: %.c
$(C_CMD)
../common/$(PLATFORM)/%.o: ../common/%.c
$(C_CMD)
$(RSRC): xwords4.rc
2005-02-11 03:48:13 +01:00
$(RC) /l 0x409 /fo$@ \
/i "$(WINCE_PATH)\Include\Emulator" \
2003-11-20 17:26:35 +01:00
/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) \
/r $<
test:
echo $(basename $(TARGET)).pdb
$(TARGET): $(COMMONOBJ) $(PLATOBJ) $(RSRC)
2005-02-11 03:48:13 +01:00
$(LINK) $(LIBS) /nologo /base:"0x00010000" /stack:0x10000,0x1000 \
2003-11-20 17:26:35 +01:00
/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:$@ \
2005-02-11 03:48:13 +01:00
/libpath:"$(WINCE_PATH)\Lib\emulator" \
2003-11-20 17:26:35 +01:00
/subsystem:windowsce,4.20 /MACHINE:IX86 \
$(COMMONOBJ) $(PLATOBJ) $(RSRC)
clean:
rm -f $(COMMONOBJ) $(PLATOBJ) $(TARGET) $(RSRC) $(PLATFORM)/*.pdb