Modules/headers: minor improvements

· pass default compiler flags when compiling a module
 · compile and set variables for headers by default
This commit is contained in:
Laurence Withers 2011-04-18 15:35:53 +00:00
parent a094821ec3
commit 2f748ff59b
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
source src/@NAME@/build.monolithic
@CNAME@_HEADER="obj/@HEADER_NAME@"

View File

@ -5,7 +5,7 @@
if [ -z ${@CNAME@_BUILT} ]
then
@CNAME@="obj/@NAME@.so"
SO_EXTRA="" # @TODO@
SO_EXTRA="-D_GNU_SOURCE -std=gnu99 -DMODULE_NAME=\"@NAME@\"" # @TODO@
echo "Building module ${@CNAME@}..."