Update of Russian translation
[geany-mirror.git] / src / Makefile.am
blobd83963f4fdf8ce94a4e024d000fbe99f6b9d74ab
1 ## Process this file with automake to produce Makefile.in
4 EXTRA_DIST = gb.c win32.c win32.h plugindata.h \
5         documentprivate.h filetypesprivate.h pluginprivate.h projectprivate.h \
6         makefile.win32
8 bin_PROGRAMS = geany
10 SRCS = \
11         about.c about.h \
12         build.c build.h \
13         callbacks.c callbacks.h \
14         dialogs.c dialogs.h \
15         document.c document.h \
16         editor.c editor.h \
17         encodings.c encodings.h \
18         filetypes.c filetypes.h \
19         geanyentryaction.c geanyentryaction.h \
20         geanymenubuttonaction.c geanymenubuttonaction.h \
21         geanyobject.c geanyobject.h \
22         geanywraplabel.c geanywraplabel.h \
23         gtkcompat.h \
24         highlighting.c highlighting.h \
25         highlightingmappings.h \
26         keybindings.c keybindings.h \
27         keyfile.c keyfile.h \
28         log.c log.h \
29         main.c main.h geany.h \
30         msgwindow.c msgwindow.h \
31         navqueue.c navqueue.h \
32         notebook.c notebook.h \
33         plugins.c plugins.h \
34         pluginutils.c pluginutils.h \
35         prefix.c prefix.h \
36         prefs.c prefs.h \
37         printing.c printing.h \
38         project.c project.h \
39         sciwrappers.c sciwrappers.h \
40         search.c search.h \
41         socket.c socket.h \
42         stash.c stash.h \
43         support.h \
44         symbols.c symbols.h \
45         templates.c templates.h \
46         toolbar.c toolbar.h \
47         tools.c tools.h \
48         sidebar.c sidebar.h \
49         ui_utils.c ui_utils.h \
50         utils.c utils.h
53 geany_includedir = $(includedir)/geany
55 # only install headers that define types or macros, not just functions
56 geany_include_HEADERS = \
57         build.h \
58         document.h \
59         editor.h \
60         encodings.h \
61         filetypes.h \
62         geany.h \
63         gtkcompat.h \
64         highlighting.h \
65         keybindings.h \
66         msgwindow.h \
67         plugindata.h \
68         prefs.h \
69         project.h \
70         search.h \
71         stash.h \
72         support.h \
73         templates.h \
74         toolbar.h \
75         ui_utils.h \
76         utils.h
79 AM_CPPFLAGS = \
80         -I$(top_srcdir) \
81         -I$(top_srcdir)/scintilla/include \
82         -I$(top_srcdir)/tagmanager/src \
83         @GTK_CFLAGS@ @GTHREAD_CFLAGS@
85 # tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
86 nodist_EXTRA_geany_SOURCES = dummy.cxx
89 if MINGW
90 # build Geany for Windows on non-Windows systems (cross-compile)
92 geany_SOURCES = $(SRCS) win32.c win32.h
94 geany_LDADD = \
95         $(top_builddir)/scintilla/libscintilla.a \
96         $(top_builddir)/tagmanager/ctags/libctags.a \
97         $(top_builddir)/tagmanager/mio/libmio.a \
98         $(top_builddir)/tagmanager/src/libtagmanager.a \
99         @GTK_LIBS@ \
100         @GTHREAD_LIBS@ \
101         $(INTLLIBS) \
102         -lole32 -luuid -liberty -lwsock32 \
103         geany_private.res
105 AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
106                         -DGEANY_DOCDIR=\"\" \
107                         -DGEANY_LIBDIR=\"\" \
108                         -DGEANY_LOCALEDIR=\"\" \
109                         -DGEANY_PREFIX=\"\" \
110                         -DGEANY_PRIVATE \
111                         -DGTK \
112                         -DG_LOG_DOMAIN=\""Geany"\"
114 geany_LDFLAGS = -mwindows -mms-bitfields
116 WINDRES = $(host_alias)-windres
118 geany_private.res:
119         $(WINDRES) -i ../geany_private.rc --input-format=rc -o geany_private.res -O coff;
121 clean-local:
122         rm -f geany_private.res
124 else
125 # build Geany for all other platforms
127 geany_SOURCES = $(SRCS) vte.c vte.h
129 geany_LDADD = \
130         $(top_builddir)/scintilla/libscintilla.a \
131         $(top_builddir)/tagmanager/ctags/libctags.a \
132         $(top_builddir)/tagmanager/mio/libmio.a \
133         $(top_builddir)/tagmanager/src/libtagmanager.a \
134         @GTK_LIBS@ \
135         @GTHREAD_LIBS@ \
136         $(INTLLIBS)
138 AM_CFLAGS = -DGEANY_DATADIR=\""$(datadir)"\" \
139                         -DGEANY_DOCDIR=\""$(docdir)"\" \
140                         -DGEANY_LIBDIR=\""$(libdir)"\" \
141                         -DGEANY_LOCALEDIR=\""$(localedir)"\" \
142                         -DGEANY_PREFIX=\""$(prefix)"\" \
143                         -DGEANY_PRIVATE \
144                         -DGTK \
145                         -DG_LOG_DOMAIN=\""Geany"\"
147 clean-local:
149 endif