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:
parent
2b63c55768
commit
300482b617
6 changed files with 4322 additions and 1 deletions
40
Makefile
Normal file
40
Makefile
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
NGINX_SOURCE_DIR = nginx
|
||||
NGINX_BUILD_DIR = nginx/objs
|
||||
|
||||
ifeq (, $(shell which bear))
|
||||
MUNIN_BEAR=make
|
||||
else
|
||||
MUNIN_BEAR=bear --
|
||||
endif
|
||||
|
||||
ifeq ($(shell uname), Darwin)
|
||||
NGX_MODEXT = .dylib
|
||||
else
|
||||
NGX_MODEXT = .so
|
||||
endif
|
||||
NGX_MODULE = libmuninn$(NGX_MODEXT)
|
||||
|
||||
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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue