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

3
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
4
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
5 6 7 8 9 10
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

11

12 13
SUBDIRS = \
	paint-funcs	\
14
	composite	\
15
	base 		\
Michael Natterer's avatar
Michael Natterer committed
16
	gegl		\
17
	config		\
18
	core		\
19
	paint		\
20 21
	text		\
	vectors		\
22
	plug-in		\
23
	file		\
24 25
	xcf		\
	pdb		\
26
	widgets		\
27
	display		\
28
	tools		\
29
	dialogs		\
30
	actions		\
31
	menus		\
32
	gui
33

Elliot Lee's avatar
Elliot Lee committed
34

35
if ENABLE_GIMP_CONSOLE
36
bin_PROGRAMS = gimp-2.5 gimp-console-2.5
37
else
38
bin_PROGRAMS = gimp-2.5
39
endif
Elliot Lee's avatar
Elliot Lee committed
40

41
app_sources = \
42
	about.h		\
Sven Neumann's avatar
Sven Neumann committed
43 44
	app.c		\
	app.h		\
45 46 47 48
	batch.c		\
	batch.h		\
	errors.c	\
	errors.h	\
Sven Neumann's avatar
Sven Neumann committed
49
	main.c		\
50 51
	sanity.c	\
	sanity.h	\
52 53
	unique.c	\
	unique.h	\
54 55
	units.c		\
	units.h		\
56 57
	version.c	\
	version.h	\
58 59
	gimp-log.c	\
	gimp-log.h	\
60
	gimp-intl.h
61

62
gimp_2_5_SOURCES = $(app_sources)
63

64

Elliot Lee's avatar
Elliot Lee committed
65
EXTRA_DIST = \
66 67
	makefile.msc	\
	gimp.rc		\
68
	fileicon.ico	\
69
	wilber.ico
70

71
if OS_WIN32
72
mwindows = -mwindows
73
endif
74

75
if USE_BINRELOC
76 77
munix = -Wl,-rpath '-Wl,$$ORIGIN/../lib'
endif
78

79 80 81 82
if HAVE_WINDRES
GIMPICONRC = gimprc.o
endif

83
AM_CPPFLAGS = \
84
	-DG_LOG_DOMAIN=\"Gimp\"		\
85
	-DGIMP_APP_GLUE_COMPILATION
Elliot Lee's avatar
Elliot Lee committed
86

87
INCLUDES = \
88 89 90
	-I$(top_srcdir)		\
	$(GTK_CFLAGS)		\
	$(PANGOFT2_CFLAGS)	\
91
	$(DBUS_GLIB_CFLAGS)	\
Sven Neumann's avatar
Sven Neumann committed
92
	$(GEGL_CFLAGS)		\
93
	-I$(includedir)
Elliot Lee's avatar
Elliot Lee committed
94

Michael Natterer's avatar
Michael Natterer committed
95
AM_LDFLAGS = \
96 97 98 99 100 101 102
	$(munix)					\
	$(CARBON_LDFLAGS)				\
	-u $(SYMPREFIX)xcf_init				\
	-u $(SYMPREFIX)internal_procs_init		\
	-u $(SYMPREFIX)gimp_coords_mix			\
	-u $(SYMPREFIX)gimp_curve_map_pixels		\
	-u $(SYMPREFIX)gimp_image_map_config_get_type	\
103
	-u $(SYMPREFIX)gimp_plug_in_manager_restore
104

105
gimp_2_5_LDFLAGS = $(AM_LDFLAGS) $(mwindows) 
106

107
gimp_2_5_LDADD = \
108
	gui/libappgui.a			\
Michael Natterer's avatar
Michael Natterer committed
109
	actions/libappactions.a		\
110
	dialogs/libappdialogs.a		\
111
	menus/libappmenus.a		\
112 113 114
	display/libappdisplay.a		\
	tools/libapptools.a		\
	widgets/libappwidgets.a		\
115
	pdb/libappinternal-procs.a	\
116
	xcf/libappxcf.a			\
117
	file/libappfile.a		\
118
	plug-in/libappplug-in.a		\
119
	pdb/libapppdb.a			\
Michael Natterer's avatar
Michael Natterer committed
120
	core/libappcore.a		\
121
	vectors/libappvectors.a		\
122 123
	paint/libapppaint.a		\
	text/libapptext.a		\
Michael Natterer's avatar
Michael Natterer committed
124
	config/libappconfig.a		\
Michael Natterer's avatar
Michael Natterer committed
125
	gegl/libappgegl.a		\
126 127 128 129 130 131 132 133
	paint-funcs/libapppaint-funcs.a	\
	composite/libappcomposite.a	\
	base/libappbase.a		\
	$(libgimpwidgets)		\
	$(libgimpmodule)		\
	$(libgimpcolor)			\
	$(libgimpthumb)			\
	$(libgimpmath)			\
134
	$(libgimpconfig)		\
135
	$(libgimpbase)			\
136
	$(REGEXREPL)			\
137 138 139 140
	$(GTK_LIBS)			\
	$(PANGOFT2_LIBS)		\
	$(FONTCONFIG_LIBS)		\
	$(FREETYPE_LIBS)		\
