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
|
2017-11-18 21:29:57 +01:00
|
|
|
INCLUDES += -I ../u8g2lib/u8g2/src/clib
|
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
|
2018-03-08 01:20:59 +01:00
|
|
|
INCLUDES += -I ../dht
|
2016-09-05 20:17:13 +02:00
|
|
|
INCLUDES += -I ../fatfs
|
2015-12-29 12:25:37 +01:00
|
|
|
INCLUDES += -I ../http
|
2017-03-22 01:24:32 +01:00
|
|
|
INCLUDES += -I ../sjson
|
2016-08-18 13:59:44 +02:00
|
|
|
INCLUDES += -I ../websocket
|
2017-04-04 21:31:06 +02:00
|
|
|
INCLUDES += -I ../pm
|
2018-01-10 22:45:56 +01:00
|
|
|
INCLUDES += -I ../sqlite3
|
2014-12-22 12:35:05 +01:00
|
|
|
PDIR := ../$(PDIR)
|
|
|
|
sinclude $(PDIR)Makefile
|
|
|
|
|