Update HACKING for changed doc generation instructions
[geany-mirror.git] / src / Makefile.am
blobddd22b02a609a0c7922ac466617ade1589cb6c7a
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 bin_PROGRAMS = geany
17 SRCS = \
18         about.c about.h \
19         app.h \
20         build.c build.h \
21         callbacks.c callbacks.h \
22         dialogs.c dialogs.h \
23         document.c document.h \
24         editor.c editor.h \
25         encodings.c encodings.h \
26         filetypes.c filetypes.h \
27         geanyentryaction.c geanyentryaction.h \
28         geanymenubuttonaction.c geanymenubuttonaction.h \
29         geanyobject.c geanyobject.h \
30         geanywraplabel.c geanywraplabel.h \
31         gtkcompat.h \
32         highlighting.c highlighting.h \
33         highlightingmappings.h \
34         keybindings.c keybindings.h \
35         keyfile.c keyfile.h \
36         log.c log.h \
37         main.c main.h geany.h \
38         msgwindow.c msgwindow.h \
39         navqueue.c navqueue.h \
40         notebook.c notebook.h \
41         plugins.c plugins.h \
42         pluginutils.c pluginutils.h \
43         prefix.c prefix.h \
44         prefs.c prefs.h \
45         printing.c printing.h \
46         project.c project.h \
47         sciwrappers.c sciwrappers.h \
48         search.c search.h \
49         socket.c socket.h \
50         stash.c stash.h \
51         support.h \
52         symbols.c symbols.h \
53         templates.c templates.h \
54         toolbar.c toolbar.h \
55         tools.c tools.h \
56         sidebar.c sidebar.h \
57         ui_utils.c ui_utils.h \
58         utils.c utils.h
61 geany_includedir = $(includedir)/geany
63 # only install headers that define types or macros, not just functions
64 geany_include_HEADERS = \
65         app.h \
66         build.h \
67         document.h \
68         editor.h \
69         encodings.h \
70         filetypes.h \
71         geany.h \
72         gtkcompat.h \
73         highlighting.h \
74         keybindings.h \
75         msgwindow.h \
76         plugindata.h \
77         prefs.h \
78         project.h \
79         search.h \
80         stash.h \
81         support.h \
82         templates.h \
83         toolbar.h \
84         ui_utils.h \
85         utils.h
88 AM_CPPFLAGS = \
89         -I$(top_srcdir) \
90         -I$(top_srcdir)/scintilla/include \
91         -I$(top_srcdir)/tagmanager/src \
92         @GTK_CFLAGS@ @GTHREAD_CFLAGS@
94 # tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
95 nodist_EXTRA_geany_SOURCES = dummy.cxx
98 if MINGW
99 # build Geany for Windows on non-Windows systems (cross-compile)
101 geany_SOURCES = $(SRCS) win32.c win32.h
103 geany_LDADD = \
104         $(top_builddir)/scintilla/libscintilla.a \
105         $(top_builddir)/tagmanager/ctags/libctags.a \
106         $(top_builddir)/tagmanager/mio/libmio.a \
107         $(top_builddir)/tagmanager/src/libtagmanager.a \
108         @GTK_LIBS@ \
109         @GTHREAD_LIBS@ \
110         $(INTLLIBS) \
111         -lole32 -luuid -liberty -lwsock32 \
112         geany_private.res
114 AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
115                         -DGEANY_DOCDIR=\"\" \
116                         -DGEANY_LIBDIR=\"\" \
117                         -DGEANY_LOCALEDIR=\"\" \
118                         -DGEANY_PREFIX=\"\" \
119                         -DGEANY_PRIVATE \
120                         -DGTK \
121                         -DG_LOG_DOMAIN=\""Geany"\"
123 geany_LDFLAGS = -mwindows -mms-bitfields
125 WINDRES = $(host_alias)-windres
127 geany_private.res:
128         $(WINDRES) -i ../geany_private.rc --input-format=rc -o geany_private.res -O coff;
130 clean-local:
131         rm -f geany_private.res
133 else
134 # build Geany for all other platforms
136 geany_SOURCES = $(SRCS) vte.c vte.h
138 geany_LDADD = \
139         $(top_builddir)/scintilla/libscintilla.a \
140         $(top_builddir)/tagmanager/ctags/libctags.a \
141         $(top_builddir)/tagmanager/mio/libmio.a \
142         $(top_builddir)/tagmanager/src/libtagmanager.a \
143         @GTK_LIBS@ \
144         @GTHREAD_LIBS@ \
145         $(INTLLIBS)
147 AM_CFLAGS = -DGEANY_DATADIR=\""$(datadir)"\" \
148                         -DGEANY_DOCDIR=\""$(docdir)"\" \
149                         -DGEANY_LIBDIR=\""$(libdir)"\" \
150                         -DGEANY_LOCALEDIR=\""$(localedir)"\" \
151                         -DGEANY_PREFIX=\""$(prefix)"\" \
152                         -DGEANY_PRIVATE \
153                         -DGTK \
154                         -DG_LOG_DOMAIN=\""Geany"\"
156 clean-local:
158 endif