Makefile.am 4.3 KB
Newer Older
Elliot Lee's avatar
Elliot Lee committed
1 2
## Process this file with automake to produce Makefile.in

3 4 5 6 7 8 9
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
libgimpthumb = $(top_builddir)/libgimpthumb/libgimpthumb-$(GIMP_API_VERSION).la

10 11
SUBDIRS = \
	paint-funcs	\
12
	composite	\
13 14
	base 		\
	config		\
15
	core		\
16
	paint		\
17 18
	text		\
	vectors		\
19 20 21 22 23
	xcf		\
	file		\
	plug-in		\
	tools		\
	widgets		\
24
	display		\
25
	actions		\
26
	menus		\
27
	gui		\
28
	pdb
29

Elliot Lee's avatar
Elliot Lee committed
30 31
scriptdata =

32
if ENABLE_GIMP_CONSOLE
33
bin_PROGRAMS = gimp-2.1 gimp-console-2.1
34
else
35
bin_PROGRAMS = gimp-2.1
36
endif
Elliot Lee's avatar
Elliot Lee committed
37

38
gimp_2_1_SOURCES = \
39 40 41 42 43 44 45
	app_procs.c	\
	app_procs.h	\
	main.c		\
	batch.c		\
	batch.h		\
	errors.c	\
	errors.h	\
46 47
	sanity.c	\
	sanity.h	\
48 49 50
	units.c		\
	units.h		\
	gimp-intl.h
51

Elliot Lee's avatar
Elliot Lee committed
52
EXTRA_DIST = \
53 54 55
	makefile.msc	\
	gimp.rc		\
	wilber.ico
56 57 58 59 60 61

if HAVE_GLIBC_REGEX
REGEXREPL =
else
REGEXREPL = $(top_builddir)/regexrepl/libregex.a
endif
Elliot Lee's avatar
Elliot Lee committed
62

63
if OS_WIN32
64
mwindows = -mwindows
65
endif
66

67
AM_CPPFLAGS = \
68 69 70
	-DG_LOG_DOMAIN=\"Gimp\"		\
	-DGIMP_APP_GLUE_COMPILATION	\
	@GIMP_THREAD_FLAGS@ 		\
71
	@GIMP_MP_FLAGS@
Elliot Lee's avatar
Elliot Lee committed
72

73 74 75
INCLUDES = \
	-I$(top_srcdir)	\
	$(GTK_CFLAGS)	\
76
	$(PANGOFT2_CFLAGS) \
77
	-I$(includedir)
Elliot Lee's avatar
Elliot Lee committed
78

79
gimp_2_1_LDFLAGS = \
Michael Natterer's avatar
Michael Natterer committed
80 81 82 83
	$(mwindows)					\
	-u $(SYMPREFIX)gimp_container_filter		\
	-u $(SYMPREFIX)gimp_xml_parser_new		\
	-u $(SYMPREFIX)gimp_drawable_stroke_vectors	\
84
	-u $(SYMPREFIX)gimp_coords_mix			\
Michael Natterer's avatar
Michael Natterer committed
85
	\
86
	-u $(SYMPREFIX)convert_dialog_new		\
Michael Natterer's avatar
Michael Natterer committed
87 88 89
	-u $(SYMPREFIX)grid_dialog_new			\
	-u $(SYMPREFIX)info_dialog_new			\
	-u $(SYMPREFIX)info_window_create		\
90
	-u $(SYMPREFIX)offset_dialog_new		\
Michael Natterer's avatar
Michael Natterer committed
91
	-u $(SYMPREFIX)palette_import_dialog_show	\
92
	-u $(SYMPREFIX)resize_dialog_new		\
Michael Natterer's avatar
Michael Natterer committed
93 94
	-u $(SYMPREFIX)stroke_dialog_new		\
	-u $(SYMPREFIX)file_open_dialog_show		\
95
	-u $(SYMPREFIX)file_open_location_dialog_show	\
Michael Natterer's avatar
Michael Natterer committed
96 97
	-u $(SYMPREFIX)file_save_dialog_show		\
	-u $(SYMPREFIX)color_notebook_new
98

99
gimp_2_1_LDADD = \
100 101
	config/libappconfig.a		\
	gui/libappgui.a			\
