Constify some more string pointers in the API (patch by
[geany-mirror.git] / src / Makefile.am
blob5f6ecfe9891fd55bd233e41affc4673dd048e82f
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
99 geany_LDFLAGS = -mwindows -mms-bitfields
101 WINDRES = $(host_alias)-windres
103 geany_private.res:
104         $(WINDRES) -i ../geany_private.rc --input-format=rc -o geany_private.res -O coff;
106 clean-local:
107         rm -f geany_private.res
109 else
110 # build Geany for all other platforms
112 geany_SOURCES = $(SRCS) vte.c vte.h
114 geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a @GTK_LIBS@ @GIO_LIBS@ $(INTLLIBS)
116 AM_CFLAGS = -DGEANY_DATADIR=\""$(datadir)"\" \
117                         -DGEANY_DOCDIR=\""$(docdir)"\" \
118                         -DGEANY_LIBDIR=\""$(libdir)"\" \
119                         -DGEANY_LOCALEDIR=\""$(localedir)"\" \
120                         -DGEANY_PREFIX=\""$(prefix)"\" \
121                         -DGEANY_PRIVATE
123 clean-local:
125 endif