Testing $OS works with cygwin and DOS command windows

This commit is contained in:
dak664 2011-03-11 16:50:35 -05:00
parent 533a827adb
commit bf5be5056f

View File

@ -72,8 +72,8 @@ CUSTOM_RULE_C_TO_O=yes
CFLAGS += -I$(OBJECTDIR) -I$(CONTIKI_CPU)/board -DBOARD=$(TARGET)
$(OBJECTDIR)/board.h: $(OBJECTDIR)
ifneq (,$(findstring cygdrive,$(shell pwd)))
${info Cygwin detected.}
ifneq (,$(findstring Windows,$(OS)))
${info Cygwin detected.}
ln -f $(CONTIKI_CPU)/board/$(TARGET).h $(OBJECTDIR)/board.h
else
ln -sf ../$(CONTIKI_CPU)/board/$(TARGET).h $(OBJECTDIR)/board.h