Makefile: Removed uname -o
authorMichel Pollet <buserror@gmail.com>
Sun, 2 Jun 2013 13:44:31 +0000 (14:44 +0100)
committerMichel Pollet <buserror@gmail.com>
Sun, 2 Jun 2013 13:44:31 +0000 (14:44 +0100)
This break on BSDs (aka OSX), this commit will break windows build, it
will need a proper fix

Signed-off-by: Michel Pollet <buserror@gmail.com>
Makefile.common
simavr/Makefile

index 205ef6b..d44058b 100644 (file)
@@ -58,7 +58,11 @@ else
 AVR_ROOT       := /usr/lib/avr
 AVR_INC        := ${AVR_ROOT}
 AVR            := avr-
-ifeq (${shell uname -o}, Msys)
+
+# FIXME uname -o doesn't work on bsd derivatives
+#WIN := ${shell uname -o}
+
+ifeq (${WIN}, Msys)
 AVR_ROOT    := ${shell echo "${AVR32_HOME}" | tr '\\' '/'}
 AVR_INC     := ${AVR_ROOT}/avr
 AVR         := ${AVR_ROOT}/bin/avr-
@@ -89,7 +93,7 @@ LDFLAGS       += -L${LIBDIR} -lsimavr
 
 LDFLAGS        += -lelf 
 
-ifeq (${shell uname -o}, Msys)
+ifeq (${WIN}, Msys)
 LDFLAGS      += -lws2_32
 endif
 
index bfac68f..080651c 100644 (file)
@@ -79,11 +79,13 @@ endif
 ${OBJ}/${target}.elf   : ${OBJ}/${target}.o
 
 ${target}      : ${OBJ}/${target}.elf
-ifeq (${shell uname -o}, Msys)
-       ln -sf $< $@.exe
-else
+
+# FIXME uname -o doesn't work on BSD
+#ifeq (${shell uname -o}, Msys)
+#      ln -sf $< $@.exe
+#else
        ln -sf $< $@
-endif
+#endif
  
 clean: clean-${OBJ}
        rm -rf ${target} *.a *.so *.exe