aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Pouar <thepouar@gmail.com>2017-02-19 18:33:34 -0600
committerGravatar Pouar <thepouar@gmail.com>2017-02-19 18:33:34 -0600
commit75cab6f513b2e7e962a98806c262120bd2dc955a (patch)
treeaa113c0035fc6fb67fa510dbc037685fed163462
parentdon't need this anymore (diff)
add kcgi as a submodule to make building for different x86 processors
quicker as it is built statically
-rw-r--r--.gitmodules3
-rw-r--r--Makefile9
m---------kcgi0
3 files changed, 9 insertions, 3 deletions
diff --git a/.gitmodules b/.gitmodules
index 8364bdf..32068da 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -4,3 +4,6 @@
[submodule "php-xxhash"]
path = php-xxhash
url = https://github.com/Megasaxon/php-xxhash.git
+[submodule "kcgi"]
+ path = kcgi
+ url = https://github.com/kristapsdz/kcgi.git
diff --git a/Makefile b/Makefile
index ccf78d6..65d6614 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
+CFLAGS:=-O2
default:
- gcc -O2 -o identifur xxHash/xxhash.c identifur.c -lbsd
-fcgi:
- gcc -O2 -o identifurfcgi xxHash/xxhash.c identifurfcgi.c -lkcgi
+ gcc $(CFLAGS) -o identifur xxHash/xxhash.c identifur.c -lbsd
+fcgi: build-kcgi
+ gcc $(CFLAGS) -I./kcgi -o identifurfcgi xxHash/xxhash.c identifurfcgi.c kcgi/libkcgi.a -s
clean:
rm -f identifurfcgi identifur
+build-kcgi:
+ cd kcgi;./configure;make -j$(shell nproc)
all: default fcgi
diff --git a/kcgi b/kcgi
new file mode 160000
+Subproject 3fa6626a3f6c5476c7041a9cf67964a9ddaef75