comparison finch/plugins/Makefile.am @ 24042:20846036cbd5

Fix compiling 'make plugin.so' when srcdir != builddir. This should've been part of the last commit.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 01 Sep 2008 16:16:30 +0000
parents 85c365822504
children bb99ee66120e
comparison
equal deleted inserted replaced
24041:db4400f75dd8 24042:20846036cbd5
50 # This part allows people to build their own plugins in here. 50 # This part allows people to build their own plugins in here.
51 # Yes, it's a mess. 51 # Yes, it's a mess.
52 # 52 #
53 SUFFIXES = .c .so 53 SUFFIXES = .c .so
54 .c.so: 54 .c.so:
55 $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_srcdir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS) 55 $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_builddir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS)
56 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS) 56 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS)
57 @rm -f tmp$@.lo tmp$@.o libtmp$@.la 57 @rm -f tmp$@.lo tmp$@.o libtmp$@.la
58 @cp .libs/libtmp$@.so* $@ 58 @cp .libs/libtmp$@.so* $@
59 @rm -f .libs/libtmp$@.* 59 @rm -f .libs/libtmp$@.*