Subject:
|
Re: Release candidate legos-0.2.5.2 avail for testing
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Wed, 17 Apr 2002 16:04:13 GMT
|
Viewed:
|
1883 times
|
| |
| |
Volker Denneberg <vdenneberg@mathworks.de> wrote:
> OS detection in Makefile.common doesnt work with my cygwin(1.3.10),
> leading tool prefix h8300-hitachi which is wrong at my PC. To avoid
> this, i always run "make TARGET OSTYPE=cygwin "
My recent patch should fix this. If you have the time and inclination, please
test it.
Max.
Patch included again for convenience's sake:
### BEGIN PATCH ###
diff -mru cvs-legOS/Makefile.common work-legOS/Makefile.common
--- cvs-legOS/Makefile.common Thu Apr 4 10:37:47 2002
+++ work-legOS/Makefile.common Tue Apr 16 21:46:16 2002
@@ -29,27 +29,11 @@
SED_SFLAG=
#
-# WindowsNT/Cygnwin, test against several values:
+# Cygwin - CYGWIN for uname output, cygwin for exported default OSTYPE
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin CYGWIN_NT-4.0 CYGWIN_NT-5.0
WindowsNT Windows_NT))
+ifneq (,$(findstring CYGWIN,$(OSTYPE))$(findstring cygwin,$(OSTYPE)))
-# NT
TOOLPREFIX=h8300-hms-
-SED_SFLAG=i
-
-endif
-
-#
-# 2001.01.16 - Paolo Masetti <paolo.masetti@itlug.org>
-#
-# - Added definition for Cygwin 1.1
-
-#
-# Cygwin 1.1
-#
-ifneq (,$(findstring $(OSTYPE),CYGWIN_NT-4.0 CYGWIN_NT-5.0))
-
-TOOLPREFIX=h8300-hitachi-hms-
SED_SFLAG=i
endif
diff -mru cvs-legOS/util/Makefile.common work-legOS/util/Makefile.common
--- cvs-legOS/util/Makefile.common Tue Apr 2 17:25:07 2002
+++ work-legOS/util/Makefile.common Tue Apr 16 21:46:29 2002
@@ -20,9 +20,9 @@
CFLAGS=-O2 -Wall
#
-# WindowsNT/Cygnwin, test against several values:
+# Cygwin - CYGWIN for uname output, cygwin for exported default OSTYPE
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin CYGWIN_NT-4.0 CYGWIN_NT-5.0
WindowsNT Windows_NT))
+ifneq (,$(findstring CYGWIN,$(OSTYPE))$(findstring cygwin,$(OSTYPE)))
EXT=.exe
CC =gcc
CFLAGS+=-D_WIN32
### END PATCH ###
|
|
Message is in Reply To:
8 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|