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 = \
68 libgeany_la_SOURCES = \
72 callbacks.c callbacks.h \
74 document.c document.h \
76 encodings.c encodings.h \
77 filetypes.c filetypes.h \
78 geanyentryaction.c geanyentryaction.h \
79 geanymenubuttonaction.c geanymenubuttonaction.h \
80 geanyobject.c geanyobject.h \
81 geanywraplabel.c geanywraplabel.h \
83 highlighting.c highlighting.h \
84 highlightingmappings.h \
85 keybindings.c keybindings.h \
88 libmain.c main.h geany.h \
89 msgwindow.c msgwindow.h \
90 navqueue.c navqueue.h \
91 notebook.c notebook.h \
93 pluginutils.c pluginutils.h \
95 printing.c printing.h \
97 sciwrappers.c sciwrappers.h \
103 symbols.c symbols.h \
104 templates.c templates.h \
105 toolbar.c toolbar.h \
107 sidebar.c sidebar.h \
108 ui_utils.c ui_utils.h \
112 libgeany_la_SOURCES += prefix.c prefix.h
115 if ENABLE_MAC_INTEGRATION
116 libgeany_la_SOURCES += osx.c osx.h
119 libgeany_la_CFLAGS = $(AM_CPPFLAGS) @LIBGEANY_CFLAGS@
120 libgeany_la_LDFLAGS = @LIBGEANY_LDFLAGS@
122 libgeany_la_LIBADD = \
123 $(top_builddir)/scintilla/liblexilla.la \
124 $(top_builddir)/scintilla/libscintilla.la \
125 $(builddir)/tagmanager/libtagmanager.la \
127 $(MAC_INTEGRATION_LIBS) \
130 # tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
131 nodist_EXTRA_libgeany_la_SOURCES = dummy1.cxx
132 nodist_EXTRA_geany_SOURCES = dummy2.cxx
137 # build Geany for Windows (possibly on non-Windows systems -- cross-compile)
140 -DGEANY_DATADIR=\"data\" \
141 -DGEANY_DOCDIR=\"\" \
142 -DGEANY_LIBDIR=\"\" \
143 -DGEANY_LIBEXECDIR=\"\" \
144 -DGEANY_LOCALEDIR=\"\" \
147 geany_LDADD += geany_private.res
149 WINDRES = $(host_alias)-windres
151 geany_private.res: $(top_srcdir)/geany_private.rc
152 $(WINDRES) -i $(top_srcdir)/geany_private.rc --input-format=rc -o $@ -O coff
154 libgeany_la_SOURCES += win32.c win32.h
155 libgeany_la_LIBADD += -lole32 -lwsock32 -lcomdlg32
156 libgeany_la_LDFLAGS += -mwindows -mms-bitfields -no-undefined
157 geany_LDFLAGS += -mwindows -mms-bitfields
159 CLEANFILES += geany_private.res
162 # build Geany for all other platforms
165 -DGEANY_DATADIR=\""$(datadir)"\" \
166 -DGEANY_DOCDIR=\""$(docdir)"\" \
167 -DGEANY_LIBDIR=\""$(libdir)"\" \
168 -DGEANY_LIBEXECDIR=\""$(libexecdir)"\" \
169 -DGEANY_LOCALEDIR=\""$(localedir)"\" \
170 -DGEANY_PREFIX=\""$(prefix)"\"
172 libgeany_la_SOURCES += vte.c vte.h
176 callbacks.c: signallist.i
178 glade_file=$(top_srcdir)/data/geany.glade
180 signallist.i: $(glade_file) Makefile
181 $(AM_V_GEN)$(top_srcdir)/scripts/gen-signallist.sh $(glade_file) $@
183 CLEANFILES += signallist.i
185 # install the run script
187 dist_pkglibexec_SCRIPTS = geany-run-helper.bat
190 # Ubuntu ld has a bug so that libtool sees /usr/local/lib as a system path so
191 # doesn't add RPATH, but ld requires explicit ldconfig there, unlike when
192 # installing in /usr/lib. So, workaround this by calling it explicitly when
193 # installing in /usr/local/lib and libgeany is not found by the linker.
195 if test "$(DESTDIR)$(libdir)" = /usr/local/lib && \
196 LANG=C ldd "$(DESTDIR)$(bindir)/geany" | grep -q 'libgeany.*not found' \
198 ldconfig "$(DESTDIR)$(libdir)"; \
201 install-exec-hook: fix-ubuntu-libdir