2005-11-22 12:26:26 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
|
2014-05-18 15:49:22 -07:00
|
|
|
EXTRA_DIST = \
|
|
|
|
gb.c \
|
|
|
|
win32.c win32.h \
|
|
|
|
plugindata.h \
|
|
|
|
documentprivate.h \
|
|
|
|
filetypesprivate.h \
|
|
|
|
keybindingsprivate.h \
|
|
|
|
pluginprivate.h \
|
|
|
|
projectprivate.h \
|
2014-10-13 14:00:41 -07:00
|
|
|
makefile.win32 \
|
2014-10-19 13:49:58 -07:00
|
|
|
$(srcdir)/signalconn.c.in
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_srcdir)/scintilla/include \
|
|
|
|
-I$(top_srcdir)/tagmanager/src \
|
|
|
|
-DGTK \
|
|
|
|
-DGEANY_PRIVATE \
|
|
|
|
-DG_LOG_DOMAIN=\""Geany"\" \
|
|
|
|
@GTK_CFLAGS@ @GTHREAD_CFLAGS@ \
|
|
|
|
$(MAC_INTEGRATION_CFLAGS)
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
bin_PROGRAMS = geany
|
2014-10-13 19:29:36 -07:00
|
|
|
lib_LTLIBRARIES = libgeany.la
|
|
|
|
|
|
|
|
geany_SOURCES = main.c
|
|
|
|
geany_LDADD = libgeany.la $(GTK_LIBS) $(GTHREAD_LIBS) $(INTLLIBS)
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
geany_includedir = $(includedir)/geany
|
|
|
|
|
|
|
|
# only install headers that define types or macros, not just functions
|
|
|
|
geany_include_HEADERS = \
|
|
|
|
app.h \
|
|
|
|
build.h \
|
|
|
|
dialogs.h \
|
|
|
|
document.h \
|
|
|
|
editor.h \
|
|
|
|
encodings.h \
|
|
|
|
filetypes.h \
|
|
|
|
geany.h \
|
|
|
|
gtkcompat.h \
|
|
|
|
highlighting.h \
|
|
|
|
keybindings.h \
|
|
|
|
main.h \
|
|
|
|
msgwindow.h \
|
|
|
|
navqueue.h \
|
|
|
|
plugindata.h \
|
|
|
|
pluginutils.h \
|
|
|
|
prefs.h \
|
|
|
|
project.h \
|
|
|
|
sciwrappers.h \
|
|
|
|
search.h \
|
|
|
|
stash.h \
|
|
|
|
support.h \
|
|
|
|
symbols.h \
|
|
|
|
templates.h \
|
|
|
|
toolbar.h \
|
|
|
|
ui_utils.h \
|
|
|
|
utils.h
|
|
|
|
|
|
|
|
libgeany_la_SOURCES = \
|
2005-11-22 12:26:26 +00:00
|
|
|
about.c about.h \
|
2014-05-18 17:31:51 -07:00
|
|
|
app.h \
|
2005-11-22 12:26:26 +00:00
|
|
|
build.c build.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
callbacks.c callbacks.h \
|
|
|
|
dialogs.c dialogs.h \
|
|
|
|
document.c document.h \
|
2007-06-26 16:17:16 +00:00
|
|
|
editor.c editor.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
encodings.c encodings.h \
|
2005-11-22 12:26:26 +00:00
|
|
|
filetypes.c filetypes.h \
|
2008-12-06 11:10:06 +00:00
|
|
|
geanyentryaction.c geanyentryaction.h \
|
|
|
|
geanymenubuttonaction.c geanymenubuttonaction.h \
|
2007-08-10 16:11:17 +00:00
|
|
|
geanyobject.c geanyobject.h \
|
2008-01-09 13:24:36 +00:00
|
|
|
geanywraplabel.c geanywraplabel.h \
|
2012-09-15 13:52:49 +02:00
|
|
|
gtkcompat.h \
|
2005-11-22 12:26:26 +00:00
|
|
|
highlighting.c highlighting.h \
|
2011-11-08 22:50:53 +01:00
|
|
|
highlightingmappings.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
keybindings.c keybindings.h \
|
|
|
|
keyfile.c keyfile.h \
|
2008-08-11 18:16:35 +00:00
|
|
|
log.c log.h \
|
2014-10-13 19:29:36 -07:00
|
|
|
libmain.c main.h geany.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
msgwindow.c msgwindow.h \
|
2007-06-02 16:14:07 +00:00
|
|
|
navqueue.c navqueue.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
notebook.c notebook.h \
|
2015-02-04 01:01:13 +01:00
|
|
|
osx.c osx.h \
|
2007-06-26 16:17:16 +00:00
|
|
|
plugins.c plugins.h \
|
2009-07-28 11:35:33 +00:00
|
|
|
pluginutils.c pluginutils.h \
|
2007-12-12 20:04:45 +00:00
|
|
|
prefix.c prefix.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
prefs.c prefs.h \
|
2007-11-17 14:04:27 +00:00
|
|
|
printing.c printing.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
project.c project.h \
|
2005-11-22 12:26:26 +00:00
|
|
|
sciwrappers.c sciwrappers.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
search.c search.h \
|
2006-09-07 17:40:44 +00:00
|
|
|
socket.c socket.h \
|
2008-11-28 12:52:19 +00:00
|
|
|
stash.c stash.h \
|
2008-12-18 21:21:53 +00:00
|
|
|
support.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
symbols.c symbols.h \
|
|
|
|
templates.c templates.h \
|
2008-12-06 11:10:06 +00:00
|
|
|
toolbar.c toolbar.h \
|
2006-12-13 00:46:14 +00:00
|
|
|
tools.c tools.h \
|
2009-09-28 11:16:59 +00:00
|
|
|
sidebar.c sidebar.h \
|
2006-09-05 14:24:47 +00:00
|
|
|
ui_utils.c ui_utils.h \
|
2007-01-15 18:12:32 +00:00
|
|
|
utils.c utils.h
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2015-03-10 22:41:09 +01:00
|
|
|
libgeany_la_CFLAGS = $(AM_CPPFLAGS) @LIBGEANY_CFLAGS@
|
2015-02-25 17:01:02 +01:00
|
|
|
libgeany_la_LDFLAGS = @LIBGEANY_LDFLAGS@
|
2008-02-22 09:56:31 +00:00
|
|
|
|
2014-10-13 19:29:36 -07:00
|
|
|
libgeany_la_LIBADD = \
|
|
|
|
$(top_builddir)/scintilla/libscintilla.la \
|
|
|
|
$(top_builddir)/tagmanager/ctags/libctags.la \
|
|
|
|
$(top_builddir)/tagmanager/mio/libmio.la \
|
|
|
|
$(top_builddir)/tagmanager/src/libtagmanager.la \
|
2012-05-08 22:14:29 +02:00
|
|
|
@GTK_LIBS@ \
|
|
|
|
@GTHREAD_LIBS@ \
|
2015-02-25 17:01:02 +01:00
|
|
|
$(MAC_INTEGRATION_LIBS) \
|
|
|
|
$(INTLLIBS)
|
2014-10-13 19:29:36 -07:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
# tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
|
|
|
|
nodist_EXTRA_geany_SOURCES = dummy.cxx
|
|
|
|
nodist_EXTRA_libgeany_la_SOURCES = dummy1.cxx
|
|
|
|
|
|
|
|
CLEANFILES =
|
|
|
|
|
|
|
|
if MINGW
|
2008-02-22 09:56:31 +00:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
AM_CPPFLAGS += \
|
|
|
|
-DGEANY_DATADIR=\"data\" \
|
|
|
|
-DGEANY_DOCDIR=\"\" \
|
|
|
|
-DGEANY_LIBDIR=\"\" \
|
|
|
|
-DGEANY_LOCALEDIR=\"\" \
|
|
|
|
-DGEANY_PREFIX=\"\"
|
2008-02-22 09:56:31 +00:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
geany_LDADD += geany_private.res
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2008-02-22 09:56:31 +00:00
|
|
|
WINDRES = $(host_alias)-windres
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2014-10-30 02:33:03 +01:00
|
|
|
geany_private.res: $(top_srcdir)/geany_private.rc
|
|
|
|
$(WINDRES) -i $(top_srcdir)/geany_private.rc --input-format=rc -o $@ -O coff
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
# build Geany for Windows on non-Windows systems (cross-compile)
|
|
|
|
libgeany_la_SOURCES += win32.c win32.h
|
2006-07-26 17:02:16 +00:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
libgeany_la_LIBADD += -lole32 -lwsock32 -lcomdlg32
|
2007-07-11 15:27:57 +00:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
libgeany_la_LDFLAGS += -Wl,-luuid -mwindows -mms-bitfields -no-undefined
|
2007-07-11 15:27:57 +00:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
CLEANFILES += geany_private.res
|
2014-10-13 14:00:41 -07:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
else
|
|
|
|
# build Geany for all other platforms
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
AM_CPPFLAGS += \
|
|
|
|
-DGEANY_DATADIR=\""$(datadir)"\" \
|
|
|
|
-DGEANY_DOCDIR=\""$(docdir)"\" \
|
|
|
|
-DGEANY_LIBDIR=\""$(libdir)"\" \
|
|
|
|
-DGEANY_LOCALEDIR=\""$(localedir)"\" \
|
|
|
|
-DGEANY_PREFIX=\""$(prefix)"\"
|
2014-10-28 15:27:41 +01:00
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
libgeany_la_SOURCES += vte.c vte.h
|
2006-07-26 17:02:16 +00:00
|
|
|
|
2006-07-25 17:45:34 +00:00
|
|
|
endif
|
2014-10-19 13:49:58 -07:00
|
|
|
|
|
|
|
callbacks.c: signalconn.c
|
|
|
|
|
|
|
|
glade_file=$(top_srcdir)/data/geany.glade
|
|
|
|
template_file=$(srcdir)/signalconn.c.in
|
|
|
|
|
|
|
|
signalconn.c: $(glade_file) $(template_file)
|
|
|
|
$(AM_V_GEN)( \
|
|
|
|
echo '/* This file is auto-generated, do not edit. */' && \
|
|
|
|
$(SED) -n '/@callback_map@/q;p' "$(template_file)" && \
|
2014-10-27 00:48:24 +01:00
|
|
|
$(SED) -n 's/^.*handler="\([^"]\+\)".*$$/\tg_hash_table_insert(hash, (gpointer) "\1", G_CALLBACK(\1));/p' "$(glade_file)" \
|
2014-10-19 13:49:58 -07:00
|
|
|
| $(SORT) | $(UNIQ) && \
|
|
|
|
$(SED) -n '/@callback_map@/{:l;n;p;b l}' "$(template_file)" \
|
|
|
|
) > $@ || { $(RM) $@ && exit 1; }
|
|
|
|
|
2015-02-25 17:01:02 +01:00
|
|
|
CLEANFILES += signalconn.c
|