WIP on module instantiation.
Rather than the skeleton dir shipping with a couple of ready-made modules, one for each type of project, it would make much more sense and be much more flexible to instead provide a script to instantiate modules as needed.
This commit is contained in:
parent
31c4a78918
commit
9e8d1e4c15
46 changed files with 949 additions and 0 deletions
18
skel/scripts/build.c.lib/build.monolithic
Normal file
18
skel/scripts/build.c.lib/build.monolithic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# These are external variables, and shouldn't clash with anything else
|
||||
# LIBC_MONOLITHIC
|
||||
|
||||
if [ -z "${LIBC_MONOLITHIC}" ]
|
||||
then
|
||||
SRC="obj/lib.c"
|
||||
HDR="obj/@HEADER_NAME@"
|
||||
|
||||
MONOLITHIC_TESTS="src/clib/build.lib src/clib/build.monolithic"
|
||||
MONOLITHIC_SOURCE="$(echo src/clib/{TopHeader,BottomHeader}.h)"
|
||||
make_monolithic ${HDR} C || return 1
|
||||
|
||||
MONOLITHIC_SOURCE="$(echo src/clib/TopSource.c)"
|
||||
make_monolithic ${SRC} C || return 1
|
||||
|
||||
LIBC_MONOLITHIC=1
|
||||
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${HDR}"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue