Add minimal working module

This commit is contained in:
2026-01-19 09:41:39 +01:00
parent 1234688921
commit 3d42ad0c19
7 changed files with 127 additions and 102 deletions
+13 -15
View File
@@ -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;"