Testing $OS works with cygwin and DOS command windows
This commit is contained in:
parent
533a827adb
commit
bf5be5056f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue