Adjust makefile
This commit is contained in:
parent
b597a7a741
commit
40d923ee03
@ -14,12 +14,16 @@
|
||||
* Wrapper program for embeded php
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sapi/embed/php_embed.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
PHP_EMBED_START_BLOCK(argc,argv)
|
||||
zend_eval_string("include ('./OpenSQLManager.php');", NULL, "TEST" TSRMLS_CC);
|
||||
zend_eval_string(" \
|
||||
chdir(dirname($argv[0])); \
|
||||
require ('OpenSQLManager.php'); \
|
||||
", NULL, "TEST" TSRMLS_CC);
|
||||
PHP_EMBED_END_BLOCK()
|
||||
|
||||
return 0;
|
||||
|
4
makefile
4
makefile
@ -4,5 +4,5 @@ CFLAGS = -c `/opt/php-embed/bin/php-config --includes` -Wall -g
|
||||
LDFLAGS = -L/Library/Frameworks/Firebird.framework/Libraries -L/opt/php-embed/lib -lphp5 `/opt/php-embed/bin/php-config --libs`
|
||||
|
||||
all: OpenSQLManager.c
|
||||
${CC} -o OpenSQLManager.o OpenSQLManager.c ${CFLAGS}
|
||||
${CC} -o OpenSQLManager OpenSQLManager.o ${LDFLAGS}
|
||||
${CC} -O0 -o OpenSQLManager.o OpenSQLManager.c ${CFLAGS}
|
||||
${CC} -O0 -o OpenSQLManager OpenSQLManager.o ${LDFLAGS}
|
@ -211,7 +211,7 @@ class Connection_Sidebar extends \wxPanel {
|
||||
// Add Images to the Image list
|
||||
foreach(glob(OSM_RESOURCE_DIR.'/images/*.xpm') as $path)
|
||||
{
|
||||
//$img = new \wxBitmap($path);
|
||||
//$img = new \wxBitmap(file_get_contents($path));
|
||||
//$this->img_list->Add($img);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user