diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-01-17 20:00:00 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-01-17 20:00:00 +0300 |
commit | 16cbf3c076a0aca6d47adaf3f719493674cf2363 (patch) | |
tree | e6530480020f62a2bdbf249988ec3e2a751d3927 /auto/modules/python/make | |
download | unit-16cbf3c076a0aca6d47adaf3f719493674cf2363.tar.gz unit-16cbf3c076a0aca6d47adaf3f719493674cf2363.tar.bz2 |
Initial version.
Diffstat (limited to 'auto/modules/python/make')
-rw-r--r-- | auto/modules/python/make | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/auto/modules/python/make b/auto/modules/python/make new file mode 100644 index 00000000..edb8f0c0 --- /dev/null +++ b/auto/modules/python/make @@ -0,0 +1,24 @@ + +# Copyright (C) NGINX, Inc. +# Copyright (C) Valentin V. Bartenev + + +$echo >> $NXT_MAKEFILE +$echo >> $NXT_MAKEFILE + + +# The python module object files. + +for nxt_src in $NXT_PYTHON_MODULE_SRCS +do + nxt_obj=`$echo $nxt_src | sed -e "s/\.c$/\.o/"` + cat << END >> $NXT_MAKEFILE + +$NXT_BUILD_DIR/$nxt_obj: $nxt_src + \$(CC) -c \$(CFLAGS) \$(NXT_INCS) -I $NXT_PYTHON_INCLUDE \\ + $NXT_LIB_AUX_CFLAGS \\ + -o $NXT_BUILD_DIR/$nxt_obj \\ + $nxt_src +END + +done |