diff options
| author | Romain Chantereay <rchantereau@entrouvert.com> | 2004-08-23 17:21:25 +0000 |
|---|---|---|
| committer | Romain Chantereay <rchantereau@entrouvert.com> | 2004-08-23 17:21:25 +0000 |
| commit | 20eb1ff2e370040b5fa7fa135974c4447340a1db (patch) | |
| tree | 427662dcd2678f2fee11b405c7dfe9a764df093c /php | |
| parent | cceff2109b358b2b199b76f240caeada3c3f44db (diff) | |
| download | lasso-20eb1ff2e370040b5fa7fa135974c4447340a1db.tar.gz lasso-20eb1ff2e370040b5fa7fa135974c4447340a1db.tar.xz lasso-20eb1ff2e370040b5fa7fa135974c4447340a1db.zip | |
Serious rewrite of the automake file.
The php extension is now named lasso.
The LTLIBRARIES if for 'php_extension' and no more 'lib'.
The swig command invokation is updated to use the new php extension name.
Diffstat (limited to 'php')
| -rw-r--r-- | php/Makefile.am | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/php/Makefile.am b/php/Makefile.am index 16366cda..8481a5b3 100644 --- a/php/Makefile.am +++ b/php/Makefile.am @@ -2,29 +2,33 @@ PHP_PACKAGE=lasso SWIG_OUTPUTS=$(PHP_PACKAGE)_wrap.c php_$(PHP_PACKAGE).h $(PHP_PACKAGE).php -lib_LTLIBRARIES = php_lasso.la -php_lasso_la_CFLAGS = $(LASSO_CFLAGS) \ +php_extension_LTLIBRARIES = lasso.la +lasso_la_CFLAGS = $(LASSO_CFLAGS) \ -I$(top_srcdir) \ $(PHP_INCLUDES) -php_lasso_la_LDFLAGS = -export-dynamic \ +lasso_la_LDFLAGS = -export-dynamic \ -prefer-pic \ -module \ -avoid-version -php_lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la \ +lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la \ $(LASSO_LIBS) \ $(PHP_LDFLAGS) -php_lasso_la_SOURCES=$(PHP_PACKAGE)_wrap.c +lasso_la_SOURCES=$(PHP_PACKAGE)_wrap.c -libdir=${prefix}@PHP_UNPREFIXED_EXTENSION_DIR@ +php_extensiondir=${prefix}@PHP_UNPREFIXED_EXTENSION_DIR@ -$(PHP_PACKAGE)_wrap.c php_$(PHP_PACKAGE).h: $(top_srcdir)/swig/Lasso.i - $(SWIG) -v -php4 -noproxy -module $(PHP_PACKAGE) -o $(PHP_PACKAGE)_wrap.c $< +$(PHP_PACKAGE)_wrap.c php_$(PHP_PACKAGE).h $(PHP_PACKAGE).php: $(top_srcdir)/swig/Lasso.i + $(SWIG) -v -php4 -noproxy \ + -module $(PHP_PACKAGE) \ + -o $(PHP_PACKAGE)_wrap.c \ + -dlname $(PHP_PACKAGE) \ + $< -$(DEPDIR)/php_lasso_la-$(PHP_PACKAGE)_wrap.Plo: - echo "#dummy" > .deps/libjlasso_la-lasso_wrap.Plo +$(DEPDIR)/lasso_la-$(PHP_PACKAGE)_wrap.Plo: + echo "#dummy" > $(DEPDIR)/lasso_la-$(PHP_PACKAGE)_wrap.Plo -test-php: php_lasso.la - $(PHP) -d extension_dir=.libs $(PHP_PACKAGE).php +test-php: lasso.la $(PHP_PACKAGE).php + $(PHP) -d extension_dir=.libs $(srcdir)/$(PHP_PACKAGE).php MAINTAINERCLEANFILES=$(SWIG_OUTPUTS) |
