2016-02-22 20:46:07 +01:00
|
|
|
CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\"
|
|
|
|
CONTIKI_PROJECT = hello-sensors
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
|
|
|
|
# We use floating vars. Add library.
|
|
|
|
PRINTF_LIB_FLT = -Wl,-u,vfprintf -lprintf_flt -lm
|
|
|
|
PRINTF_LIB_MIN = -Wl,-u,vfprintf -lprintf_min
|
|
|
|
PRINTF_LIB = $(PRINTF_LIB_FLT)
|
|
|
|
CLIBS = $(PRINTF_LIB)
|
|
|
|
|
2016-09-16 09:34:14 +02:00
|
|
|
MODULES += dev/bme280
|
2016-02-22 20:46:07 +01:00
|
|
|
|
|
|
|
CUSTOM_RULE_LINK = 1
|
|
|
|
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
|
|
|
$(LD) $(LDFLAGS) $(TARGET_STARTFILES) ${filter-out %.a,$^} ${filter %.a,$^} $(TARGET_LIBFILES) -o $@ $(CLIBS)
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-14 22:48:09 +02:00
|
|
|
CONTIKI = ../../..
|
2016-02-22 20:46:07 +01:00
|
|
|
include $(CONTIKI)/Makefile.include
|