Makefile.am 3.05 KB
Newer Older
Enrico Tröger's avatar
Enrico Tröger committed
1
## Process this file with automake to produce Makefile.in
2
# $Id$
Enrico Tröger's avatar
Enrico Tröger committed
3 4


5
EXTRA_DIST = images.c gb.c win32.c win32.h plugindata.h \
Nick Treleaven's avatar
Nick Treleaven committed
6
	documentprivate.h filetypesprivate.h pluginprivate.h projectprivate.h
Enrico Tröger's avatar
Enrico Tröger committed
7 8 9

bin_PROGRAMS = geany

10
SRCS = \
Enrico Tröger's avatar
Enrico Tröger committed
11 12
	about.c about.h \
	build.c build.h \
13 14 15
	callbacks.c callbacks.h \
	dialogs.c dialogs.h \
	document.c document.h \
16
	editor.c editor.h \
17
	encodings.c encodings.h \
Enrico Tröger's avatar
Enrico Tröger committed
18
	filetypes.c filetypes.h \
19 20
	geanyentryaction.c geanyentryaction.h \
	geanymenubuttonaction.c geanymenubuttonaction.h \
21
	geanyobject.c geanyobject.h \
22
	geanywraplabel.c geanywraplabel.h \
Enrico Tröger's avatar
Enrico Tröger committed
23
	highlighting.c highlighting.h \
24 25 26
	interface.c interface.h \
	keybindings.c keybindings.h \
	keyfile.c keyfile.h \
27
	log.c log.h \
28 29
	main.c main.h geany.h \
	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 \
Enrico Tröger's avatar
Enrico Tröger committed
38
	sciwrappers.c sciwrappers.h \
39
	search.c search.h \
40
	socket.c socket.h \
41
	stash.c stash.h \
42
	support.h \
43 44
	symbols.c symbols.h \
	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
50

51

52
geany_includedir = $(includedir)/geany
53 54

# only install headers that define types or macros, not just functions
55 56 57 58 59
geany_include_HEADERS = \
	document.h \
	editor.h \
	encodings.h \
	filetypes.h \
60
	geany.h \
61 62 63 64
	highlighting.h \
	keybindings.h \
	msgwindow.h \
	plugindata.h \
65
	prefs.h \
66 67
	project.h \
	search.h \
68
	stash.h \
Enrico Tröger's avatar
Enrico Tröger committed
69
	support.h \
70
	templates.h \
Enrico Tröger's avatar
Enrico Tröger committed
71
	toolbar.h \
72
	ui_utils.h \
73
	utils.h
74

75

76
INCLUDES = -I$(top_srcdir) -I$(srcdir)/../scintilla/include -I$(srcdir)/../tagmanager/include \
77
			-I$(topsrcdir)/tagmanager/mio @GTK_CFLAGS@ @GTHREAD_CFLAGS@
78 79 80 81

# tell automake we have a C++ file so it uses the C++ linker we need for Scintilla
nodist_EXTRA_geany_SOURCES = dummy.cxx

82

83
if MINGW
84
# build Geany for Windows on non-Windows systems (cross-compile)
85 86

geany_SOURCES = $(SRCS) win32.c win32.h
87

88
geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a ../tagmanager/mio/libmio.a \
89
				@GTK_LIBS@ @GTHREAD_LIBS@ $(INTLLIBS) -lole32 -luuid -liberty -lwsock32 \
90
				geany_private.res
91

92
AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
93
			-DGEANY_DOCDIR=\"\" \
94
			-DGEANY_LIBDIR=\"\" \
95
			-DGEANY_LOCALEDIR=\"\" \
96
			-DGEANY_PREFIX=\"\" \
97
			-DGEANY_PRIVATE \
98 99
			-DGTK \
			-DG_LOG_DOMAIN=\""Geany"\"
100

101
geany_LDFLAGS =	-mwindows -mms-bitfields
102

103
WINDRES = $(host_alias)-windres
104

105
geany_private.res:
106
	$(WINDRES) -i ../geany_private.rc --input-format=rc -o geany_private.res -O coff;
107

108
clean-local:
109
	rm -f geany_private.res
110

111 112
else
# build Geany for all other platforms
113

114
geany_SOURCES = $(SRCS) vte.c vte.h
115

116
geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a ../tagmanager/mio/libmio.a \
117
				@GTK_LIBS@ @GTHREAD_LIBS@ $(INTLLIBS)
118

119
AM_CFLAGS = -DGEANY_DATADIR=\""$(datadir)"\" \
120
			-DGEANY_DOCDIR=\""$(docdir)"\" \
121 122
			-DGEANY_LIBDIR=\""$(libdir)"\" \
			-DGEANY_LOCALEDIR=\""$(localedir)"\" \
123
			-DGEANY_PREFIX=\""$(prefix)"\" \
124
			-DGEANY_PRIVATE \
125 126
			-DGTK \
			-DG_LOG_DOMAIN=\""Geany"\"
127

128 129
clean-local:

130
endif
131