From 96e63e99efa52004a038b5b8f66555b14e9fbc30 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sun, 29 Oct 2017 01:24:31 +0000 Subject: [PATCH] Allow the target to specify its own Makefile This can allow the target to e.g. add sources to the build --- examples/slip-radio/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/slip-radio/Makefile b/examples/slip-radio/Makefile index 8552448ca..d59b5e240 100644 --- a/examples/slip-radio/Makefile +++ b/examples/slip-radio/Makefile @@ -5,10 +5,12 @@ MODULES += os/services/slip-cmd CONTIKI=../.. -include $(CONTIKI)/Makefile.identify-target +### Optionally, the target can add its own Makefile, to do things like e.g. +### add more source files to the build or define make variables. +-include $(TARGET)/Makefile.$(TARGET) + +PROJECTDIRS += $(TARGET) PROJECT_SOURCEFILES += slip-net.c -ifeq ($(TARGET),sky) - PROJECT_SOURCEFILES += slip-radio-cc2420.c slip-radio-sky-sensors.c -endif # custom net layer, but with IPv6 enabled MAKE_NET = MAKE_NET_IPV6