2006-06-18 00:41:10 +02:00
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
|
|
|
#contiki: contiki-$(TARGET).a
|
|
|
|
|
2007-04-10 23:02:59 +02:00
|
|
|
CONTIKI_TARGET_DIRS = .
|
2006-06-18 00:41:10 +02:00
|
|
|
CONTIKI_TARGET_MAIN = ${addprefix $(OBJECTDIR)/,contiki-main.o}
|
|
|
|
|
2007-03-30 00:23:31 +02:00
|
|
|
CONTIKI_TARGET_SOURCEFILES = contiki-main.c dlloader.c clock.c \
|
|
|
|
leds.c leds-arch.c
|
|
|
|
|
2007-03-26 04:53:54 +02:00
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += wpcap-service.c wpcap.c
|
|
|
|
else
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev-service.c tapdev.c
|
|
|
|
endif
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
|
|
|
|
2007-03-26 04:53:54 +02:00
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
TARGET_LIBFILES = /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a
|
|
|
|
endif
|
2006-06-18 00:41:10 +02:00
|
|
|
|
2007-03-30 00:23:31 +02:00
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
### Define the CPU directory
|
|
|
|
CONTIKI_CPU=$(CONTIKI)/cpu/native
|
|
|
|
include $(CONTIKI)/cpu/native/Makefile.native
|
|
|
|
|
2006-06-18 00:41:10 +02:00
|
|
|
### Setup directory search path for source files
|
|
|
|
|
|
|
|
CONTIKI_TARGET_DIRS_CONCAT = ${addprefix $(CONTIKI)/platform/$(TARGET)/, \
|
|
|
|
$(CONTIKI_TARGET_DIRS)}
|
|
|
|
vpath %.c $(PROJECTDIRS) \
|
|
|
|
$(CONTIKIDIRS) $(APPDIRS) $(CONTIKI_TARGET_DIRS_CONCAT) \
|
|
|
|
$(CONTIKI_CPU) $(APP_DIRS)
|