2014-12-22 19:35:05 +08: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 10:55:57 +11:00
|
|
|
STD_CFLAGS=-std=gnu11 -Wimplicit
|
2016-01-20 19:37:03 +11:00
|
|
|
|
2014-12-22 19:35:05 +08: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-05 01:32:57 +08:00
|
|
|
INCLUDES += -I ../coap
|
2015-01-23 11:48:05 +08:00
|
|
|
INCLUDES += -I ../mqtt
|
2015-08-05 00:47:34 +02:00
|
|
|
INCLUDES += -I ../ucglib
|
2014-12-22 19:35:05 +08:00
|
|
|
INCLUDES += -I ../lua
|
2016-06-05 23:21:36 +02:00
|
|
|
INCLUDES += -I ../pcm
|
2014-12-22 19:35:05 +08:00
|
|
|
INCLUDES += -I ../platform
|
|
|
|
INCLUDES += -I ../spiffs
|
|
|
|
INCLUDES += -I ../smart
|
2018-03-08 00:20:59 +00:00
|
|
|
INCLUDES += -I ../dht
|
2016-09-05 20:17:13 +02:00
|
|
|
INCLUDES += -I ../fatfs
|
2015-12-29 19:25:37 +08:00
|
|
|
INCLUDES += -I ../http
|
2017-03-21 20:24:32 -04:00
|
|
|
INCLUDES += -I ../sjson
|
2016-08-18 12:59:44 +01:00
|
|
|
INCLUDES += -I ../websocket
|
2017-04-04 12:31:06 -07:00
|
|
|
INCLUDES += -I ../pm
|
2018-01-11 08:45:56 +11:00
|
|
|
INCLUDES += -I ../sqlite3
|
2014-12-22 19:35:05 +08:00
|
|
|
PDIR := ../$(PDIR)
|
|
|
|
sinclude $(PDIR)Makefile
|
|
|
|
|