# The directory where your MSVC for StrongARM and the SDK is installed.
# You should set up WINE (see /etc/wine.reg) so that it "sees" this drive
#BASE=d:\\msvc-arm
-BASE=c:\\evc
+BASE=d:\\msvc-arm\\bin
#=========================================================== Compilers ======#
# Set some env vars for msvc to use
WINEPATH=$(BASE)\\
-WINE=wine --debugmsg fixme-console
+WINE=wine
+export WINEDEBUG=-all
# Output directory
OUT=out/
# You shouldn't need to change anything below.
-CXX=$(WINE) -- $(BASE)\\clarm.exe -c
+CXX=$(WINE) $(BASE)\\clarm.exe -c
CXXFLAGS.DEF=-DARM -D_ARM_ -DUNICODE -D_UNICODE -DUNDER_CE=300 -D_WIN32_WCE=300
CXXFLAGS.INC=-Iinclude -I$(INCLUDE) $(CFLAGS)
# Uncomment this for Dell Axim
#CXXFLAGS.DEF+=-DAXIM
-CXXFLAGS=-nologo -W3 -Zi -Od $(CXXFLAGS.DEF) $(CXXFLAGS.INC)
+CXXFLAGS=-nologo -W3 $(CXXFLAGS.DEF) $(CXXFLAGS.INC)
-ASM=$(WINE) -- $(BASE)\\armasm.exe
+ASM=$(WINE) $(BASE)\\armasm.exe
#ASMFLAGS=-arch 4 -cpu StrongARM1 -32
-RC=$(WINE) -- $(BASE)\\rc.exe
+RC=$(WINE) $(BASE)\\rc.exe
#RCFLAGS=-r -l 0x409 $(CXXFLAGS.DEF) $(CXXFLAGS.INC)
RCFLAGS=$(CXXFLAGS.DEF) $(CXXFLAGS.INC)
-CVTRES=$(WINE) -- $(BASE)\\cvtres.exe
+CVTRES=$(WINE) $(BASE)\\cvtres.exe
CVTRESFLAGS=-machine:arm -windowsce
-LD=$(WINE) -- $(BASE)\\link.exe
+LD=$(WINE) $(BASE)\\link.exe
# From EVC project settings
LDFLAGS= \
-nologo \
- -base:"0x00010000" \
- -stack:0x10000,0x1000 \
-entry:"WinMainCRTStartup" \
-align:"4096" \
-machine:ARM \
$(OUT)%.obj: %.cpp
$(CXX) $(CXXFLAGS) -Fo$@ $<
-$(OUT)%.obj: %.asm
+$(OUT)%.obj: asm/%.asm
$(ASM) $(ASMFLAGS) -o $@ $<
$(OUT)%.res: %.rc