Add a module that wraps a Makefile into a module.
This commit is contained in:
parent
9e3137d0a8
commit
4a57c03bc3
|
@ -0,0 +1,17 @@
|
||||||
|
# @P@/src/@NAME@/Makefile
|
||||||
|
#
|
||||||
|
# (c)2007, @AUTHOR@, <@EMAIL@>.
|
||||||
|
# Released under the GNU GPLv2. See file COPYING or
|
||||||
|
# http://www.gnu.org/copyleft/gpl.html for details.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Build project, object files go into MAKE_OBJDIR. Uses CC, CFLAGS, etc.
|
||||||
|
# from `@P@/config'.
|
||||||
|
default:
|
||||||
|
|
||||||
|
# Install files according to PREFIX, INSTALL_PREFIX, BINDIR, LIBDIR, ...
|
||||||
|
install:
|
||||||
|
|
||||||
|
# options for text editors
|
||||||
|
# kate: @KATE_MODELINE@
|
||||||
|
# vim: syntax=make:@VIM_MODELINE@
|
|
@ -0,0 +1 @@
|
||||||
|
source src/@NAME@/build.make
|
|
@ -0,0 +1 @@
|
||||||
|
source src/@NAME@/build.install-make
|
|
@ -0,0 +1,10 @@
|
||||||
|
build_target @NAME@
|
||||||
|
|
||||||
|
echo "Installing @NAME@ (via Makefile)"
|
||||||
|
export MAKE_OBJDIR="$(pwd)/obj/@NAME@"
|
||||||
|
mkdir -p "${MAKE_OBJDIR}"
|
||||||
|
do_cmd make -e -C "src/@NAME@/" install
|
||||||
|
print_success "Done"
|
||||||
|
|
||||||
|
# kate: @KATE_MODELINE@
|
||||||
|
# vim: syntax=sh:@VIM_MODELINE@
|
|
@ -0,0 +1,10 @@
|
||||||
|
build_target @NAME@
|
||||||
|
|
||||||
|
echo "Building @NAME@ (via Makefile)"
|
||||||
|
export MAKE_OBJDIR="$(pwd)/obj/@NAME@"
|
||||||
|
mkdir -p "${MAKE_OBJDIR}"
|
||||||
|
do_cmd make -e -C "src/@NAME@/" default
|
||||||
|
print_success "Done"
|
||||||
|
|
||||||
|
# kate: @KATE_MODELINE@
|
||||||
|
# vim: syntax=sh:@VIM_MODELINE@
|
|
@ -0,0 +1,18 @@
|
||||||
|
if [ $# -ne 0 ]
|
||||||
|
then
|
||||||
|
print_failure "Too many arguments. None required for this module."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
do_parameter_subst
|
||||||
|
add_config_option "CC" "${COPT_CC_DEFAULT}"
|
||||||
|
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
|
||||||
|
add_config_option "BINDIR" "${COPT_BINDIR_DEFAULT}"
|
||||||
|
add_config_option "LIBDIR" "${COPT_LIBDIR_DEFAULT}"
|
||||||
|
add_config_option "INCLUDEDIR" "${COPT_INCLUDEDIR_DEFAULT}"
|
||||||
|
add_config_option "FINALLIBDIR" "${COPT_FINALLIBDIR_DEFAULT}"
|
||||||
|
add_config_option "FINALINCLUDEDIR" "${COPT_FINALINCLUDEDIR_DEFAULT}"
|
||||||
|
true
|
||||||
|
|
||||||
|
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
|
||||||
|
# vim: syntax=sh:expandtab:ts=4:sw=4
|
|
@ -9,6 +9,7 @@ build.firmware.gpasm
|
||||||
build.firmware.sdcc
|
build.firmware.sdcc
|
||||||
build.lib.c
|
build.lib.c
|
||||||
build.lib.c++
|
build.lib.c++
|
||||||
|
build.make.none
|
||||||
build.module.c
|
build.module.c
|
||||||
build.tests.c
|
build.tests.c
|
||||||
build.tests.c++
|
build.tests.c++
|
||||||
|
|
Loading…
Reference in New Issue