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>
2 files changed:
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-
LDFLAGS += -lelf
-ifeq (${shell uname -o}, Msys)
+ifeq (${WIN}, Msys)
LDFLAGS += -lws2_32
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