1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

use relative objs dir for makefile. for bug #191

This commit is contained in:
winlin 2014-11-08 16:07:31 +08:00
parent d4d3d46317
commit eb88ebfb39
6 changed files with 58 additions and 49 deletions

View file

@ -1,7 +1,8 @@
# generate the binary
#
# params:
# $SRS_OBJS the objs directory. ie. objs
# $SRS_OBJS the objs directory to store the Makefile. ie. ./objs
# $SRS_OBJS_DIR the objs directory for Makefile. ie. objs
# $SRS_MAKEFILE the makefile name. ie. Makefile
#
# $MAIN_ENTRANCES array, disable all except the $APP_MAIN itself. ie. ["srs_main_server" "srs_main_bandcheck"]
@ -14,7 +15,7 @@
FILE=${SRS_OBJS}/${SRS_MAKEFILE}
APP_TARGET="${SRS_OBJS}/${APP_NAME}"
APP_TARGET="${SRS_OBJS_DIR}/${APP_NAME}"
echo "generate app ${APP_NAME} depends...";
@ -45,7 +46,7 @@ for item in ${MODULE_OBJS[*]}; do
continue;
fi
OBJ_FILE=${SRS_OBJS}/$item
OBJ_FILE=${SRS_OBJS_DIR}/$item
OBJ_FILE="${OBJ_FILE%.*}.o"
echo -n "${OBJ_FILE} " >> ${FILE}
done
@ -76,7 +77,7 @@ for item in ${MODULE_OBJS[*]}; do
continue;
fi
OBJ_FILE=${SRS_OBJS}/$item
OBJ_FILE=${SRS_OBJS_DIR}/$item
OBJ_FILE="${OBJ_FILE%.*}.o"
echo -n "${OBJ_FILE} " >> ${FILE}
done