1 ## Process this file with automake to produce Makefile.in
16 -I$(top_srcdir)/scintilla/include \
17 -I$(top_srcdir)/tagmanager/src \
20 -DG_LOG_DOMAIN=\""Geany"\" \
21 @GTK_CFLAGS@ @GTHREAD_CFLAGS@ \
22 $(MAC_INTEGRATION_CFLAGS)
25 lib_LTLIBRARIES = libgeany.la
27 geany_SOURCES = main.c
28 geany_LDADD = libgeany.la $(GTK_LIBS) $(GTHREAD_LIBS) $(INTLLIBS)
32 geany_LDFLAGS += -Wl,-rpath='$$ORIGIN/../lib'
35 geany_includedir = $(includedir)/geany
36 geany_include_HEADERS = \
65 libgeany_la_SOURCES = \
69 callbacks.c callbacks.h \
71 document.c document.h \
73 encodings.c encodings.h \
74 filetypes.c filetypes.h \
75 geanyentryaction.c geanyentryaction.h \
76 geanymenubuttonaction.c geanymenubuttonaction.h \
77 geanyobject.c geanyobject.h \
78 geanywraplabel.c geanywraplabel.h \
80 highlighting.c highlighting.h \
81 highlightingmappings.h \
82 keybindings.c keybindings.h \
85 libmain.c main.h geany.h \
86 msgwindow.c msgwindow.h \
87 navqueue.c navqueue.h \
88 notebook.c notebook.h \
90 pluginutils.c pluginutils.h \
92 printing.c printing.h \
94 sciwrappers.c sciwrappers.h \
100 symbols.c symbols.h \
101 templates.c templates.h \
102 toolbar.c toolbar.h \
104 sidebar.c sidebar.h \
105 ui_utils.c ui_utils.h \
109 libgeany_la_SOURCES += prefix.c prefix.h
112 if ENABLE_MAC_INTEGRATION
113 libgeany_la_SOURCES += osx.c osx.h
116 libgeany_la_CFLAGS = $(AM_CPPFLAGS) @LIBGEANY_CFLAGS@
117 libgeany_la_LDFLAGS = @LIBGEANY_LDFLAGS@
119 libgeany_la_LIBADD = \
120 $(top_builddir)/scintilla/libscintilla.la \
121 $(top_builddir)/tagmanager/ctags/libctags.la \
122 $(top_builddir)/tagmanager/mio/libmio.la \
123 $(top_builddir)/tagmanager/src/libtagmanager.la \
126 $(MAC_INTEGRATION_LIBS) \
129 # tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
130 nodist_EXTRA_libgeany_la_SOURCES = dummy1.cxx
135 # build Geany for Windows (possibly on non-Windows systems -- cross-compile)
138 -DGEANY_DATADIR=\"data\" \
139 -DGEANY_DOCDIR=\"\" \
140 -DGEANY_LIBDIR=\"\" \
141 -DGEANY_LOCALEDIR=\"\" \
144 geany_LDADD += geany_private.res
146 WINDRES = $(host_alias)-windres
148 geany_private.res: $(top_srcdir)/geany_private.rc
149 $(WINDRES) -i $(top_srcdir)/geany_private.rc --input-format=rc -o $@ -O coff
151 libgeany_la_SOURCES += win32.c win32.h win32defines.h
152 libgeany_la_LIBADD += -lole32 -lwsock32 -lcomdlg32
153 libgeany_la_LDFLAGS += -Wl,-luuid -mwindows -mms-bitfields -no-undefined
154 geany_LDFLAGS += -mwindows -mms-bitfields
156 CLEANFILES += geany_private.res
159 # build Geany for all other platforms
162 -DGEANY_DATADIR=\""$(datadir)"\" \
163 -DGEANY_DOCDIR=\""$(docdir)"\" \
164 -DGEANY_LIBDIR=\""$(libdir)"\" \
165 -DGEANY_LOCALEDIR=\""$(localedir)"\" \
166 -DGEANY_PREFIX=\""$(prefix)"\"
168 libgeany_la_SOURCES += vte.c vte.h
172 callbacks.c: signallist.i
174 glade_file=$(top_srcdir)/data/geany.glade
176 signallist.i: $(glade_file) Makefile
178 echo '/* This file is auto-generated, do not edit. */' && \
179 $(SED) -n 's/^.*handler="\([^"]\{1,\}\)".*$$/ITEM(\1)/p' "$(glade_file)" \
180 | $(SORT) | $(UNIQ) \
181 ) > $@ || { $(RM) $@ && exit 1; }
183 CLEANFILES += signallist.i