Last commit for Makefile.frag: fe9dbee338fcfeef7003848a6b5219454661d105

- php-config invocation replaced with makefile variables

pp [2011-05-04 23:13:38]
- php-config invocation replaced with makefile variables


git-svn-id: https://siedziba.pl:790/svn/repos/php-imlib/trunk@339 455248ca-bdda-0310-9134-f4ebb693071a
filters_srcdir := $(top_srcdir)/filters
filters_builddir := $(top_builddir)/filters
filters := $(notdir $(basename $(wildcard $(filters_srcdir)/*.c)))
filters_la := $(addprefix $(filters_builddir)/,$(addsuffix .la,$(filters)))
filters_lo := $(addprefix $(filters_builddir)/,$(addsuffix .lo,$(filters)))
filters_libdir := $(INSTALL_ROOT)$(EXTENSION_DIR)/php_imlib_filters

all : $(filters_la)
install: filters_install
clean: filters_clean

$(filters_lo) : $(filters_builddir)/%.lo : $(filters_srcdir)/%.c
	$(LIBTOOL) --mode=compile $(CC) -c `php-config --includes` -I$(top_srcdir) $(filters_srcdir)/$*.c -o $(filters_builddir)/$*.lo
$(filters_la) : %.la : %.lo
	$(LIBTOOL) --mode=link $(CC) -module -avoid-version -o $*.la $*.lo -rpath $(filters_libdir) -lm
filters_install:
	$(mkinstalldirs) $(filters_libdir)
	$(LIBTOOL) --mode=install cp $(filters_la) $(filters_libdir)
filters_clean:
	rm -f $(filters_builddir)/*.{la,lo}
	rm -rf $(filters_builddir)/.libs
ViewGit