2014-12-22 12:35:05 +01:00
|
|
|
|
|
|
|
#############################################################
|
|
|
|
# Required variables for each makefile
|
|
|
|
# Discard this section from all parent makefiles
|
|
|
|
# Expected variables (with automatic defaults):
|
|
|
|
# CSRCS (all "C" files in the dir)
|
|
|
|
# SUBDIRS (all subdirs with a Makefile)
|
|
|
|
# GEN_LIBS - list of libs to be generated ()
|
|
|
|
# GEN_IMAGES - list of images to be generated ()
|
|
|
|
# COMPONENTS_xxx - a list of libs/objs in the form
|
|
|
|
# subdir/lib to be extracted and rolled up into
|
|
|
|
# a generated lib/image xxx.a ()
|
|
|
|
#
|
|
|
|
ifndef PDIR
|
|
|
|
GEN_LIBS = libmodules.a
|
|
|
|
endif
|
|
|
|
|
2016-01-22 00:55:57 +01:00
|
|
|
STD_CFLAGS=-std=gnu11 -Wimplicit
|
2016-01-20 09:37:03 +01:00
|
|
|
|
2014-12-22 12:35:05 +01:00
|
|
|
#############################################################
|
|
|
|
# Configuration i.e. compile options etc.
|
|
|
|
# Target specific stuff (defines etc.) goes in here!
|
|
|
|
# Generally values applying to a tree are captured in the
|
|
|
|
# makefile at its root level - these are then overridden
|
|
|
|
# for a subtree within the makefile rooted therein
|
|
|
|
#
|
|
|
|
#DEFINES +=
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
# Recursion Magic - Don't touch this!!
|
|
|
|
#
|
|
|
|
# Each subtree potentially has an include directory
|
|
|
|
# corresponding to the common APIs applicable to modules
|
|
|
|
# rooted at that subtree. Accordingly, the INCLUDE PATH
|
|
|
|
# of a module can only contain the include directories up
|
|
|
|
# its parent path, and not its siblings
|
|
|
|
#
|
|
|
|
# Required for each makefile to inherit from the parent
|
|
|
|
#
|
|
|
|
|
|
|
|
INCLUDES := $(INCLUDES) -I $(PDIR)include
|
|
|
|
INCLUDES += -I ./
|
|
|
|
INCLUDES += -I ../libc
|
2015-02-04 18:32:57 +01:00
|
|
|
INCLUDES += -I ../coap
|
2015-01-23 04:48:05 +01:00
|
|
|
INCLUDES += -I ../mqtt
|
2015-01-31 01:21:51 +01:00
|
|
|
INCLUDES += -I ../u8glib
|
2015-08-05 00:47:34 +02:00
|
|
|
INCLUDES += -I ../ucglib
|
2014-12-22 12:35:05 +01:00
|
|
|
INCLUDES += -I ../lua
|
2016-06-05 23:21:36 +02:00
|
|
|
INCLUDES += -I ../pcm
|
2014-12-22 12:35:05 +01:00
|
|
|
INCLUDES += -I ../platform
|
|
|
|
INCLUDES += -I ../spiffs
|
|
|
|
INCLUDES += -I ../smart
|
2015-03-16 02:00:33 +01:00
|
|
|
INCLUDES += -I ../cjson
|
2015-06-18 10:31:40 +02:00
|
|
|
INCLUDES += -I ../dhtlib
|
2015-12-29 12:25:37 +01:00
|
|
|
INCLUDES += -I ../http
|
2014-12-22 12:35:05 +01:00
|
|
|
PDIR := ../$(PDIR)
|
|
|
|
sinclude $(PDIR)Makefile
|
|
|
|
|