forked from Mirrors/freeswitch
514bde18c7
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4562 d0543943-73ff-0310-b7d9-9358b9ac24b2
22 lines
331 B
Bash
Executable File
22 lines
331 B
Bash
Executable File
#!/bin/sh
|
|
|
|
make=$1
|
|
shift
|
|
pwd=$1
|
|
shift
|
|
mod=$1
|
|
shift
|
|
|
|
|
|
end=`echo $mod | sed "s/^.*\///g"`
|
|
if [ -z "$end" ] ; then
|
|
end=$mod
|
|
fi
|
|
|
|
if [ -f $mod/Makefile ] ; then
|
|
MOD_CFLAGS="$MOD_CFLAGS" MODNAME=$end BASE=$pwd $make -C $mod $@
|
|
else
|
|
MOD_CFLAGS="$MOD_CFLAGS" MODNAME=$end BASE=$pwd $make -f $pwd/generic_mod.mk -C $mod $@
|
|
fi
|
|
|