X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/linexec-j720/blobdiff_plain/77a37381836de85306ad128def744d879c38f95a..d4a1fe7da7b65b2be74457f9de20b8696cf636d7:/Makefile diff --git a/Makefile b/Makefile index 34412f2..e413587 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,13 @@ # 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/ @@ -34,7 +35,7 @@ OBJS = $(SUB4:%.res=$(OUT)%-res.obj) # 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) @@ -43,31 +44,29 @@ 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 \ @@ -97,7 +96,7 @@ $(OUT)$(TARGETBIN): $(OBJS) $(OUT)%.obj: %.cpp $(CXX) $(CXXFLAGS) -Fo$@ $< -$(OUT)%.obj: %.asm +$(OUT)%.obj: asm/%.asm $(ASM) $(ASMFLAGS) -o $@ $< $(OUT)%.res: %.rc