the general info on make is much appreciated.
i did do a ./configure on php (--with-ming) but not on ming. there is something i was wondering ... on some examples there was a path specified here (but only as $PATH or something, not explicitly). i felt that i was meant to put an explicit path there, but i wasn't sure whether it meant a path to the ming src, or to ming once it was installed. as some examples had no path here, and i was unsure, i tried it without.
after doing a little reading i took a look at the ming makefile. the majority of it i'm still not understanding but i was able to ascertain that there is a target for static.
that is, there is a target if lines like:
Code:
static:
cd src && make static
constitute a target. the make file in src (which i assume that is referencing) has lines:
Code:
static: ${OFILES}
cd blocks && make
cd actioncompiler && make
ar r libming.a blocks/*.o ${OFILES} ${COMPILEROFILES}
ranlib libming.a # bsd requires this?
cp libming.a ..
i'm not seeing any mention of the php_ext directory from which my second make was failing.
here's the makefile from php_ext:
Code:
CC = gcc -Wall -g
prefix=`php-config --prefix`
DEFINES = -DHAVE_MING -DCOMPILE_DL_MING -DZEND_NEW_ERROR_HANDLING
CFILES = ming.c
php_ming.so: ming.o ../libming.a
${CC} -shared -fpic ming.o ../libming.a -o php_ming.so -lm
ming.o: ${CFILES}
${CC} ${DEFINES} -c ming.c -I. -I.. `php-config --includes`
../libming.a:
cd ..; make static
clean:
rm -f php_ming.so
install:
cp php_ming.so `php-config --extension-dir`
echo "Don't forget to add 'extension=php_ming.so' to php.ini!"
the line ming.o: ${CFILES} is the one that is stopping the program?
indeed there is no ming.c in the php_ext directory.
hmmm. there's a ming-4.0.6.c and a ming-4.0.7.c.