c++: Fix handling of the `final` contextual keyword
[geany-mirror.git] / src / Makefile.am
blob8cefea6de0b2e11eb0b1e9a712605985c9643c54
1 ## Process this file with automake to produce Makefile.in
4 EXTRA_DIST = \
5         gb.c \
6         plugindata.h \
7         documentprivate.h \
8         filetypesprivate.h \
9         keybindingsprivate.h \
10         pluginprivate.h \
11         projectprivate.h \
12         makefile.win32
14 AM_CPPFLAGS = \
15         -I$(top_srcdir) \
16         -I$(top_srcdir)/scintilla/include \
17         -I$(top_srcdir)/tagmanager/src \
18         -DGTK \
19         -DGEANY_PRIVATE \
20         -DG_LOG_DOMAIN=\""Geany"\" \
21         @GTK_CFLAGS@ @GTHREAD_CFLAGS@ \
22         $(MAC_INTEGRATION_CFLAGS)
24 bin_PROGRAMS = geany
25 lib_LTLIBRARIES = libgeany.la
27 geany_SOURCES = main.c
28 geany_LDADD = libgeany.la $(GTK_LIBS) $(GTHREAD_LIBS) $(INTLLIBS)
30 if ENABLE_BINRELOC
31 geany_LDFLAGS = -Wl,-rpath='$$ORIGIN/../lib'
32 endif
34 geany_includedir = $(includedir)/geany
35 geany_include_HEADERS = \
36         app.h \
37         build.h \
38         dialogs.h \
39         document.h \
40         editor.h \
41         encodings.h \
42         filetypes.h \
43         geany.h \
44         gtkcompat.h \
45         highlighting.h \
46         keybindings.h \
47         main.h \
48         msgwindow.h \
49         navqueue.h \
50         plugindata.h \
51         pluginutils.h \
52         prefs.h \
53         project.h \
54         sciwrappers.h \
55         search.h \
56         stash.h \
57         support.h \
58         symbols.h \
59         templates.h \
60         toolbar.h \
61         ui_utils.h \
62         utils.h
64 libgeany_la_SOURCES = \
65         about.c about.h \
66         app.h \
67         build.c build.h \
68         callbacks.c callbacks.h \
69         dialogs.c dialogs.h \
70         document.c document.h \
71         editor.c editor.h \
72         encodings.c encodings.h \
73         filetypes.c filetypes.h \
74         geanyentryaction.c geanyentryaction.h \
75         geanymenubuttonaction.c geanymenubuttonaction.h \
76         geanyobject.c geanyobject.h \
77         geanywraplabel.c geanywraplabel.h \
78         gtkcompat.h \
79         highlighting.c highlighting.h \
80         highlightingmappings.h \
81         keybindings.c keybindings.h \
82         keyfile.c keyfile.h \
83         log.c log.h \
84         libmain.c main.h geany.h \
85         msgwindow.c msgwindow.h \
86         navqueue.c navqueue.h \
87         notebook.c notebook.h \
88         plugins.c plugins.h \
89         pluginutils.c pluginutils.h \
90         prefs.c prefs.h \
91         printing.c printing.h \
92         project.c project.h \
93         sciwrappers.c sciwrappers.h \
94         search.c search.h \
95         socket.c socket.h \
96         spawn.c spawn.h \
97         stash.c stash.h \
98         support.h \
99         symbols.c symbols.h \
100         templates.c templates.h \
101         toolbar.c toolbar.h \
102         tools.c tools.h \
103         sidebar.c sidebar.h \
104         ui_utils.c ui_utils.h \
105         utils.c utils.h
107 if ENABLE_BINRELOC
108 libgeany_la_SOURCES += prefix.c prefix.h
109 endif
111 if ENABLE_MAC_INTEGRATION
112 libgeany_la_SOURCES += osx.c osx.h
113 endif
115 libgeany_la_CFLAGS  = $(AM_CPPFLAGS) @LIBGEANY_CFLAGS@
116 libgeany_la_LDFLAGS = @LIBGEANY_LDFLAGS@
118 libgeany_la_LIBADD = \
119         $(top_builddir)/scintilla/libscintilla.la \
120         $(top_builddir)/tagmanager/ctags/libctags.la \
121         $(top_builddir)/tagmanager/mio/libmio.la \
122         $(top_builddir)/tagmanager/src/libtagmanager.la \
123         @GTK_LIBS@ \
124         @GTHREAD_LIBS@ \
125         $(MAC_INTEGRATION_LIBS) \
126         $(INTLLIBS)
128 # tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
129 nodist_EXTRA_libgeany_la_SOURCES = dummy1.cxx
131 CLEANFILES =
133 if MINGW
134 # build Geany for Windows (possibly on non-Windows systems -- cross-compile)
136 AM_CPPFLAGS += \
137         -DGEANY_DATADIR=\"data\" \
138         -DGEANY_DOCDIR=\"\" \
139         -DGEANY_LIBDIR=\"\" \
140         -DGEANY_LOCALEDIR=\"\" \
141         -DGEANY_PREFIX=\"\"
143 geany_LDADD += geany_private.res
145 WINDRES = $(host_alias)-windres
147 geany_private.res: $(top_srcdir)/geany_private.rc
148         $(WINDRES) -i $(top_srcdir)/geany_private.rc --input-format=rc -o $@ -O coff
150 libgeany_la_SOURCES += win32.c win32.h
151 libgeany_la_LIBADD  += -lole32 -lwsock32 -lcomdlg32
152 libgeany_la_LDFLAGS += -Wl,-luuid -mwindows -mms-bitfields -no-undefined
154 CLEANFILES += geany_private.res
156 else
157 # build Geany for all other platforms
159 AM_CPPFLAGS += \
160         -DGEANY_DATADIR=\""$(datadir)"\" \
161         -DGEANY_DOCDIR=\""$(docdir)"\" \
162         -DGEANY_LIBDIR=\""$(libdir)"\" \
163         -DGEANY_LOCALEDIR=\""$(localedir)"\" \
164         -DGEANY_PREFIX=\""$(prefix)"\"
166 libgeany_la_SOURCES += vte.c vte.h
168 endif
170 callbacks.c: signallist.i
172 glade_file=$(top_srcdir)/data/geany.glade
174 signallist.i: $(glade_file) Makefile
175         $(AM_V_GEN)( \
176                 echo '/* This file is auto-generated, do not edit. */' && \
177                 $(SED) -n 's/^.*handler="\([^"]\{1,\}\)".*$$/ITEM(\1)/p' "$(glade_file)" \
178                         | $(SORT) | $(UNIQ) \
179         ) > $@ || { $(RM) $@ && exit 1; }
181 CLEANFILES += signallist.i