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
|
|
|
|
|
|
|
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
|
|
|
|
2006-07-25 17:45:34 +00:00
|
|
|
SRCS = \
|
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
|
|
|
|
2008-03-13 12:15:26 +00:00
|
|
|
|
2009-01-12 00:33:29 +00:00
|
|
|
geany_includedir = $(includedir)/geany
|
2009-10-26 13:06:51 +00:00
|
|
|
|
|
|
|
# only install headers that define types or macros, not just functions
|
2008-03-13 12:15:26 +00:00
|
|
|
geany_include_HEADERS = \
|
2014-05-18 17:31:51 -07:00
|
|
|
app.h \
|
2012-02-17 09:26:03 +11:00
|
|
|
build.h \
|
2014-10-13 19:08:57 -07:00
|
|
|
dialogs.h \
|
2008-03-13 12:15:26 +00:00
|
|
|
document.h \
|
|
|
|
editor.h \
|
|
|
|
encodings.h \
|
|
|
|
filetypes.h \
|
2009-10-26 13:06:51 +00:00
|
|
|
geany.h \
|
2012-09-15 23:40:13 +02:00
|
|
|
gtkcompat.h \
|
2008-03-13 12:15:26 +00:00
|
|
|
highlighting.h \
|
|
|
|
keybindings.h \
|
2014-10-13 19:08:57 -07:00
|
|
|
main.h \
|
2008-03-13 12:15:26 +00:00
|
|
|
msgwindow.h \
|
2014-10-13 19:08:57 -07:00
|
|
|
navqueue.h \
|
2008-03-13 12:15:26 +00:00
|
|
|
plugindata.h \
|
2014-10-13 19:08:57 -07:00
|
|
|
pluginutils.h \
|
2008-03-14 07:30:08 +00:00
|
|
|
prefs.h \
|
2008-03-13 12:15:26 +00:00
|
|
|
project.h \
|
2014-10-13 19:08:57 -07:00
|
|
|
sciwrappers.h \
|
2008-03-13 12:15:26 +00:00
|
|
|
search.h \
|
2010-03-30 16:29:38 +00:00
|
|
|
stash.h \
|
2007-07-24 09:24:14 +00:00
|
|
|
support.h \
|
2014-10-13 19:08:57 -07:00
|
|
|
symbols.h \
|
2008-03-13 12:15:26 +00:00
|
|
|
templates.h \
|
2008-12-06 15:26:59 +00:00
|
|
|
toolbar.h \
|
2008-03-13 12:15:26 +00:00
|
|
|
ui_utils.h \
|
2009-10-26 13:06:51 +00:00
|
|
|
utils.h
|
2008-03-13 12:15:26 +00:00
|
|
|
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2013-03-15 02:49:17 +01:00
|
|
|
AM_CPPFLAGS = \
|
2012-05-08 22:14:29 +02:00
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_srcdir)/scintilla/include \
|
|
|
|
-I$(top_srcdir)/tagmanager/src \
|
2014-10-13 23:07:11 -07:00
|
|
|
@GTK_CFLAGS@ @GTHREAD_CFLAGS@ $(MAC_INTEGRATION_CFLAGS) @LIBGEANY_CFLAGS@
|
2008-02-22 09:56:31 +00:00
|
|
|
|
|
|
|
# tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
|
|
|
|
nodist_EXTRA_geany_SOURCES = dummy.cxx
|
2014-10-13 23:07:11 -07:00
|
|
|
nodist_EXTRA_libgeany_la_SOURCES = dummy1.cxx
|
2008-12-02 16:34:32 +00:00
|
|
|
|
2006-07-25 17:45:34 +00:00
|
|
|
if MINGW
|
2007-10-19 16:55:04 +00:00
|
|
|
# build Geany for Windows on non-Windows systems (cross-compile)
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2014-10-13 19:29:36 -07:00
|
|
|
libgeany_la_SOURCES = $(SRCS) win32.c win32.h
|
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@ \
|
|
|
|
$(INTLLIBS) \
|
2014-10-13 23:07:11 -07:00
|
|
|
-lole32 -lwsock32 -lcomdlg32
|
2014-10-13 19:29:36 -07:00
|
|
|
|
2014-10-13 23:07:11 -07:00
|
|
|
libgeany_la_LDFLAGS = -Wl,-luuid $(AM_LDFLAGS)
|
2014-10-13 19:29:36 -07:00
|
|
|
geany_LDADD += geany_private.res -lcomdlg32
|
2008-02-22 09:56:31 +00:00
|
|
|
|
2008-02-20 12:36:59 +00:00
|
|
|
AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
|
2008-03-21 14:28:26 +00:00
|
|
|
-DGEANY_DOCDIR=\"\" \
|
2008-02-20 12:36:59 +00:00
|
|
|
-DGEANY_LIBDIR=\"\" \
|
2009-06-08 18:05:34 +00:00
|
|
|
-DGEANY_LOCALEDIR=\"\" \
|
2009-08-26 14:56:05 +00:00
|
|
|
-DGEANY_PREFIX=\"\" \
|
2010-05-16 17:44:40 +00:00
|
|
|
-DGEANY_PRIVATE \
|
2010-05-25 19:49:49 +00:00
|
|
|
-DGTK \
|
2014-10-13 23:07:11 -07:00
|
|
|
-DG_LOG_DOMAIN=\""Geany"\"
|
2008-02-22 09:56:31 +00:00
|
|
|
|
2014-10-28 15:27:41 +01:00
|
|
|
libgeany_la_LDFLAGS += @LIBGEANY_LDFLAGS@ -mwindows -mms-bitfields -no-undefined
|
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
|
|
|
|
2006-07-26 17:02:16 +00:00
|
|
|
clean-local:
|
2006-07-29 08:45:37 +00:00
|
|
|
rm -f geany_private.res
|
2006-07-26 17:02:16 +00:00
|
|
|
|
2006-07-25 17:45:34 +00:00
|
|
|
else
|
|
|
|
# build Geany for all other platforms
|
2007-07-11 15:27:57 +00:00
|
|
|
|
2014-10-13 19:29:36 -07:00
|
|
|
libgeany_la_SOURCES = $(SRCS) vte.c vte.h
|
2007-07-11 15:27:57 +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-04 00:27:34 +01:00
|
|
|
$(MAC_INTEGRATION_LIBS) \
|
2014-10-28 15:27:41 +01:00
|
|
|
$(INTLLIBS)
|
2014-10-13 14:00:41 -07:00
|
|
|
|
2008-02-22 09:56:31 +00:00
|
|
|
AM_CFLAGS = -DGEANY_DATADIR=\""$(datadir)"\" \
|
2008-03-21 14:28:26 +00:00
|
|
|
-DGEANY_DOCDIR=\""$(docdir)"\" \
|
2008-02-22 09:56:31 +00:00
|
|
|
-DGEANY_LIBDIR=\""$(libdir)"\" \
|
|
|
|
-DGEANY_LOCALEDIR=\""$(localedir)"\" \
|
2009-08-26 14:56:05 +00:00
|
|
|
-DGEANY_PREFIX=\""$(prefix)"\" \
|
2010-05-16 17:44:24 +00:00
|
|
|
-DGEANY_PRIVATE \
|
2010-05-25 19:49:49 +00:00
|
|
|
-DGTK \
|
2014-10-13 23:07:11 -07:00
|
|
|
-DG_LOG_DOMAIN=\""Geany"\"
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2014-10-28 15:27:41 +01:00
|
|
|
libgeany_la_LDFLAGS = @LIBGEANY_LDFLAGS@
|
|
|
|
|
2006-07-26 17:02:16 +00:00
|
|
|
clean-local:
|
|
|
|
|
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; }
|
|
|
|
|
|
|
|
CLEANFILES = signalconn.c
|