Skip to content

Commit d396011

Browse files
committed
update makefile for x86 and x64
Signed-off-by: zqzjz0911 <[email protected]>
1 parent ca4432f commit d396011

File tree

8 files changed

+26
-5
lines changed

8 files changed

+26
-5
lines changed

src/nginx/build_nginx.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ SET ORG_DIR=%cd%
22
cd /d %~dp0
33

44
del /S /Q objs\*.obj
5-
nmake
65

76
cd /d %ORG_DIR%
7+
nmake

src/nginx/build_nginx_x64.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ SET ORG_DIR=%cd%
22
cd /d %~dp0
33

44
del /S /Q objs\*.obj
5-
nmake -f makefileW64
65

76
cd /d %ORG_DIR%
7+
nmake -f MakefileW64

src/nginx/build_openssl_x64.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ SET ORG_DIR=%cd%
22
SET nginxpath=%~dp0
33

44
cd /d %~dp0
5-
cd /d .\objs\lib\openssl\
5+
cd /d .\objs\lib_x64\openssl\
66

77
del /S /Q *.obj
88

src/nginx/config.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export LIBPQ_LIB=../ngx_postgres-1.0rc7/lib
33
export LUAJIT_INC=../luajit-root/luajit/include/luajit-2.1
44
export LUAJIT_LIB=../luajit-root/luajit/lib
55

6-
./configure --with-cc=cl --builddir=objs --prefix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-scgi-temp-path=temp/scgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --with-cc-opt=-DFD_SETSIZE=32768 --with-pcre=objs/lib/pcre --with-zlib=objs/lib/zlib --with-openssl=objs/lib/openssl --with-select_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_stub_status_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_slice_module --with-mail --with-stream --with-http_ssl_module --with-mail_ssl_module --with-stream_ssl_module --with-http_v2_module --with-ipv6 --add-module=../ngx_devel_kit-0.3.0 --add-module=../echo-nginx-module-0.60 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.31 --add-module=../ngx_postgres-1.0rc7 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.06 --add-module=../ngx_lua --add-module=../ngx_lua_upstream-0.06 --add-module=../headers-more-nginx-module-0.31 --add-module=../array-var-nginx-module-0.05 --add-module=../nginx-http-concat-module --add-module=../rds-json-nginx-module-0.14 --add-module=../redis2-nginx-module-0.13
6+
./configure --with-cc=cl --builddir=objs --prefix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-scgi-temp-path=temp/scgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --with-cc-opt=-DFD_SETSIZE=32768 --with-pcre=objs/lib/pcre --with-zlib=objs/lib/zlib --with-openssl=objs/lib/openssl --with-select_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_stub_status_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_slice_module --with-mail --with-stream --with-http_ssl_module --with-mail_ssl_module --with-stream_ssl_module --with-http_v2_module --add-module=../ngx_devel_kit-0.3.0 --add-module=../echo-nginx-module-0.60 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.31 --add-module=../ngx_postgres-1.0rc7 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.06 --add-module=../ngx_lua --add-module=../ngx_lua_upstream-0.06 --add-module=../headers-more-nginx-module-0.31 --add-module=../array-var-nginx-module-0.05 --add-module=../nginx-http-concat-module --add-module=../rds-json-nginx-module-0.14 --add-module=../redis2-nginx-module-0.13

src/nginx/objs/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ objs/nginx.exe: objs/src/core/nginx.obj \
313313
objs/src/stream/ngx_stream_proxy_module.obj \
314314
objs/src/stream/ngx_stream_upstream.obj \
315315
objs/src/stream/ngx_stream_upstream_round_robin.obj \
316+
objs/src/stream/ngx_stream_write_filter_module.obj \
316317
objs/src/stream/ngx_stream_ssl_module.obj \
317318
objs/src/stream/ngx_stream_limit_conn_module.obj \
318319
objs/src/stream/ngx_stream_access_module.obj \
@@ -603,6 +604,7 @@ objs/nginx.exe: objs/src/core/nginx.obj \
603604
objs/src/stream/ngx_stream_proxy_module.obj
604605
objs/src/stream/ngx_stream_upstream.obj
605606
objs/src/stream/ngx_stream_upstream_round_robin.obj
607+
objs/src/stream/ngx_stream_write_filter_module.obj
606608
objs/src/stream/ngx_stream_ssl_module.obj
607609
objs/src/stream/ngx_stream_limit_conn_module.obj
608610
objs/src/stream/ngx_stream_access_module.obj
@@ -1841,6 +1843,13 @@ objs/src/stream/ngx_stream_upstream_round_robin.obj: $(CORE_DEPS) $(STREAM_DEPS)
18411843
src/stream/ngx_stream_upstream_round_robin.c
18421844

18431845

1846+
objs/src/stream/ngx_stream_write_filter_module.obj: $(CORE_DEPS) $(STREAM_DEPS) \
1847+
src/stream/ngx_stream_write_filter_module.c
1848+
$(CC) -c $(CFLAGS) $(CORE_INCS) $(STREAM_INCS) \
1849+
-Foobjs/src/stream/ngx_stream_write_filter_module.obj \
1850+
src/stream/ngx_stream_write_filter_module.c
1851+
1852+
18441853
objs/src/stream/ngx_stream_ssl_module.obj: $(CORE_DEPS) $(STREAM_DEPS) \
18451854
src/stream/ngx_stream_ssl_module.c
18461855
$(CC) -c $(CFLAGS) $(CORE_INCS) $(STREAM_INCS) \

