|
@@ -1,5 +1,10 @@
|
|
|
-HOST ?= $(firstword $(shell ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' -m 1 | cut -d: -f2))
|
|
|
-PORT ?= 8001
|
|
|
+#HOST ?= $(firstword $(shell ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' -m 1 | cut -d: -f2))
|
|
|
+HOST ?= 127.0.0.1
|
|
|
+
|
|
|
+PORT ?= 8044
|
|
|
+PORT1 ?= 8045
|
|
|
+PORT2 ?= 8046
|
|
|
+
|
|
|
|
|
|
NPROCS := 1
|
|
|
OS := $(shell uname -s)
|
|
@@ -12,7 +17,7 @@ PREFORK_WORKERS := $(shell expr $(NPROCS) + 1)
|
|
|
HTTPD_DIR = httpd-2.4.3
|
|
|
APR_DIR = apr-1.4.6
|
|
|
APRUTIL_DIR = apr-util-1.5.1
|
|
|
-PHP_DIR = php-5.6.6
|
|
|
+PHP_DIR = php-7.0.7
|
|
|
|
|
|
INSTALL_DIR = $(PWD)/obj
|
|
|
SRC_DIRS = $(HTTPD_DIR) $(APR_DIR) $(APRUTIL_DIR) $(PHP_DIR)
|
|
@@ -20,7 +25,7 @@ HTDOC=$(INSTALL_DIR)/htdocs
|
|
|
|
|
|
exec_target = httpd.manifest
|
|
|
|
|
|
-target = build-apache build-modules build-conf test-data
|
|
|
+target = build-apache build-modules #build-conf test-data
|
|
|
|
|
|
clean-extra = clean-apache
|
|
|
|
|
@@ -31,7 +36,7 @@ include ../../Makefile
|
|
|
|
|
|
.PHONY: build-apache build-modules build-conf
|
|
|
|
|
|
-build-apache: $(INSTALL_DIR)/bin/httpd $(INSTALL_DIR)/modules/libphp5.so
|
|
|
+build-apache: $(INSTALL_DIR)/bin/httpd $(INSTALL_DIR)/modules/libphp7.so
|
|
|
|
|
|
ifeq ($(DEBUG),1)
|
|
|
MAKE_FLAGS = CC="gcc -g"
|
|
@@ -63,7 +68,7 @@ $(INSTALL_DIR)/bin/httpd $(INSTALL_DIR)/bin/apxs: $(INSTALL_DIR)/lib/libapr-1.so
|
|
|
cd $(HTTPD_DIR) && $(MAKE) -j$(NPROCS) $(MAKE_FLAGS)
|
|
|
cd $(HTTPD_DIR) && $(MAKE) install
|
|
|
|
|
|
-$(INSTALL_DIR)/modules/libphp5.so: $(PHP_DIR) $(INSTALL_DIR)/bin/apxs
|
|
|
+$(INSTALL_DIR)/modules/libphp7.so: $(PHP_DIR) $(INSTALL_DIR)/bin/apxs
|
|
|
cd $< && ./configure --prefix=$(INSTALL_DIR) --with-apxs2=$(INSTALL_DIR)/bin/apxs \
|
|
|
--disable-cgi --disable-cli --disable-soap
|
|
|
cd $< && $(MAKE) -j$(NPROCS) $(MAKE_FLAGS)
|
|
@@ -104,8 +109,8 @@ clean-server:
|
|
|
rm -f $(INSTALL_DIR)/logs/httpd-$(HOST)-$(PORT).pid
|
|
|
|
|
|
start-native-server: clean-server
|
|
|
- @echo "Listen on $(HOST):$(PORT)"
|
|
|
- $(PREFIX) $(INSTALL_DIR)/bin/httpd -D FOREGROUND -C "ServerName $(HOST)" -C "Listen $(HOST):$(PORT)" -C "PidFile logs/httpd-$(HOST)-$(PORT).pid"
|
|
|
+ @echo "Listen on $(HOST):$(PORT1)"
|
|
|
+ $(PREFIX) $(INSTALL_DIR)/bin/httpd -D FOREGROUND -C "ServerName $(HOST)" -C "Listen $(HOST):$(PORT1)" -C "PidFile logs/httpd-$(HOST)-$(PORT1).pid"
|
|
|
|
|
|
start-graphene-server: clean-server
|
|
|
@echo "Listen on $(HOST):$(PORT)"
|
|
@@ -152,3 +157,4 @@ distclean: clean
|
|
|
|
|
|
clean-apache:
|
|
|
rm -rf $(test-data) $(addprefix mod_auth_basic_sandbox,.so .la .lo .o .slo)
|
|
|
+
|