mc1322x: handle board file differently if cygwin

This commit is contained in:
Mariano Alvira 2011-03-04 16:53:39 -05:00
parent a7addf990f
commit befbd4a479

View file

@ -72,7 +72,12 @@ 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.}
ln -f $(CONTIKI_CPU)/board/$(TARGET).h $(OBJECTDIR)/board.h
else
ln -sf ../$(CONTIKI_CPU)/board/$(TARGET).h $(OBJECTDIR)/board.h
endif
$(OBJECTDIR)/isr.o: $(CONTIKI_CPU)/src/isr.c