2007-06-26 16:17:16 +00:00
|
|
|
# Adapted from Pidgin's plugins/Makefile.am, thanks
|
|
|
|
|
2007-09-10 18:25:03 +00:00
|
|
|
EXTRA_DIST = \
|
2007-10-24 12:04:15 +00:00
|
|
|
makefile.win32 \
|
|
|
|
pluginmacros.h
|
2007-06-26 16:17:16 +00:00
|
|
|
|
|
|
|
plugindir = $(libdir)/geany
|
|
|
|
|
2008-03-13 12:15:26 +00:00
|
|
|
plugins_includedir = $(includedir)/geany/
|
|
|
|
plugins_include_HEADERS = pluginmacros.h
|
|
|
|
|
2007-06-26 16:17:16 +00:00
|
|
|
demoplugin_la_LDFLAGS = -module -avoid-version
|
2007-07-04 11:32:33 +00:00
|
|
|
classbuilder_la_LDFLAGS = -module -avoid-version
|
2007-07-23 15:41:08 +00:00
|
|
|
htmlchars_la_LDFLAGS = -module -avoid-version
|
2007-08-19 17:40:19 +00:00
|
|
|
export_la_LDFLAGS = -module -avoid-version
|
2007-11-14 16:44:45 +00:00
|
|
|
vcdiff_la_LDFLAGS = -module -avoid-version
|
2007-11-22 17:03:53 +00:00
|
|
|
autosave_la_LDFLAGS = -module -avoid-version
|
2007-10-22 12:42:19 +00:00
|
|
|
filebrowser_la_LDFLAGS = -module -avoid-version
|
2007-06-26 16:17:16 +00:00
|
|
|
|
|
|
|
if PLUGINS
|
|
|
|
|
|
|
|
# Plugins to be installed
|
|
|
|
plugin_LTLIBRARIES = \
|
2007-07-23 15:41:08 +00:00
|
|
|
classbuilder.la \
|
2007-08-19 17:40:19 +00:00
|
|
|
htmlchars.la \
|
2007-10-15 08:52:20 +00:00
|
|
|
export.la \
|
2007-11-14 16:44:45 +00:00
|
|
|
vcdiff.la \
|
2007-11-22 17:03:53 +00:00
|
|
|
autosave.la \
|
2007-10-22 12:42:19 +00:00
|
|
|
filebrowser.la
|
2007-06-26 16:17:16 +00:00
|
|
|
|
|
|
|
# Plugins not to be installed
|
2007-08-29 16:11:42 +00:00
|
|
|
noinst_LTLIBRARIES = \
|
|
|
|
demoplugin.la
|
2007-06-26 16:17:16 +00:00
|
|
|
|
|
|
|
demoplugin_la_SOURCES = demoplugin.c
|
2007-07-04 11:32:33 +00:00
|
|
|
classbuilder_la_SOURCES = classbuilder.c
|
2007-07-23 15:41:08 +00:00
|
|
|
htmlchars_la_SOURCES = htmlchars.c
|
2007-08-19 17:40:19 +00:00
|
|
|
export_la_SOURCES = export.c
|
2007-11-14 16:44:45 +00:00
|
|
|
vcdiff_la_SOURCES = vcdiff.c
|
2007-11-22 17:03:53 +00:00
|
|
|
autosave_la_SOURCES = autosave.c
|
2007-10-22 12:42:19 +00:00
|
|
|
filebrowser_la_SOURCES = filebrowser.c
|
2007-06-26 16:17:16 +00:00
|
|
|
|
2007-06-26 18:08:00 +00:00
|
|
|
demoplugin_la_LIBADD = $(GTK_LIBS)
|
2007-07-04 11:32:33 +00:00
|
|
|
classbuilder_la_LIBADD = $(GTK_LIBS)
|
2007-07-23 15:41:08 +00:00
|
|
|
htmlchars_la_LIBADD = $(GTK_LIBS)
|
2007-08-19 17:40:19 +00:00
|
|
|
export_la_LIBADD = $(GTK_LIBS)
|
2007-11-22 17:03:53 +00:00
|
|
|
vcdiff_la_LIBADD = $(GTK_LIBS)
|
2008-02-07 14:19:45 +00:00
|
|
|
autosave_la_LIBADD = $(GTK_LIBS)
|
2007-10-22 12:42:19 +00:00
|
|
|
filebrowser_la_LIBADD = $(GTK_LIBS)
|
2007-06-26 16:17:16 +00:00
|
|
|
|
|
|
|
endif # PLUGINS
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-DDATADIR=\"$(datadir)\" \
|
2007-07-24 09:24:14 +00:00
|
|
|
-I$(top_srcdir)/src \
|
2007-06-26 16:17:16 +00:00
|
|
|
-I$(top_srcdir)/tagmanager/include \
|
|
|
|
-I$(top_srcdir)/scintilla/include \
|
2007-06-26 18:08:00 +00:00
|
|
|
$(GTK_CFLAGS) \
|
2007-06-26 16:17:16 +00:00
|
|
|
$(PLUGIN_CFLAGS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# This part allows people to build their own plugins in here.
|
|
|
|
# Yes, it's a mess.
|
|
|
|
#
|
|
|
|
SUFFIXES = .c .so
|
|
|
|
.c.so:
|
|
|
|
$(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_srcdir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS)
|
|
|
|
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS)
|
|
|
|
@rm -f tmp$@.lo tmp$@.o libtmp$@.la
|
|
|
|
@cp .libs/libtmp$@.so* $@
|
|
|
|
@rm -f .libs/libtmp$@.*
|