freeswitch/build/modmake.sh
Anthony Minessale 780edcd09d optimizations
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2354 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-22 00:56:27 +00:00

28 lines
450 B
Bash
Executable File

#!/bin/sh
pwd=$1
shift
mod=$1
shift
if [ -f $pwd/build/freeswitch.env ] ; then
. $pwd/build/freeswitch.env
fi
make=`which gmake`
if [ -z $make ] ; then
make=`which make`
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