1425bb815Sopenharmony_ci
2425bb815Sopenharmony_ci#############################################################
3425bb815Sopenharmony_ci# Required variables for each makefile
4425bb815Sopenharmony_ci# Discard this section from all parent makefiles
5425bb815Sopenharmony_ci# Expected variables (with automatic defaults):
6425bb815Sopenharmony_ci#   CSRCS (all "C" files in the dir)
7425bb815Sopenharmony_ci#   SUBDIRS (all subdirs with a Makefile)
8425bb815Sopenharmony_ci#   GEN_LIBS - list of libs to be generated ()
9425bb815Sopenharmony_ci#   GEN_IMAGES - list of images to be generated ()
10425bb815Sopenharmony_ci#   COMPONENTS_xxx - a list of libs/objs in the form
11425bb815Sopenharmony_ci#     subdir/lib to be extracted and rolled up into
12425bb815Sopenharmony_ci#     a generated lib/image xxx.a ()
13425bb815Sopenharmony_ci#
14425bb815Sopenharmony_ciifndef PDIR
15425bb815Sopenharmony_ciGEN_LIBS = libuser.a
16425bb815Sopenharmony_ciendif
17425bb815Sopenharmony_ci
18425bb815Sopenharmony_ci
19425bb815Sopenharmony_ci#############################################################
20425bb815Sopenharmony_ci# Configuration i.e. compile options etc.
21425bb815Sopenharmony_ci# Target specific stuff (defines etc.) goes in here!
22425bb815Sopenharmony_ci# Generally values applying to a tree are captured in the
23425bb815Sopenharmony_ci#   makefile at its root level - these are then overridden
24425bb815Sopenharmony_ci#   for a subtree within the makefile rooted therein
25425bb815Sopenharmony_ci#
26425bb815Sopenharmony_ci#DEFINES +=
27425bb815Sopenharmony_ci
28425bb815Sopenharmony_ci#############################################################
29425bb815Sopenharmony_ci# Recursion Magic - Don't touch this!!
30425bb815Sopenharmony_ci#
31425bb815Sopenharmony_ci# Each subtree potentially has an include directory
32425bb815Sopenharmony_ci#   corresponding to the common APIs applicable to modules
33425bb815Sopenharmony_ci#   rooted at that subtree. Accordingly, the INCLUDE PATH
34425bb815Sopenharmony_ci#   of a module can only contain the include directories up
35425bb815Sopenharmony_ci#   its parent path, and not its siblings
36425bb815Sopenharmony_ci#
37425bb815Sopenharmony_ci# Required for each makefile to inherit from the parent
38425bb815Sopenharmony_ci#
39425bb815Sopenharmony_ci
40425bb815Sopenharmony_ci
41425bb815Sopenharmony_ciINCLUDES := $(INCLUDES) -I $(PDIR)include
42425bb815Sopenharmony_ciINCLUDES += -I ./
43425bb815Sopenharmony_ciPDIR := ../$(PDIR)
44425bb815Sopenharmony_cisinclude $(PDIR)Makefile
45