From d837df98d9bd7124c1b9d4804736c5ba85f098f9 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 22 Aug 2014 14:48:29 -0600 Subject: [PATCH] Changes to try to get P112 to compile with laster SDCC (it still does not) --- configs/p112/ostest/Make.defs | 11 +++++++---- configs/p112/ostest/setenv.bat | 5 +++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/configs/p112/ostest/Make.defs b/configs/p112/ostest/Make.defs index e64c7b5dd3..4239f49951 100644 --- a/configs/p112/ostest/Make.defs +++ b/configs/p112/ostest/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # configs/p112/ostest/Make.defs # -# Copyright (C) 2012 Gregory Nutt. All rights reserved. +# Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved. # Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without @@ -81,7 +81,8 @@ AFLAGS = -x -a -l -o -s -g SDCCLIB = z180.lib ASMEXT = .asm -OBJEXT = .o +# OBJEXT = .o +OBJEXT = .rel LIBEXT = .lib EXEEXT = .hex @@ -122,7 +123,9 @@ endif # Windows native host tool definitions ifeq ($(CONFIG_WINDOWS_NATIVE),y) - HOSTCC = mingw32-gcc.exe +# You may need to customize the binary name: +# HOSTCC = mingw32-gcc.exe + HOSTCC = x86_64-w64-mingw32-gcc.exe HOSTINCLUDES = -I. HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -g -pipe HOSTLDFLAGS = @@ -130,7 +133,7 @@ ifeq ($(CONFIG_WINDOWS_NATIVE),y) # Windows-native host tools - MKDEP = $(TOPDIR)\tools\mkdeps.exe --winnative + MKDEP = $(TOPDIR)\tools\mkdeps.exe --winnative # --dep-debug # Use NTFS links or directory copies diff --git a/configs/p112/ostest/setenv.bat b/configs/p112/ostest/setenv.bat index 19ca1ef57d..01eb774dd5 100644 --- a/configs/p112/ostest/setenv.bat +++ b/configs/p112/ostest/setenv.bat @@ -2,7 +2,7 @@ rem configs/p112/ostest/setenv.bat rem -rem Copyright (C) 2012 Gregory Nutt. All rights reserved. +rem Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved. rem Author: Gregory Nutt rem rem Redistribution and use in source and binary forms, with or without @@ -41,7 +41,8 @@ set PATH=C:\MinGW\bin;%PATH% rem This is the location where I installed the SDCC toolchain for windows. -set PATH=C:\Program Files (x86)\SDCC/bin;%PATH% +rem set PATH=C:\Program Files (x86)\SDCC/bin;%PATH% +set PATH=C:\Program Files\SDCC/bin;%PATH% rem This is the location where I installed the GNUWin32 tools. See rem http://gnuwin32.sourceforge.net/.