Add minimal working module
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
ngx-http-pow: ngx-http-pow.c
|
||||
cc -o ngx-http-pow \
|
||||
-I../nginx/src/core \
|
||||
-I../nginx/objs \
|
||||
-I../nginx/src/os/unix \
|
||||
-I/opt/homebrew/Cellar/pcre2/10.47/include \
|
||||
-I/opt/homebrew/Cellar/openssl@3/3.6.0/include \
|
||||
-L../nginx/objs/src/core \
|
||||
-L/opt/homebrew/Cellar/pcre2/10.47/lib \
|
||||
-L/opt/homebrew/Cellar/openssl@3/3.6.0/lib \
|
||||
-lssl \
|
||||
-lcrypto \
|
||||
ngx-http-pow.c
|
||||
default: build
|
||||
|
||||
build: ngx_http_pow.c
|
||||
cd ../nginx; make -f Makefile modules; cd ../ngx-http-pow
|
||||
|
||||
.PHONY: configure
|
||||
configure:
|
||||
../nginx/auto/configure \
|
||||
--prefix=/Users/jona/repos/ngx-pow/nginx/install \
|
||||
--with-debug \
|
||||
--add-dynamic-module=/Users/jona/repos/ngx-pow/ngx-http-pow
|
||||
|
||||
.PHONY: run
|
||||
run: ngx-http-pow
|
||||
./ngx-http-pow
|
||||
run: build
|
||||
../nginx/objs/nginx -c "$(PWD)/ngx_http_pow.conf" -g "daemon off;"
|
||||
|
||||
Reference in New Issue
Block a user