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