src/nginx/objs/MakefileW64

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ objs/nginx.exe: objs/src/core/nginx.obj \
313313
objs/src/stream/ngx_stream_proxy_module.obj \
314314
objs/src/stream/ngx_stream_upstream.obj \
315315
objs/src/stream/ngx_stream_upstream_round_robin.obj \
316+
objs/src/stream/ngx_stream_write_filter_module.obj \
316317
objs/src/stream/ngx_stream_ssl_module.obj \
317318
objs/src/stream/ngx_stream_limit_conn_module.obj \
318319
objs/src/stream/ngx_stream_access_module.obj \
@@ -603,6 +604,7 @@ objs/nginx.exe: objs/src/core/nginx.obj \
603604
objs/src/stream/ngx_stream_proxy_module.obj
604605
objs/src/stream/ngx_stream_upstream.obj
605606
objs/src/stream/ngx_stream_upstream_round_robin.obj
607+
objs/src/stream/ngx_stream_write_filter_module.obj
606608
objs/src/stream/ngx_stream_ssl_module.obj
607609
objs/src/stream/ngx_stream_limit_conn_module.obj
608610
objs/src/stream/ngx_stream_access_module.obj
@@ -1839,6 +1841,13 @@ objs/src/stream/ngx_stream_upstream_round_robin.obj: $(CORE_DEPS) $(STREAM_DEPS)
18391841
src/stream/ngx_stream_upstream_round_robin.c
18401842

18411843

1844+
objs/src/stream/ngx_stream_write_filter_module.obj: $(CORE_DEPS) $(STREAM_DEPS) \
1845+
src/stream/ngx_stream_write_filter_module.c
1846+
$(CC) -c $(CFLAGS) $(CORE_INCS) $(STREAM_INCS) \
1847+
-Foobjs/src/stream/ngx_stream_write_filter_module.obj \
1848+
src/stream/ngx_stream_write_filter_module.c
1849+
1850+
18421851
objs/src/stream/ngx_stream_ssl_module.obj: $(CORE_DEPS) $(STREAM_DEPS) \
18431852
src/stream/ngx_stream_ssl_module.c
18441853
$(CC) -c $(CFLAGS) $(CORE_INCS) $(STREAM_INCS) \

src/nginx/objs/ngx_auto_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define NGX_CONFIGURE " --with-cc=cl --builddir=objs --prefix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-scgi-temp-path=temp/scgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --with-cc-opt=-DFD_SETSIZE=32768 --with-pcre=objs/lib/pcre --with-zlib=objs/lib/zlib --with-openssl=objs/lib/openssl --with-select_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_stub_status_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_slice_module --with-mail --with-stream --with-http_ssl_module --with-mail_ssl_module --with-stream_ssl_module --with-http_v2_module --with-ipv6 --add-module=../ngx_devel_kit-0.3.0 --add-module=../echo-nginx-module-0.60 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.31 --add-module=../ngx_postgres-1.0rc7 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.06 --add-module=../ngx_lua --add-module=../ngx_lua_upstream-0.06 --add-module=../headers-more-nginx-module-0.31 --add-module=../array-var-nginx-module-0.05 --add-module=../nginx-http-concat-module --add-module=../rds-json-nginx-module-0.14 --add-module=../redis2-nginx-module-0.13"
1+
#define NGX_CONFIGURE " --with-cc=cl --builddir=objs --prefix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid --http-log-path=logs/access.log --error-log-path=logs/error.log --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-scgi-temp-path=temp/scgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --with-cc-opt=-DFD_SETSIZE=32768 --with-pcre=objs/lib/pcre-8.38 --with-zlib=objs/lib/zlib-1.28 --with-openssl=objs/lib/openssl-1.0.2j --with-select_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_stub_status_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_slice_module --with-mail --with-stream --with-http_ssl_module --with-mail_ssl_module --with-stream_ssl_module --with-http_v2_module --add-module=../ngx_devel_kit-0.3.0 --add-module=../echo-nginx-module-0.60 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.31 --add-module=../ngx_postgres-1.0rc7 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.06 --add-module=../ngx_lua_module-0.10.6 --add-module=../ngx_lua_upstream-0.06 --add-module=../headers-more-nginx-module-0.31 --add-module=../array-var-nginx-module-0.05 --add-module=../nginx-http-concat-module --add-module=../rds-json-nginx-module-0.14 --add-module=../redis2-nginx-module-0.13"
22

33
#ifndef NGX_COMPILER
44
#define NGX_COMPILER "cl "

src/nginx/objs/ngx_modules.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ extern ngx_module_t ngx_stream_core_module;
9797
extern ngx_module_t ngx_stream_log_module;
9898
extern ngx_module_t ngx_stream_proxy_module;
9999
extern ngx_module_t ngx_stream_upstream_module;
100+
extern ngx_module_t ngx_stream_write_filter_module;
100101
extern ngx_module_t ngx_stream_ssl_module;
101102
extern ngx_module_t ngx_stream_limit_conn_module;
102103
extern ngx_module_t ngx_stream_access_module;
@@ -202,6 +203,7 @@ ngx_module_t *ngx_modules[] = {
202203
&ngx_stream_log_module,
203204
&ngx_stream_proxy_module,
204205
&ngx_stream_upstream_module,
206+
&ngx_stream_write_filter_module,
205207
&ngx_stream_ssl_module,
206208
&ngx_stream_limit_conn_module,
207209
&ngx_stream_access_module,
@@ -309,6 +311,7 @@ char *ngx_module_names[] = {
309311
"ngx_stream_log_module",
310312
"ngx_stream_proxy_module",
311313
"ngx_stream_upstream_module",
314+
"ngx_stream_write_filter_module",
312315
"ngx_stream_ssl_module",
313316
"ngx_stream_limit_conn_module",
314317
"ngx_stream_access_module",

0 commit comments

Comments
 (0)