Skip to content
Erik Rainey edited this page Feb 27, 2015 · 1 revision

There are some useful macros that make adding code easy.

CSOURCES:=$(call all-c-files)

This will find all the .c files in the same folder as the concerto.mak and make them part of the build

This has variants for all file types.

CPPSOURCES:=$(call all-cpp-files)
JSOURCES:=$(call all-java-files)
ASSEMBLY:=$(call all-S-files) # (for assembly)

Or more generally

variable:=$(call all-type-files,*.ext)

These macros can be found in definitions.mak

Clone this wiki locally