mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
Testing $OS works with cygwin and DOS command windows
This commit is contained in:
parent
533a827adb
commit
bf5be5056f
@ -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 New Issue
Block a user