1 ## Process this file with automake to produce Makefile.in
11 keybindingsprivate.h \
17 -I$(top_srcdir)/scintilla/include \
18 -I$(top_srcdir)/scintilla/lexilla/include \
19 -I$(srcdir)/tagmanager \
22 -DG_LOG_DOMAIN=\""Geany"\" \
24 $(MAC_INTEGRATION_CFLAGS)
27 lib_LTLIBRARIES = libgeany.la
29 geany_SOURCES = main.c
30 geany_LDADD = libgeany.la $(GTK_LIBS) $(INTLLIBS)
34 geany_LDFLAGS += -Wl,-rpath='$$ORIGIN/../lib'
37 geany_includedir = $(includedir)/geany
38 geany_include_HEADERS = \
69 libgeany_la_SOURCES = \
73 callbacks.c callbacks.h \
75 document.c document.h \
77 encodings.c encodings.h \
78 filetypes.c filetypes.h \
79 geanyentryaction.c geanyentryaction.h \
80 geanymenubuttonaction.c geanymenubuttonaction.h \
81 geanyobject.c geanyobject.h \
82 geanywraplabel.c geanywraplabel.h \
84 highlighting.c highlighting.h \
85 highlightingmappings.h \
86 keybindings.c keybindings.h \
89 libmain.c main.h geany.h \
90 msgwindow.c msgwindow.h \
91 navqueue.c navqueue.h \
92 notebook.c notebook.h \
93 pluginextension.c pluginextension.h \
95 pluginutils.c pluginutils.h \
97 printing.c printing.h \
99 sciwrappers.c sciwrappers.h \
105 symbols.c symbols.h \
106 templates.c templates.h \
107 toolbar.c toolbar.h \
109 sidebar.c sidebar.h \
110 ui_utils.c ui_utils.h \
114 libgeany_la_SOURCES += prefix.c prefix.h
117 if ENABLE_MAC_INTEGRATION
118 libgeany_la_SOURCES += osx.c osx.h
121 libgeany_la_CFLAGS = $(AM_CPPFLAGS) @LIBGEANY_CFLAGS@
122 libgeany_la_LDFLAGS = @LIBGEANY_LDFLAGS@
124 libgeany_la_LIBADD = \
125 $(top_builddir)/scintilla/liblexilla.la \
126 $(top_builddir)/scintilla/libscintilla.la \
127 $(builddir)/tagmanager/libtagmanager.la \
129 $(MAC_INTEGRATION_LIBS) \
132 # tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
133 nodist_EXTRA_libgeany_la_SOURCES = dummy1.cxx
134 nodist_EXTRA_geany_SOURCES = dummy2.cxx
139 # build Geany for Windows (possibly on non-Windows systems -- cross-compile)
142 -DGEANY_DATADIR=\"data\" \
143 -DGEANY_DOCDIR=\"\" \
144 -DGEANY_LIBDIR=\"\" \
145 -DGEANY_LIBEXECDIR=\"\" \
146 -DGEANY_LOCALEDIR=\"\" \
149 geany_LDADD += geany_private.res
151 WINDRES = $(host_alias)-windres
153 geany_private.res: $(top_srcdir)/geany_private.rc
154 $(WINDRES) -i $(top_srcdir)/geany_private.rc --input-format=rc -o $@ -O coff
156 libgeany_la_SOURCES += win32.c win32.h
157 libgeany_la_LIBADD += -lole32 -lwsock32 -lcomdlg32
158 libgeany_la_LDFLAGS += -mwindows -mms-bitfields -no-undefined
159 geany_LDFLAGS += -mwindows -mms-bitfields
161 CLEANFILES += geany_private.res
164 # build Geany for all other platforms
167 -DGEANY_DATADIR=\""$(datadir)"\" \
168 -DGEANY_DOCDIR=\""$(docdir)"\" \
169 -DGEANY_LIBDIR=\""$(libdir)"\" \
170 -DGEANY_LIBEXECDIR=\""$(libexecdir)"\" \
171 -DGEANY_LOCALEDIR=\""$(localedir)"\" \
172 -DGEANY_PREFIX=\""$(prefix)"\"
174 libgeany_la_SOURCES += vte.c vte.h
178 callbacks.c: signallist.i
180 glade_file=$(top_srcdir)/data/geany.glade
182 signallist.i: $(glade_file) Makefile
183 $(AM_V_GEN)$(top_srcdir)/scripts/gen-signallist.sh $(glade_file) $@
185 CLEANFILES += signallist.i
187 # install the run script
189 dist_pkglibexec_SCRIPTS = geany-run-helper.bat
192 # Ubuntu ld has a bug so that libtool sees /usr/local/lib as a system path so
193 # doesn't add RPATH, but ld requires explicit ldconfig there, unlike when
194 # installing in /usr/lib. So, workaround this by calling it explicitly when
195 # installing in /usr/local/lib and libgeany is not found by the linker.
197 if test "$(DESTDIR)$(libdir)" = /usr/local/lib && \
198 LANG=C ldd "$(DESTDIR)$(bindir)/geany" | grep -q 'libgeany.*not found' \
200 ldconfig "$(DESTDIR)$(libdir)"; \
203 install-exec-hook: fix-ubuntu-libdir