Adjust makefile

This commit is contained in:
Timothy Warren 2012-11-28 10:11:03 -05:00
parent b597a7a741
commit 40d923ee03
3 changed files with 9 additions and 5 deletions

View File

@ -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;

View File

@ -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}

View File

@ -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);
}