ctk-curses: make sure gcc finds ncurses headers on cygwin

They are located in /usr/include/ncurses
This commit is contained in:
François Revol 2013-03-30 18:11:17 +01:00
parent 45662ac1ef
commit f63aada8b6

View File

@ -38,6 +38,10 @@ CONTIKI_SOURCEFILES += $(CTK) ctk-conio.c $(CONTIKI_TARGET_SOURCEFILES)
CONTIKI_CPU=$(CONTIKI)/cpu/native CONTIKI_CPU=$(CONTIKI)/cpu/native
include $(CONTIKI)/cpu/native/Makefile.native include $(CONTIKI)/cpu/native/Makefile.native
ifeq ($(HOST_OS),Windows)
CFLAGS += -I/usr/include/ncurses
endif
CURSES_LIBS ?= -lncurses CURSES_LIBS ?= -lncurses
TARGET_LIBFILES += $(CURSES_LIBS) TARGET_LIBFILES += $(CURSES_LIBS)