created build tooling, subtrees, and stub code for a new NGINX core module

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2026-04-30 02:09:57 +00:00
parent 2b63c55768
commit 19fafc6a8c
6 changed files with 4315 additions and 2 deletions

32
Makefile Normal file
View file

@ -0,0 +1,32 @@
NGINX_SOURCE_DIR = nginx
ifeq (, $(shell which bear))
MUNIN_BEAR=make
else
MUNIN_BEAR=bear --
endif
ifneq ($(MUNINN_NGINX_DEBUG),)
MUNINN_NGINX_DEBUG="--with-debug"
endif
CURDIR = $(.CURDIR)
.PHONY: all clean build
all: nginx/objs/nginx
nginx/objs/Makefile:
cd $(NGINX_SOURCE_DIR) && \
./auto/configure \
$(MUNINN_NGINX_DEBUG) \
--with-http_ssl_module \
--with-compat \
--add-module=$(.CURDIR)
nginx/objs/nginx: nginx/objs/Makefile
$(MUNIN_BEAR) make -C $(NGINX_SOURCE_DIR)
clean:
make -C $(NGINX_SOURCE_DIR) clean