freeswitch/build/modmake.sh
Michael Jerris 50571597c5 Do not force use of "gmake" -- but propagate whichever command was used to start the top-level make. This way users on e.g.
Mac OS X won't have to create a special symlink to build, but can instead just use the command "gnumake" (as opposed to "make" og "gmake")

Merged from tholo's branch http://svn.freeswitch.org/svn/freeswitch/branches/tholo rev 2796, thanks tholo.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2815 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-09-23 23:27:44 +00:00

25 lines
398 B
Bash
Executable File

#!/bin/sh
make=$1
shift
pwd=$1
shift
mod=$1
shift
if [ -f $pwd/build/freeswitch.env ] ; then
. $pwd/build/freeswitch.env
fi
end=`echo $mod | sed "s/^.*\///g"`
if [ -z "$end" ] ; then
end=$mod
fi
if [ -f $mod/Makefile ] ; then
CFLAGS="$MOD_CFLAGS $CFLAGS " MODNAME=$end $make -C $mod $@
else
CFLAGS="$MOD_CFLAGS $CFLAGS" MODNAME=$end $make -f $pwd/generic_mod.mk -C $mod $@
fi