forked from dfuhry/lmdb-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
12 lines (7 loc) · 681 Bytes
/
Makefile
File metadata and controls
12 lines (7 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
all:
#gcc -Wall -Wno-unused-label -Wno-unused-function -Wno-unused-variable -O2 -shared -fpic lmdb-php_wrap.c -I/usr/local/include/php/Zend/ -I/usr/local/include/php/TSRM/ -I/usr/local/include/php/ -I/usr/local/include/php/main/ -I/usr/include/php5/Zend/ -I/usr/include/php5/ -I/usr/include/php5/TSRM/ -I/usr/include/php5/main/ -llmdb -o lmdb-php.so
gcc -shared -fpic -Wall -Wno-unused-label -Wno-unused-function -Wno-unusued-variable lmdb-php_wrap.c `php-config --includes` -llmdb -o lmdb.so
swig-php5:
swig -php5 -Wall lmdb-php.i
test:
cd tests && ( for p in *php; do echo -n "$$p: "; php -d extension=../lmdb-php.so $$p > /dev/null && echo OK || echo NOT OK; done )