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 = \
|
2015-08-26 23:58:31 +02:00
|
|
|
demoproxytest.px
|
2007-06-26 16:17:16 +00:00
|
|
|
|
|
|
|
plugindir = $(libdir)/geany
|
|
|
|
|
2009-01-12 00:33:29 +00:00
|
|
|
plugins_includedir = $(includedir)/geany
|
2008-12-02 16:34:32 +00:00
|
|
|
plugins_include_HEADERS = \
|
2014-10-13 19:08:57 -07:00
|
|
|
geanyfunctions.h \
|
|
|
|
geanyplugin.h
|
2008-12-03 12:41:05 +00:00
|
|
|
|
2014-10-29 15:27:51 +01:00
|
|
|
demoplugin_la_LDFLAGS = -module -avoid-version -no-undefined
|
2015-08-26 23:58:31 +02:00
|
|
|
demoproxy_la_LDFLAGS = -module -avoid-version -no-undefined
|
2014-10-29 15:27:51 +01:00
|
|
|
classbuilder_la_LDFLAGS = -module -avoid-version -no-undefined
|
|
|
|
htmlchars_la_LDFLAGS = -module -avoid-version -no-undefined
|
|
|
|
export_la_LDFLAGS = -module -avoid-version -no-undefined
|
|
|
|
saveactions_la_LDFLAGS = -module -avoid-version -no-undefined
|
|
|
|
filebrowser_la_LDFLAGS = -module -avoid-version -no-undefined
|
|
|
|
splitwindow_la_LDFLAGS = -module -avoid-version -no-undefined
|
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 \
|
2008-10-02 13:37:35 +00:00
|
|
|
saveactions.la \
|
2008-08-26 15:58:07 +00:00
|
|
|
filebrowser.la \
|
|
|
|
splitwindow.la
|
2007-06-26 16:17:16 +00:00
|
|
|
|
|
|
|
# Plugins not to be installed
|
2007-08-29 16:11:42 +00:00
|
|
|
noinst_LTLIBRARIES = \
|
2015-08-26 23:58:31 +02:00
|
|
|
demoplugin.la \
|
|
|
|
demoproxy.la
|
2007-06-26 16:17:16 +00:00
|
|
|
|
|
|
|
demoplugin_la_SOURCES = demoplugin.c
|
2015-08-26 23:58:31 +02:00
|
|
|
demoproxy_la_SOURCES = demoproxy.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
|
2008-10-02 13:37:35 +00:00
|
|
|
saveactions_la_SOURCES = saveactions.c
|
2007-10-22 12:42:19 +00:00
|
|
|
filebrowser_la_SOURCES = filebrowser.c
|
2008-08-26 15:58:07 +00:00
|
|
|
splitwindow_la_SOURCES = splitwindow.c
|
2007-06-26 16:17:16 +00:00
|
|
|
|
2015-08-23 15:23:29 +02:00
|
|
|
demoplugin_la_CFLAGS = -DG_LOG_DOMAIN=\""Demoplugin"\" -DLOCALEDIR=\""$(LOCALEDIR)"\"
|
2015-08-26 23:58:31 +02:00
|
|
|
demoproxy_la_CFLAGS = -DG_LOG_DOMAIN=\""Demoproxy"\"
|
2010-05-25 19:49:49 +00:00
|
|
|
classbuilder_la_CFLAGS = -DG_LOG_DOMAIN=\""Classbuilder"\"
|
|
|
|
htmlchars_la_CFLAGS = -DG_LOG_DOMAIN=\""HTMLChars"\"
|
|
|
|
export_la_CFLAGS = -DG_LOG_DOMAIN=\""Export"\"
|
|
|
|
saveactions_la_CFLAGS = -DG_LOG_DOMAIN=\""SaveActions"\"
|
|
|
|
filebrowser_la_CFLAGS = -DG_LOG_DOMAIN=\""FileBrowser"\"
|
|
|
|
splitwindow_la_CFLAGS = -DG_LOG_DOMAIN=\""SplitWindow"\"
|
|
|
|
|
2014-10-13 19:29:36 -07:00
|
|
|
demoplugin_la_LIBADD = $(top_builddir)/src/libgeany.la $(GTK_LIBS)
|
2015-08-26 23:58:31 +02:00
|
|
|
demoproxy_la_LIBADD = $(top_builddir)/src/libgeany.la $(GTK_LIBS)
|
2014-10-13 19:29:36 -07:00
|
|
|
classbuilder_la_LIBADD = $(top_builddir)/src/libgeany.la $(GTK_LIBS)
|
|
|
|
htmlchars_la_LIBADD = $(top_builddir)/src/libgeany.la $(GTK_LIBS)
|
|
|
|
export_la_LIBADD = $(top_builddir)/src/libgeany.la $(GTK_LIBS) -lm
|
|
|
|
saveactions_la_LIBADD = $(top_builddir)/src/libgeany.la $(GTK_LIBS)
|
|
|
|
filebrowser_la_LIBADD = $(top_builddir)/src/libgeany.la $(GTK_LIBS)
|
|
|
|
splitwindow_la_LIBADD = $(top_builddir)/src/libgeany.la $(GTK_LIBS)
|
2008-05-28 16:09:16 +00:00
|
|
|
|
2007-06-26 16:17:16 +00:00
|
|
|
endif # PLUGINS
|
|
|
|
|
2014-10-29 15:27:51 +01:00
|
|
|
if MINGW
|
|
|
|
# FIXME: why is this define different than the non-MINGW one?
|
|
|
|
AM_CPPFLAGS = -DGEANY_DATADIR=\"data\"
|
|
|
|
else
|
|
|
|
AM_CPPFLAGS = -DDATADIR=\"$(datadir)\"
|
|
|
|
endif
|
|
|
|
|
|
|
|
AM_CPPFLAGS += \
|
2010-05-16 17:44:24 +00:00
|
|
|
-DGTK \
|
2007-07-24 09:24:14 +00:00
|
|
|
-I$(top_srcdir)/src \
|
2016-06-11 12:35:11 +02:00
|
|
|
-I$(top_srcdir)/src/tagmanager \
|
2007-06-26 16:17:16 +00:00
|
|
|
-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.
|
|
|
|
#
|
2014-10-29 15:27:51 +01:00
|
|
|
custom_plugins_cppflags = -DHAVE_CONFIG_H -I$(top_srcdir)
|
|
|
|
custom_plugins_ldflags = -module -avoid-version
|
|
|
|
if MINGW
|
|
|
|
SUFFIXES = .c .dll
|
|
|
|
.c.dll:
|
|
|
|
$(CC) $(AM_CPPFLAGS) $(custom_plugins_cppflags) $(CPPFLAGS) $(CFLAGS) -o $@.o -c $<
|
|
|
|
$(CC) -shared $@.o $(GTK_LIBS) $(custom_plugins_ldflags) $(LIBS) $(PLUGIN_LIBS) $(LDFLAGS) -o $@
|
|
|
|
else
|
2007-06-26 16:17:16 +00:00
|
|
|
SUFFIXES = .c .so
|
|
|
|
.c.so:
|
2014-10-29 15:27:51 +01:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) $(AM_CPPFLAGS) $(custom_plugins_cppflags) $(CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo
|
|
|
|
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) $(custom_plugins_ldflags) $(PLUGIN_LIBS)
|
2007-06-26 16:17:16 +00:00
|
|
|
@rm -f tmp$@.lo tmp$@.o libtmp$@.la
|
|
|
|
@cp .libs/libtmp$@.so* $@
|
|
|
|
@rm -f .libs/libtmp$@.*
|
2014-10-29 15:27:51 +01:00
|
|
|
endif
|