comparison auto/make @ 6419:39a806ccf21e

Dynamic modules: perl.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 26 Feb 2016 14:27:04 +0300
parents 35487ea55cb6
children ae41f64f7c9b
comparison
equal deleted inserted replaced
6418:8e6f34342eb6 6419:39a806ccf21e
279 279
280 if test -n "$NGX_PCH"; then 280 if test -n "$NGX_PCH"; then
281 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" 281 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
282 else 282 else
283 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS) \$(HTTP_INCS)" 283 ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) \$(CORE_INCS) \$(HTTP_INCS)"
284 ngx_perl_cc="\$(CC) $ngx_compile_opt \$(NGX_PERL_CFLAGS) " 284 ngx_perl_cc="\$(CC) $ngx_compile_opt \$(NGX_PERL_CFLAGS)"
285 ngx_perl_cc="$ngx_perl_cc \$(CORE_INCS) \$(HTTP_INCS)" 285 ngx_perl_cc="$ngx_perl_cc \$(CORE_INCS) \$(HTTP_INCS)"
286 fi 286 fi
287 287
288 for ngx_source in $HTTP_SRCS 288 for ngx_source in $HTTP_SRCS
289 do 289 do
492 492
493 if test -n "$NGX_PCH"; then 493 if test -n "$NGX_PCH"; then
494 ngx_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)" 494 ngx_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
495 else 495 else
496 ngx_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(CFLAGS) \$(ALL_INCS)" 496 ngx_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(CFLAGS) \$(ALL_INCS)"
497 ngx_perl_cc="\$(CC) $ngx_compile_opt $ngx_pic_opt \$(NGX_PERL_CFLAGS)"
498 ngx_perl_cc="$ngx_perl_cc \$(ALL_INCS)"
497 fi 499 fi
498 500
499 ngx_obj_deps="\$(CORE_DEPS)" 501 ngx_obj_deps="\$(CORE_DEPS)"
500 if [ $HTTP != NO ]; then 502 if [ $HTTP != NO ]; then
501 ngx_obj_deps="$ngx_obj_deps \$(HTTP_DEPS)" 503 ngx_obj_deps="$ngx_obj_deps \$(HTTP_DEPS)"
637 $ngx_modules_obj: \$(CORE_DEPS)$ngx_cont$ngx_modules_c 639 $ngx_modules_obj: \$(CORE_DEPS)$ngx_cont$ngx_modules_c
638 $ngx_cc$ngx_tab$ngx_objout$ngx_modules_obj$ngx_tab$ngx_modules_c$NGX_AUX 640 $ngx_cc$ngx_tab$ngx_objout$ngx_modules_obj$ngx_tab$ngx_modules_c$NGX_AUX
639 641
640 END 642 END
641 643
642 for ngx_src in $ngx_module_srcs 644 for ngx_source in $ngx_module_srcs
643 do 645 do
644 case "$ngx_src" in 646 case "$ngx_source" in
645 src/*) 647 src/*)
646 ngx_obj=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` 648 ngx_obj=`echo $ngx_source | sed -e "s/\//$ngx_regex_dirsep/g"`
647 ;; 649 ;;
648 *) 650 *)
649 ngx_obj="addon/`basename \`dirname $ngx_src\``" 651 ngx_obj="addon/`basename \`dirname $ngx_source\``"
650 ngx_obj=`echo $ngx_obj/\`basename $ngx_src\` \ 652 ngx_obj=`echo $ngx_obj/\`basename $ngx_source\` \
651 | sed -e "s/\//$ngx_regex_dirsep/g"` 653 | sed -e "s/\//$ngx_regex_dirsep/g"`
652 ;; 654 ;;
653 esac 655 esac
654 656
655 ngx_obj=`echo $ngx_obj \ 657 ngx_obj=`echo $ngx_obj \
656 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \ 658 | sed -e "s#^\(.*\.\)cpp\\$#$ngx_objs_dir\1$ngx_objext#g" \
657 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \ 659 -e "s#^\(.*\.\)cc\\$#$ngx_objs_dir\1$ngx_objext#g" \
658 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \ 660 -e "s#^\(.*\.\)c\\$#$ngx_objs_dir\1$ngx_objext#g" \
659 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"` 661 -e "s#^\(.*\.\)S\\$#$ngx_objs_dir\1$ngx_objext#g"`
660 662
661 ngx_src=`echo $ngx_src | sed -e "s/\//$ngx_regex_dirsep/g"` 663 ngx_src=`echo $ngx_source | sed -e "s/\//$ngx_regex_dirsep/g"`
662 664
663 cat << END >> $NGX_MAKEFILE 665 if [ $ngx_source = src/http/modules/perl/ngx_http_perl_module.c ]; then
666
667 cat << END >> $NGX_MAKEFILE
668
669 $ngx_obj: $ngx_obj_deps$ngx_cont$ngx_src
670 $ngx_perl_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
671
672 END
673 else
674
675 cat << END >> $NGX_MAKEFILE
664 676
665 $ngx_obj: $ngx_obj_deps$ngx_cont$ngx_src 677 $ngx_obj: $ngx_obj_deps$ngx_cont$ngx_src
666 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX 678 $ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
667 679
668 END 680 END
669 681
682 fi
670 done 683 done
671 done 684 done