22 lines
538 B
Bash
Executable File
22 lines
538 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Parse arguments for compilation (at least for error catching)
|
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
|
|
|
unset COMP_FLAGS LINK_FLAGS
|
|
|
|
#
|
|
# use readline if available
|
|
#
|
|
if [ -f /usr/include/readline/readline.h ]
|
|
then
|
|
echo "Found <readline/readline.h> -- enabling readline support."
|
|
export COMP_FLAGS="-DHAS_READLINE"
|
|
export LINK_FLAGS="-lreadline"
|
|
fi
|
|
|
|
wmake $targetType
|
|
|
|
#------------------------------------------------------------------------------
|