comparison libpurple/plugins/Makefile.am @ 23971:db4400f75dd8

Fix compiling 'make plugin.so' when srcdir != builddir
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 01 Sep 2008 16:09:01 +0000
parents 2c69ceca8067
children 425fc6b6c110 bb99ee66120e
comparison
equal deleted inserted replaced
23970:e339b3429965 23971:db4400f75dd8
148 # This part allows people to build their own plugins in here. 148 # This part allows people to build their own plugins in here.
149 # Yes, it's a mess. 149 # Yes, it's a mess.
150 # 150 #
151 SUFFIXES = .c .so 151 SUFFIXES = .c .so
152 .c.so: 152 .c.so:
153 $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_srcdir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS) 153 $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_builddir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS)
154 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS) 154 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS)
155 @rm -f tmp$@.lo tmp$@.o libtmp$@.la 155 @rm -f tmp$@.lo tmp$@.o libtmp$@.la
156 @cp .libs/libtmp$@.so* $@ 156 @cp .libs/libtmp$@.so* $@
157 @rm -f .libs/libtmp$@.* 157 @rm -f .libs/libtmp$@.*