Version bump.
[geany-mirror.git] / src / Makefile.am
blob95a6ab4f2b47a6b6020c74ddf862eae4bab20928
1 ## Process this file with automake to produce Makefile.in
2 # $Id$
5 EXTRA_DIST = images.c gb.c win32.c win32.h plugindata.h \
6         documentprivate.h projectprivate.h
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         interface.c interface.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         pluginprivate.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         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 = -I$(top_srcdir) -I$(srcdir)/../scintilla/include -I$(srcdir)/../tagmanager/include \
78                         @GTK_CFLAGS@ @GIO_CFLAGS@
80 # tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
81 nodist_EXTRA_geany_SOURCES = dummy.cxx
84 if MINGW
85 # build Geany for Windows on non-Windows systems (cross-compile)
87 geany_SOURCES = $(SRCS) win32.c win32.h
89 geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a @GTK_LIBS@ @GIO_LIBS@ \
90                                 $(INTLLIBS) -lole32 -luuid -liberty -lwsock32 geany_private.res
92 AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
93                         -DGEANY_DOCDIR=\"\" \
94                         -DGEANY_LIBDIR=\"\" \
95                         -DGEANY_LOCALEDIR=\"\" \
96                         -DGEANY_PREFIX=\"\" \
97                         -DGEANY_PRIVATE \
98                         -DGTK \
99                         -DG_LOG_DOMAIN=\""Geany"\"
101 geany_LDFLAGS = -mwindows -mms-bitfields
103 WINDRES = $(host_alias)-windres
105 geany_private.res:
106         $(WINDRES) -i ../geany_private.rc --input-format=rc -o geany_private.res -O coff;
108 clean-local:
109         rm -f geany_private.res
111 else
112 # build Geany for all other platforms
114 geany_SOURCES = $(SRCS) vte.c vte.h
116 geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a @GTK_LIBS@ @GIO_LIBS@ $(INTLLIBS)
118 AM_CFLAGS = -DGEANY_DATADIR=\""$(datadir)"\" \
119                         -DGEANY_DOCDIR=\""$(docdir)"\" \
120                         -DGEANY_LIBDIR=\""$(libdir)"\" \
121                         -DGEANY_LOCALEDIR=\""$(localedir)"\" \
122                         -DGEANY_PREFIX=\""$(prefix)"\" \
123                         -DGEANY_PRIVATE \
124                         -DGTK \
125                         -DG_LOG_DOMAIN=\""Geany"\"
127 clean-local:
129 endif