141
	$(DBUS_GLIB_LIBS)		\
Sven Neumann's avatar
Sven Neumann committed
142
	$(GEGL_LIBS)			\
143
	$(RT_LIBS)			\
144 145
	$(INTLLIBS)			\
	$(GIMPICONRC)
146

147

148
if ENABLE_GIMP_CONSOLE
149

150
gimp_console_2_5_SOURCES = $(app_sources)
151

152
gimp_console_2_5_CPPFLAGS = \
153 154 155
	$(AM_CPPFLAGS)			\
	-DGIMP_CONSOLE_COMPILATION

156
gimp_console_2_5_LDADD = \
157 158 159
	widgets/widgets-enums.o		\
	display/display-enums.o		\
	display/gimpdisplayoptions.o	\
160
	pdb/libappinternal-procs.a	\
161
	xcf/libappxcf.a			\
162
	file/libappfile.a		\
163
	plug-in/libappplug-in.a		\
164
	pdb/libapppdb.a			\
165
	core/libappcore.a		\
166
	vectors/libappvectors.a		\
167 168
	paint/libapppaint.a		\
	text/libapptext.a		\
Michael Natterer's avatar
Michael Natterer committed
169
	config/libappconfig.a		\
Michael Natterer's avatar
Michael Natterer committed
170
	gegl/libappgegl.a		\
171 172
	paint-funcs/libapppaint-funcs.a	\
	composite/libappcomposite.a	\
173
	base/libappbase.a		\
174 175 176 177
	$(libgimpmodule)		\
	$(libgimpcolor)			\
	$(libgimpthumb)			\
	$(libgimpmath)			\
178
	$(libgimpconfig)		\
179
	$(libgimpbase)			\
180
	$(REGEXREPL)			\
181
	$(GDK_PIXBUF_LIBS)		\
182
	$(CAIRO_LIBS)			\
183 184 185
	$(PANGOFT2_LIBS)		\
	$(FONTCONFIG_LIBS)		\
	$(FREETYPE_LIBS)		\
Sven Neumann's avatar
Sven Neumann committed
186
	$(GEGL_LIBS)			\
187
	$(RT_LIBS)			\
188 189
	$(INTLLIBS)			\
	$(GIMPICONRC)
190

191 192
endif

193

194 195 196
install-exec-hook:
if DEFAULT_BINARY
	cd $(DESTDIR)$(bindir) \
197
	&& rm -f gimp$(EXEEXT) \
198
	&& $(LN_S) gimp-$(GIMP_APP_VERSION)$(EXEEXT) gimp$(EXEEXT)
199 200 201
if ENABLE_GIMP_CONSOLE
	cd $(DESTDIR)$(bindir) \
	&& rm -f gimp-console$(EXEEXT) \
202
	&& $(LN_S) gimp-console-$(GIMP_APP_VERSION)$(EXEEXT) gimp-console$(EXEEXT)
203
endif
204 205 206 207
endif

uninstall-local:
if DEFAULT_BINARY
208
	rm -f $(DESTDIR)$(bindir)/gimp$(EXEEXT)
209
if ENABLE_GIMP_CONSOLE
210
	rm -f $(DESTDIR)$(bindir)/gimp-console$(EXEEXT)
211
endif
212
endif
213 214


215 216 217 218 219 220 221 222 223
# require gimp-console when making dist
#
if ENABLE_GIMP_CONSOLE
dist-check-gimp-console:
else
dist-check-gimp-console:
	@echo "*** gimp-console must be enabled in order to make dist"
	@false
endif
224

225 226 227 228 229

# hook to assure that the system gimprc and the gimprc manpage are
# uptodate when a release is made
#
dist-dump-gimprc: gimp-console-$(GIMP_APP_VERSION)$(EXEEXT)
Sven Neumann's avatar
Sven Neumann committed
230
	./$< --dump-gimprc-system > gimprc.tmp	\
Michael Natterer's avatar
Michael Natterer committed
231 232 233 234 235
		&& sed -e "s/num-processors [0-9]*/num-processors 1/"	\
		   gimprc.tmp > gimprc.tmp2				\
		&& (cmp -s gimprc.tmp2 $(top_srcdir)/etc/gimprc ||	\
		    cp gimprc.tmp2 $(top_srcdir)/etc/gimprc)		\
		&& rm gimprc.tmp gimprc.tmp2
Sven Neumann's avatar
Sven Neumann committed
236
	./$< --dump-gimprc-manpage > gimprc.tmp	\
Michael Natterer's avatar
Michael Natterer committed
237 238 239 240 241
		&& sed -e "s/num-processors [0-9]*/num-processors 1/"	\
		   gimprc.tmp > gimprc.tmp2				\
		&& (cmp -s gimprc.tmp2 $(top_srcdir)/docs/gimprc.5.in ||\
		    cp gimprc.tmp2 $(top_srcdir)/docs/gimprc.5.in)	\
		&& rm gimprc.tmp gimprc.tmp2
242 243

dist-hook: dist-check-gimp-console dist-dump-gimprc
244 245 246

gimprc.o:
	$(WINDRES) gimp.rc gimprc.o