make.tmpl: %build_module_* support for local include/lib directories
commit918eb8d23a197194a33baafa8e96efcfe25c126b
authorjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 30 May 2015 14:54:20 +0000 (30 14:54 +0000)
committerjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 30 May 2015 14:54:20 +0000 (30 14:54 +0000)
tree85034576e7b41a6a05685f14b313b0acab2cb7b7
parent7b16cbbcc048d9d1f6e9e359de8b8891d127061b
make.tmpl: %build_module_* support for local include/lib directories

When building 'port' applications that make their own libraries,
it is useful to be able to have the MetaMake system put the resulting
includes and linklibs in an application specified area, instead of
the default AROS:Development/ paths.

For example:

MYAPP_DIR := $(AROSDIR)/Application/MyApp
%build_module mmake=myapp-libs-superfont-library \
  modname=superfont modtype=library \
  files="$(SUPERFONT_FILES)" \
  moduledir="$(MYAPP_DIR)/Libs" \
  includedir="$(MYAPP_DIR)/SDK/include" \
  libdir="$(MYAPP_DIR)/SDK/lib"

This would put the 'superfont.library' in the application's
Libs subdirectory, and the SDK/include/ and SDK/lib/ directories
would contain the protos and linklibs, respectively.

Signed-off-by: Jason S. McMullan <jason.mcmullan@gmail.com>
git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50769 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
config/make.tmpl