Adding first version of Hindi translation
[geany-mirror.git] / src / Makefile.am
bloba951e225cd4661273bb163802e0b55d51c8298f9
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         highlighting.c highlighting.h \
24         highlightingmappings.h \
25         keybindings.c keybindings.h \
26         keyfile.c keyfile.h \
27         log.c log.h \
28         main.c main.h geany.h \
29         msgwindow.c msgwindow.h \
30         navqueue.c navqueue.h \
31         notebook.c notebook.h \
32         plugins.c plugins.h \
33         pluginutils.c pluginutils.h \
34         prefix.c prefix.h \
35         prefs.c prefs.h \
36         printing.c printing.h \
37         project.c project.h \
38         sciwrappers.c sciwrappers.h \
39         search.c search.h \
40         socket.c socket.h \
41         stash.c stash.h \
42         support.h \
43         symbols.c symbols.h \
44         templates.c templates.h \
45         toolbar.c toolbar.h \
46         tools.c tools.h \
47         sidebar.c sidebar.h \
48         ui_utils.c ui_utils.h \
49         utils.c utils.h
52 geany_includedir = $(includedir)/geany
54 # only install headers that define types or macros, not just functions
55 geany_include_HEADERS = \
56         build.h \
57         document.h \
58         editor.h \
59         encodings.h \
60         filetypes.h \
61         geany.h \
62         highlighting.h \
63         keybindings.h \
64         msgwindow.h \
65         plugindata.h \
66         prefs.h \
67         project.h \
68         search.h \
69         stash.h \
70         support.h \
71         templates.h \
72         toolbar.h \
73         ui_utils.h \
74         utils.h
77 INCLUDES = \
78         -I$(top_srcdir) \
79         -I$(top_srcdir)/scintilla/include \
80         -I$(top_srcdir)/tagmanager/src \
81         @GTK_CFLAGS@ @GTHREAD_CFLAGS@
83 # tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
84 nodist_EXTRA_geany_SOURCES = dummy.cxx
87 if MINGW
88 # build Geany for Windows on non-Windows systems (cross-compile)
90 geany_SOURCES = $(SRCS) win32.c win32.h
92 geany_LDADD = \
93         $(top_builddir)/scintilla/libscintilla.a \
94         $(top_builddir)/tagmanager/ctags/libctags.a \
95         $(top_builddir)/tagmanager/mio/libmio.a \
96         $(top_builddir)/tagmanager/src/libtagmanager.a \
97         @GTK_LIBS@ \
98         @GTHREAD_LIBS@ \
99         $(INTLLIBS) \
100         -lole32 -luuid -liberty -lwsock32 \
101         geany_private.res
103 AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
104                         -DGEANY_DOCDIR=\"\" \
105                         -DGEANY_LIBDIR=\"\" \
106                         -DGEANY_LOCALEDIR=\"\" \
107                         -DGEANY_PREFIX=\"\" \
108                         -DGEANY_PRIVATE \
109                         -DGTK \
110                         -DG_LOG_DOMAIN=\""Geany"\"
112 geany_LDFLAGS = -mwindows -mms-bitfields
114 WINDRES = $(host_alias)-windres
116 geany_private.res:
117         $(WINDRES) -i ../geany_private.rc --input-format=rc -o geany_private.res -O coff;
119 clean-local:
120         rm -f geany_private.res
122 else
123 # build Geany for all other platforms
125 geany_SOURCES = $(SRCS) vte.c vte.h
127 geany_LDADD = \
128         $(top_builddir)/scintilla/libscintilla.a \
129         $(top_builddir)/tagmanager/ctags/libctags.a \
130         $(top_builddir)/tagmanager/mio/libmio.a \
131         $(top_builddir)/tagmanager/src/libtagmanager.a \
132         @GTK_LIBS@ \
133         @GTHREAD_LIBS@ \
134         $(INTLLIBS)
136 AM_CFLAGS = -DGEANY_DATADIR=\""$(datadir)"\" \
137                         -DGEANY_DOCDIR=\""$(docdir)"\" \
138                         -DGEANY_LIBDIR=\""$(libdir)"\" \
139                         -DGEANY_LOCALEDIR=\""$(localedir)"\" \
140                         -DGEANY_PREFIX=\""$(prefix)"\" \
141                         -DGEANY_PRIVATE \
142                         -DGTK \
143                         -DG_LOG_DOMAIN=\""Geany"\"
145 clean-local:
147 endif