102
	menus/libappmenus.a		\
103
	actions/libappactions.a		\
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
	display/libappdisplay.a		\
	tools/libapptools.a		\
	widgets/libappwidgets.a		\
	core/libappcore.a		\
	pdb/libapppdb.a			\
	paint/libapppaint.a		\
	xcf/libappxcf.a			\
	text/libapptext.a		\
	vectors/libappvectors.a		\
	file/libappfile.a		\
	plug-in/libappplug-in.a		\
	paint-funcs/libapppaint-funcs.a	\
	composite/libappcomposite.a	\
	base/libappbase.a		\
	$(libgimpwidgets)		\
	$(libgimpmodule)		\
	$(libgimpcolor)			\
	$(libgimpthumb)			\
	$(libgimpmath)			\
	$(libgimpbase)			\
	$(GTK_LIBS)			\
	$(LIBART_LIBS)			\
	$(PANGOFT2_LIBS)		\
	$(FONTCONFIG_LIBS)		\
	$(FREETYPE_LIBS)		\
	$(GIMP_THREAD_LIBS)		\
	$(GIMP_MP_LIBS)			\
	$(RT_LIBS)			\
	$(INTLLIBS)			\
133
	$(REGEXREPL)
134

135
if ENABLE_GIMP_CONSOLE
136 137
gimp_console_2_1_SOURCES = $(gimp_2_1_SOURCES)
gimp_console_2_1_LDFLAGS = $(gimp_2_1_LDFLAGS)
138

139
gimp_console_2_1_LDADD = \
140 141
	config/libappconfig.a		\
	pdb/libapppdb.a			\
142
	core/libappcore.a		\
143 144 145 146 147 148 149 150
	paint/libapppaint.a		\
	xcf/libappxcf.a			\
	text/libapptext.a		\
	vectors/libappvectors.a		\
	file/libappfile.a		\
	plug-in/libappplug-in.a		\
	paint-funcs/libapppaint-funcs.a	\
	composite/libappcomposite.a	\
151
	base/libappbase.a		\
152 153 154 155 156 157 158 159 160 161 162 163
	$(libgimpmodule)		\
	$(libgimpcolor)			\
	$(libgimpthumb)			\
	$(libgimpmath)			\
	$(libgimpbase)			\
	$(GDK_PIXBUF_LIBS)		\
	$(LIBART_LIBS)			\
	$(PANGOFT2_LIBS)		\
	$(FONTCONFIG_LIBS)		\
	$(FREETYPE_LIBS)		\
	$(GIMP_THREAD_LIBS)		\
	$(GIMP_MP_LIBS)			\
164
	$(RT_LIBS)			\
165
	$(INTLLIBS)			\
166 167 168
	$(REGEXREPL)
endif

169 170 171
install-exec-hook:
if DEFAULT_BINARY
	cd $(DESTDIR)$(bindir) \
172
	&& rm -f gimp$(EXEEXT) \
173
	&& $(LN_S) gimp-$(GIMP_APP_VERSION)$(EXEEXT) gimp$(EXEEXT)
174 175 176
if ENABLE_GIMP_CONSOLE
	cd $(DESTDIR)$(bindir) \
	&& rm -f gimp-console$(EXEEXT) \
177
	&& $(LN_S) gimp-console-$(GIMP_APP_VERSION)$(EXEEXT) gimp-console$(EXEEXT)
178
endif
179 180 181 182
endif

uninstall-local:
if DEFAULT_BINARY
183
	rm -f $(DESTDIR)$(bindir)/gimp$(EXEEXT)
184
if ENABLE_GIMP_CONSOLE
185
	rm -f $(DESTDIR)$(bindir)/gimp-console$(EXEEXT)
186
endif
187
endif
188 189 190 191 192


# hooks to assure that the system gimprc and the gimprc manpage are
# uptodate when a release is made

193
dist-hook: gimp-$(GIMP_APP_VERSION)$(EXEEXT)
194
	./$< --dump-gimprc-system > $(top_srcdir)/etc/gimprc
195
	./$< --dump-gimprc-manpage > $(top_srcdir)/docs/gimprc.5.in