diff options
Diffstat (limited to 'auto/make')
-rw-r--r-- | auto/make | 49 |
1 files changed, 9 insertions, 40 deletions
@@ -20,6 +20,11 @@ NXT_EXEC_LINK = $NXT_EXEC_LINK $NXT_LD_OPT NXT_SHARED_LOCAL_LINK = $NXT_SHARED_LOCAL_LINK $NXT_LD_OPT NXT_MODULE_LINK = $NXT_MODULE_LINK $NXT_LD_OPT +.PHONY: $NXT_BIN +$NXT_BIN: $NXT_BUILD_DIR/$NXT_BIN + +all: $NXT_BIN + END @@ -169,24 +174,19 @@ $echo >> $NXT_MAKEFILE # Object files list. -nxt_modules_obj=`$echo $NXT_MODULES_SRC | sed -e "s/\.c$/\.o/"` - $echo "NXT_OBJS = \\" >> $NXT_MAKEFILE -for nxt_src in $NXT_MAKE_SRCS $NXT_MODULES_SRCS +for nxt_src in $NXT_MAKE_SRCS do nxt_obj=`$echo $nxt_src | sed -e "s/\.c$/\.o/"` $echo " $NXT_BUILD_DIR/$nxt_obj \\" >> $NXT_MAKEFILE done -$echo " $nxt_modules_obj" >> $NXT_MAKEFILE $echo >> $NXT_MAKEFILE # nginext executable. -NXT_BIN=nginext - cat << END >> $NXT_MAKEFILE $NXT_BUILD_DIR/$NXT_BIN: $NXT_BUILD_DIR/$NXT_LIB_STATIC \\ @@ -215,48 +215,17 @@ END done -# nxt_modules.c. - -cat << END >> $NXT_MAKEFILE - -$nxt_modules_obj: $NXT_MODULES_SRC \$(NXT_DEPS) - \$(CC) -c \$(CFLAGS) \$(NXT_INCS) \\ - $NXT_LIB_AUX_CFLAGS \\ - -o $nxt_modules_obj \\ - $NXT_MODULES_SRC -END - - -if [ $NXT_PYTHON_MODULE != NO ]; then - . auto/modules/python/make -fi - -if [ $NXT_PHP_MODULE != NO ]; then - . auto/modules/php/make -fi - -if [ $NXT_GO_MODULE != NO ]; then - . auto/modules/go/make -fi - - # Makefile. # *.dSYM is MacOSX Clang debug information. cat << END > Makefile -.PHONY: $NXT_BIN lib_test - -all: $NXT_BIN - include $NXT_MAKEFILE - -lib_test: $NXT_BUILD_DIR/lib_unit_test $NXT_BUILD_DIR/utf8_file_name_test +.PHONY: lib_test +lib_test: $NXT_BUILD_DIR/lib_unit_test $NXT_BUILD_DIR/utf8_file_name_test clean: - rm -rf $NXT_BUILD_DIR *.dSYM Makefile - -$NXT_BIN: $NXT_BUILD_DIR/$NXT_BIN + rm -rf $NXT_BUILD_DIR *.dSYM Makefile END |