lw-build-system/scripts/build.lib.c/instantiate

26 lines
643 B
Plaintext
Raw Normal View History

if [ $# -ne 1 ]
then
print_failure "Wrong number of arguments after module; need HEADER_NAME."
echo "HEADER_NAME is the name of the header file."
exit 1
fi
HEADER_NAME=$1
shift
if [ "$(echo ${NAME} | cut -b1-3)" != "lib" ]
then
echo "Warning: your module name does not begin with 'lib'. You will"
2006-12-08 15:08:09 +00:00
echo "have to fix up your -config script manually, etc."
NAMEMINUSL="@TODO@"
else
2006-12-08 15:08:09 +00:00
NAMEMINUSL="$(echo ${NAME} | sed -e 's,^lib,,')"
fi
do_parameter_subst NAMEMINUSL HEADER_NAME
2006-12-08 15:51:18 +00:00
add_config_option "CC" "${COPT_CC_DEFAULT}"
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
true
2007-08-08 13:03:18 +01:00
# vim: syntax=sh:expandtab:ts=4:sw=4