Disable "maintain history on reload" by default
[geany-mirror.git] / src / Makefile.am
blob7f600461b8bde4254ba44d206ef41cd8b58420dd
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)
29 geany_LDFLAGS =
31 if ENABLE_BINRELOC
32 geany_LDFLAGS += -Wl,-rpath='$$ORIGIN/../lib'
33 endif
35 geany_includedir = $(includedir)/geany
36 geany_include_HEADERS = \
37         app.h \
38         build.h \
39         dialogs.h \
40         document.h \
41         editor.h \
42         encodings.h \
43         filetypes.h \
44         geany.h \
45         gtkcompat.h \
46         highlighting.h \
47         keybindings.h \
48         main.h \
49         msgwindow.h \
50         navqueue.h \
51         plugindata.h \
52         pluginutils.h \
53         prefs.h \
54         project.h \
55         sciwrappers.h \
56         search.h \
57         stash.h \
58         support.h \
59         symbols.h \
60         templates.h \
61         toolbar.h \
62         ui_utils.h \
63         utils.h
65 libgeany_la_SOURCES = \
66         about.c about.h \
67         app.h \
68         build.c build.h \
69         callbacks.c callbacks.h \
70         dialogs.c dialogs.h \
71         document.c document.h \
72         editor.c editor.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 \
79         gtkcompat.h \
80         highlighting.c highlighting.h \
81         highlightingmappings.h \
82         keybindings.c keybindings.h \
83         keyfile.c keyfile.h \
84         log.c log.h \
85         libmain.c main.h geany.h \
86         msgwindow.c msgwindow.h \
87         navqueue.c navqueue.h \
88         notebook.c notebook.h \
89         plugins.c plugins.h \
90         pluginutils.c pluginutils.h \
91         prefs.c prefs.h \
92         printing.c printing.h \
93         project.c project.h \
94         sciwrappers.c sciwrappers.h \
95         search.c search.h \
96         socket.c socket.h \
97         spawn.c spawn.h \
98         stash.c stash.h \
99         support.h \
100         symbols.c symbols.h \
101         templates.c templates.h \
102         toolbar.c toolbar.h \
103         tools.c tools.h \
104         sidebar.c sidebar.h \
105         ui_utils.c ui_utils.h \
106         utils.c utils.h
108 if ENABLE_BINRELOC
109 libgeany_la_SOURCES += prefix.c prefix.h
110 endif
112 if ENABLE_MAC_INTEGRATION
113 libgeany_la_SOURCES += osx.c osx.h
114 endif
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 \
124         @GTK_LIBS@ \
125         @GTHREAD_LIBS@ \
126         $(MAC_INTEGRATION_LIBS) \
127         $(INTLLIBS)
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
132 CLEANFILES =
134 if MINGW
135 # build Geany for Windows (possibly on non-Windows systems -- cross-compile)
137 AM_CPPFLAGS += \
138         -DGEANY_DATADIR=\"data\" \
139         -DGEANY_DOCDIR=\"\" \
140         -DGEANY_LIBDIR=\"\" \
141         -DGEANY_LOCALEDIR=\"\" \
142         -DGEANY_PREFIX=\"\"
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
158 else
159 # build Geany for all other platforms
161 AM_CPPFLAGS += \
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
170 endif
172 callbacks.c: signallist.i
174 glade_file=$(top_srcdir)/data/geany.glade
176 signallist.i: $(glade_file) Makefile
177         $(AM_V_GEN)( \
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