I'm trying to add some .cpp files to the muscat module, the hard part is
getting them compiled!

My Makefile.in is:
LTLIBRARY_NAME        = libmuscat.la
LTLIBRARY_SOURCES     = muscat.c muscat_net.c
LTLIBRARY_SOURCES_CPP = muscatapi.cpp
LTLIBRARY_SHARED_NAME = muscat.la
LTLIBRARY_SHARED_LIBADD  = $(MUSCAT_SHARED_LIBADD)
LTLIBRARY_OBJECTS_X = $(LTLIBRARY_SOURCES_CPP:.cpp=.lo)

include $(top_srcdir)/build/dynlib.mk


I've tried to rip bits off qtdom module, one of the few others that uses
C++; but no joy.
Without the LTLIBRARY_OBJECTS_X it doesn't build muscatapi.o from
muscatapi.cpp at all; with it I get:
make[4]: Entering directory
`/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/muscat'
I. -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/muscat
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/main
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/Zend
-I/usr/local/empower/include
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/mysql/libmysql
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/xml/expat/xmltok
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/xml/expat/xmlparse
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/TSRM  -DXML_BYTE_ORDER=12   -c
muscatapi.cpp && touch muscatapi.lo
/bin/sh: I.: command not found
make[4]: [muscatapi.lo] Error 127 (ignored)

Whats the official rules on Makefile.in to have .cpp files build, AND where
SHOULD I have looked to find this.

Thanks

Sam

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to