1997-11-25 06:05:25 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2004-01-22 11:51:46 +08:00
|
|
|
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
|
2005-01-26 03:11:26 +08:00
|
|
|
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
|
2004-01-22 11:51:46 +08:00
|
|
|
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
|
|
|
|
|
2009-10-15 03:42:14 +08:00
|
|
|
# Sort this by architectural dependencies, lowest level at the top,
|
2009-09-05 22:08:23 +08:00
|
|
|
# so that when e.g. changing a header-file the subdirs are built in
|
|
|
|
# the right order
|
2001-11-27 11:52:11 +08:00
|
|
|
SUBDIRS = \
|
2009-09-05 22:08:23 +08:00
|
|
|
config \
|
|
|
|
core \
|
2012-05-11 03:22:44 +08:00
|
|
|
operations \
|
2009-09-07 17:06:12 +08:00
|
|
|
gegl \
|
|
|
|
text \
|
2009-09-06 01:11:39 +08:00
|
|
|
vectors \
|
|
|
|
paint \
|
2009-09-05 22:08:23 +08:00
|
|
|
plug-in \
|
2009-09-07 17:06:12 +08:00
|
|
|
xcf \
|
2009-09-05 22:08:23 +08:00
|
|
|
file \
|
|
|
|
pdb \
|
|
|
|
widgets \
|
|
|
|
display \
|
|
|
|
tools \
|
|
|
|
dialogs \
|
|
|
|
actions \
|
|
|
|
menus \
|
|
|
|
gui \
|
2009-09-16 03:03:37 +08:00
|
|
|
. \
|
2009-09-05 22:08:23 +08:00
|
|
|
tests
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2009-09-08 04:51:41 +08:00
|
|
|
# Put the GIMP core in a lib so we can conveniently link against that
|
|
|
|
# in test cases
|
|
|
|
noinst_LIBRARIES = libapp.a
|
|
|
|
|
2003-09-10 10:56:01 +08:00
|
|
|
if ENABLE_GIMP_CONSOLE
|
2012-05-02 23:43:43 +08:00
|
|
|
bin_PROGRAMS = gimp-@GIMP_APP_VERSION@ gimp-console-@GIMP_APP_VERSION@
|
2003-09-10 10:56:01 +08:00
|
|
|
else
|
2012-05-02 23:43:43 +08:00
|
|
|
bin_PROGRAMS = gimp-@GIMP_APP_VERSION@
|
2003-09-10 10:56:01 +08:00
|
|
|
endif
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2009-09-08 04:51:41 +08:00
|
|
|
libapp_sources = \
|
2014-07-02 10:47:24 +08:00
|
|
|
about.h \
|
|
|
|
app.c \
|
|
|
|
app.h \
|
|
|
|
errors.c \
|
|
|
|
errors.h \
|
|
|
|
language.c \
|
|
|
|
language.h \
|
|
|
|
sanity.c \
|
|
|
|
sanity.h \
|
|
|
|
signals.c \
|
|
|
|
signals.h \
|
|
|
|
tests.c \
|
|
|
|
tests.h \
|
|
|
|
unique.c \
|
|
|
|
unique.h \
|
|
|
|
units.c \
|
|
|
|
units.h \
|
|
|
|
version.c \
|
|
|
|
version.h \
|
|
|
|
gimp-debug.c \
|
|
|
|
gimp-debug.h \
|
|
|
|
gimp-log.c \
|
|
|
|
gimp-log.h \
|
|
|
|
gimp-priorities.h \
|
2003-11-16 06:53:28 +08:00
|
|
|
gimp-intl.h
|
2001-11-12 02:35:25 +08:00
|
|
|
|
2010-01-30 15:10:41 +08:00
|
|
|
libapp_generated_sources = \
|
|
|
|
git-version.h
|
|
|
|
|
2010-09-29 03:09:23 +08:00
|
|
|
# Build git-version.h before anything in the subdirs as this is needed
|
|
|
|
# in the about dialog.
|
|
|
|
BUILT_SOURCES = $(libapp_generated_sources)
|
|
|
|
|
2010-06-21 02:01:19 +08:00
|
|
|
CLEANFILES = $(libapp_generated_sources)
|
|
|
|
|
2010-01-30 15:10:41 +08:00
|
|
|
$(srcdir)/version.c: git-version.h
|
|
|
|
|
|
|
|
libapp_a_SOURCES = $(libapp_sources) $(libapp_generated_sources)
|
2009-09-08 04:51:41 +08:00
|
|
|
|
2012-05-02 23:43:43 +08:00
|
|
|
gimp_@GIMP_APP_VERSION@_SOURCES = $(libapp_sources) main.c
|
2004-07-13 06:34:37 +08:00
|
|
|
|
2004-07-12 22:32:31 +08:00
|
|
|
|
2012-09-10 02:08:18 +08:00
|
|
|
if PLATFORM_OSX
|
2013-11-10 04:00:55 +08:00
|
|
|
framework_cocoa = -framework Cocoa
|
2012-09-10 02:08:18 +08:00
|
|
|
endif
|
|
|
|
|
2003-09-10 10:56:01 +08:00
|
|
|
if OS_WIN32
|
2013-01-22 04:17:45 +08:00
|
|
|
win32_ldflags = -mwindows -Wl,--tsaware $(WIN32_LARGE_ADDRESS_AWARE)
|
2015-02-17 02:35:00 +08:00
|
|
|
else
|
|
|
|
libm = -lm
|
2003-09-10 10:56:01 +08:00
|
|
|
endif
|
2006-08-06 05:21:01 +08:00
|
|
|
|
2006-02-20 01:44:57 +08:00
|
|
|
if USE_BINRELOC
|
2005-11-06 09:06:41 +08:00
|
|
|
munix = -Wl,-rpath '-Wl,$$ORIGIN/../lib'
|
|
|
|
endif
|
1999-05-05 06:59:54 +08:00
|
|
|
|
2004-08-01 23:28:32 +08:00
|
|
|
if HAVE_WINDRES
|
2010-08-28 03:13:03 +08:00
|
|
|
include $(top_srcdir)/build/windows/gimprc.rule
|
2010-08-28 05:09:20 +08:00
|
|
|
GIMPRC = gimp-$(GIMP_APP_VERSION).rc.o
|
|
|
|
GIMPCONSOLERC = gimp-console-$(GIMP_APP_VERSION).rc.o
|
2004-08-01 23:28:32 +08:00
|
|
|
endif
|
|
|
|
|
2002-06-08 07:00:46 +08:00
|
|
|
AM_CPPFLAGS = \
|
2002-12-04 20:26:39 +08:00
|
|
|
-DG_LOG_DOMAIN=\"Gimp\" \
|
2013-06-06 02:48:37 +08:00
|
|
|
-DGIMP_APP_GLUE_COMPILATION \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
$(GTK_CFLAGS) \
|
|
|
|
$(PANGOCAIRO_CFLAGS) \
|
|
|
|
$(GEGL_CFLAGS) \
|
2013-12-25 00:44:57 +08:00
|
|
|
$(GEXIV2_CFLAGS) \
|
2013-06-06 02:48:37 +08:00
|
|
|
-I$(includedir) \
|
2013-05-29 17:22:27 +08:00
|
|
|
-I$(builddir)/gui
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2015-08-28 03:44:15 +08:00
|
|
|
# We need this due to circular dependencies
|
|
|
|
AM_LDFLAGS = \
|
|
|
|
$(munix) \
|
2012-05-21 01:29:44 +08:00
|
|
|
-Wl,-u,$(SYMPREFIX)gimp_vectors_undo_get_type \
|
|
|
|
-Wl,-u,$(SYMPREFIX)gimp_vectors_mod_undo_get_type \
|
|
|
|
-Wl,-u,$(SYMPREFIX)gimp_param_spec_duplicate \
|
2015-08-28 03:44:15 +08:00
|
|
|
-Wl,-u,$(SYMPREFIX)gimp_operations_init \
|
|
|
|
-Wl,-u,$(SYMPREFIX)xcf_init \
|
|
|
|
-Wl,-u,$(SYMPREFIX)internal_procs_init \
|
|
|
|
-Wl,-u,$(SYMPREFIX)gimp_plug_in_manager_restore \
|
|
|
|
-Wl,-u,$(SYMPREFIX)gimp_pdb_compat_param_spec
|
2009-09-05 20:32:32 +08:00
|
|
|
|
|
|
|
gimpconsoleldadd = \
|
2006-08-06 05:21:01 +08:00
|
|
|
xcf/libappxcf.a \
|
2009-09-05 20:32:32 +08:00
|
|
|
pdb/libappinternal-procs.a \
|
2004-01-22 11:51:46 +08:00
|
|
|
pdb/libapppdb.a \
|
2009-09-05 20:32:32 +08:00
|
|
|
plug-in/libappplug-in.a \
|
2007-01-31 06:06:55 +08:00
|
|
|
vectors/libappvectors.a \
|
2009-09-05 20:32:32 +08:00
|
|
|
core/libappcore.a \
|
|
|
|
file/libappfile.a \
|
2004-01-22 11:51:46 +08:00
|
|
|
text/libapptext.a \
|
2009-09-05 20:32:32 +08:00
|
|
|
paint/libapppaint.a \
|
2012-05-11 03:22:44 +08:00
|
|
|
operations/libappoperations.a \
|
2007-12-29 09:35:04 +08:00
|
|
|
gegl/libappgegl.a \
|
2009-09-05 20:32:32 +08:00
|
|
|
config/libappconfig.a \
|
2005-01-26 03:11:26 +08:00
|
|
|
$(libgimpconfig) \
|
2009-09-05 20:32:32 +08:00
|
|
|
$(libgimpmath) \
|
|
|
|
$(libgimpthumb) \
|
|
|
|
$(libgimpcolor) \
|
|
|
|
$(libgimpmodule) \
|
2005-03-20 05:05:42 +08:00
|
|
|
$(libgimpbase) \
|
2009-09-05 20:32:32 +08:00
|
|
|
$(GDK_PIXBUF_LIBS) \
|
2004-01-22 11:51:46 +08:00
|
|
|
$(FREETYPE_LIBS) \
|
2009-09-05 20:32:32 +08:00
|
|
|
$(FONTCONFIG_LIBS) \
|
|
|
|
$(PANGOCAIRO_LIBS) \
|
2014-05-03 02:31:07 +08:00
|
|
|
$(HARFBUZZ_LIBS) \
|
2009-09-05 20:32:32 +08:00
|
|
|
$(CAIRO_LIBS) \
|
2014-08-12 18:59:12 +08:00
|
|
|
$(GIO_UNIX_LIBS) \
|
|
|
|
$(GIO_WINDOWS_LIBS) \
|
2007-12-20 23:49:54 +08:00
|
|
|
$(GEGL_LIBS) \
|
2009-09-05 20:32:32 +08:00
|
|
|
$(GLIB_LIBS) \
|
2013-10-20 00:38:01 +08:00
|
|
|
$(GEXIV2_LIBS) \
|
2014-03-17 01:33:52 +08:00
|
|
|
$(LCMS_LIBS) \
|
2014-09-17 06:20:53 +08:00
|
|
|
$(Z_LIBS) \
|
2014-04-06 21:48:53 +08:00
|
|
|
$(JSON_C_LIBS) \
|
2015-12-29 00:22:25 +08:00
|
|
|
$(LIBMYPAINT_LIBS) \
|
2004-08-01 23:28:32 +08:00
|
|
|
$(INTLLIBS) \
|
2015-02-17 02:35:00 +08:00
|
|
|
$(RT_LIBS) \
|
|
|
|
$(libm)
|
2009-09-05 20:32:32 +08:00
|
|
|
|
2012-05-08 05:04:59 +08:00
|
|
|
gimp_@GIMP_APP_VERSION@_LDFLAGS = \
|
|
|
|
$(AM_LDFLAGS) \
|
|
|
|
$(win32_ldflags) \
|
2013-11-10 04:00:55 +08:00
|
|
|
$(framework_cocoa) \
|
2012-05-21 01:29:44 +08:00
|
|
|
-Wl,-u,$(SYMPREFIX)gimp_lebl_dialog
|
2009-09-05 20:32:32 +08:00
|
|
|
|
2012-05-02 23:43:43 +08:00
|
|
|
gimp_@GIMP_APP_VERSION@_LDADD = \
|
2013-11-10 04:00:55 +08:00
|
|
|
gui/libappgui.a \
|
|
|
|
menus/libappmenus.a \
|
|
|
|
actions/libappactions.a \
|
|
|
|
dialogs/libappdialogs.a \
|
|
|
|
tools/libapptools.a \
|
|
|
|
display/libappdisplay.a \
|
|
|
|
widgets/libappwidgets.a \
|
|
|
|
$(libgimpwidgets) \
|
|
|
|
$(GTK_LIBS) \
|
|
|
|
$(GTK_MAC_INTEGRATION_LIBS) \
|
|
|
|
$(DBUS_GLIB_LIBS) \
|
|
|
|
$(gimpconsoleldadd) \
|
2009-10-15 03:30:59 +08:00
|
|
|
$(GIMPRC)
|
2002-02-03 16:03:21 +08:00
|
|
|
|
2004-07-13 06:34:37 +08:00
|
|
|
|
2003-09-10 10:56:01 +08:00
|
|
|
if ENABLE_GIMP_CONSOLE
|
2004-07-12 22:32:31 +08:00
|
|
|
|
2012-05-02 23:43:43 +08:00
|
|
|
gimp_console_@GIMP_APP_VERSION@_SOURCES = $(libapp_sources) main.c
|
2004-07-12 22:32:31 +08:00
|
|
|
|
2012-05-02 23:43:43 +08:00
|
|
|
gimp_console_@GIMP_APP_VERSION@_CPPFLAGS = \
|
2004-07-12 22:32:31 +08:00
|
|
|
$(AM_CPPFLAGS) \
|
|
|
|
-DGIMP_CONSOLE_COMPILATION
|
|
|
|
|
2012-05-02 23:43:43 +08:00
|
|
|
gimp_console_@GIMP_APP_VERSION@_LDADD = \
|
2009-10-15 03:30:59 +08:00
|
|
|
$(gimpconsoleldadd) \
|
|
|
|
$(GIMPCONSOLERC)
|
2004-07-13 06:34:37 +08:00
|
|
|
|
2003-09-10 10:56:01 +08:00
|
|
|
endif
|
|
|
|
|
2004-07-13 06:34:37 +08:00
|
|
|
|
2002-02-03 16:03:21 +08:00
|
|
|
install-exec-hook:
|
|
|
|
if DEFAULT_BINARY
|
|
|
|
cd $(DESTDIR)$(bindir) \
|
2002-12-26 10:08:28 +08:00
|
|
|
&& rm -f gimp$(EXEEXT) \
|
2004-01-22 11:51:46 +08:00
|
|
|
&& $(LN_S) gimp-$(GIMP_APP_VERSION)$(EXEEXT) gimp$(EXEEXT)
|
2003-09-10 10:56:01 +08:00
|
|
|
if ENABLE_GIMP_CONSOLE
|
|
|
|
cd $(DESTDIR)$(bindir) \
|
|
|
|
&& rm -f gimp-console$(EXEEXT) \
|
2004-01-22 11:51:46 +08:00
|
|
|
&& $(LN_S) gimp-console-$(GIMP_APP_VERSION)$(EXEEXT) gimp-console$(EXEEXT)
|
2003-09-10 10:56:01 +08:00
|
|
|
endif
|
2002-02-03 16:03:21 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
if DEFAULT_BINARY
|
2002-12-26 10:08:28 +08:00
|
|
|
rm -f $(DESTDIR)$(bindir)/gimp$(EXEEXT)
|
2003-09-10 10:56:01 +08:00
|
|
|
if ENABLE_GIMP_CONSOLE
|
2004-01-14 19:10:35 +08:00
|
|
|
rm -f $(DESTDIR)$(bindir)/gimp-console$(EXEEXT)
|
2003-09-10 10:56:01 +08:00
|
|
|
endif
|
2002-02-03 16:03:21 +08:00
|
|
|
endif
|
2003-10-14 06:55:25 +08:00
|
|
|
|
|
|
|
|
2004-07-13 01:14:02 +08:00
|
|
|
# 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
|
2003-10-14 06:55:25 +08:00
|
|
|
|
2004-07-13 01:14:02 +08:00
|
|
|
|
|
|
|
# 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)
|
2005-07-02 01:22:14 +08:00
|
|
|
./$< --dump-gimprc-system > gimprc.tmp \
|
2007-09-04 00:03:36 +08:00
|
|
|
&& 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
|
2005-07-02 01:22:14 +08:00
|
|
|
./$< --dump-gimprc-manpage > gimprc.tmp \
|
2007-09-04 00:03:36 +08:00
|
|
|
&& 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
|
2004-07-13 01:14:02 +08:00
|
|
|
|
|
|
|
dist-hook: dist-check-gimp-console dist-dump-gimprc
|
2004-08-01 23:28:32 +08:00
|
|
|
|
2010-01-30 15:10:41 +08:00
|
|
|
# If git is available, always check if git-version.h should be
|
2010-08-02 04:59:13 +08:00
|
|
|
# updated. If git is not available, don't do anything if git-version.h
|
2010-01-30 15:10:41 +08:00
|
|
|
# already exists because then we are probably working with a tarball
|
|
|
|
# in which case the git-version.h we ship is correct.
|
|
|
|
git-version.h: update-git-version-header
|
|
|
|
@if test -d "$(top_srcdir)/.git"; then \
|
2011-09-15 12:45:03 +08:00
|
|
|
git_version="`git --git-dir=$(top_srcdir)/.git describe --always`"; \
|
2011-10-05 05:36:21 +08:00
|
|
|
git_last_commit_year="`git --git-dir=$(top_srcdir)/.git log -n1 --reverse --pretty=%ci | cut -b 1-4`"; \
|
2010-01-30 15:10:41 +08:00
|
|
|
elif test ! -f "$@"; then \
|
2010-09-17 17:52:45 +08:00
|
|
|
git_version="Unknown, shouldn't happen"; \
|
|
|
|
git_last_commit_timestamp=-1; \
|
2011-10-05 05:36:21 +08:00
|
|
|
git_last_commit_year="`date -u '+%Y'`"; \
|
2010-09-17 17:52:45 +08:00
|
|
|
fi; \
|
2011-08-26 14:13:46 +08:00
|
|
|
if test -n "$$git_version"; then \
|
|
|
|
echo "#ifndef __GIT_VERSION_H__" > "$@.tmp"; \
|
|
|
|
echo "#define __GIT_VERSION_H__" >> "$@.tmp"; \
|
|
|
|
echo "#define GIMP_GIT_VERSION \"$$git_version\"" >> "$@.tmp"; \
|
|
|
|
echo "#define GIMP_GIT_LAST_COMMIT_YEAR \"$$git_last_commit_year\"" >> "$@.tmp"; \
|
|
|
|
echo "#endif /* __GIT_VERSION_H__ */" >> "$@.tmp"; \
|
|
|
|
fi
|
2010-06-22 02:38:05 +08:00
|
|
|
@if ( test -f "$@.tmp" && test -f "$@" && cmp "$@.tmp" "$@" > /dev/null ); then \
|
2010-01-30 15:10:41 +08:00
|
|
|
rm -f "$@.tmp"; \
|
|
|
|
elif test -f "$@.tmp"; then \
|
|
|
|
mv "$@.tmp" "$@"; \
|
2010-08-02 05:10:08 +08:00
|
|
|
echo " git HEAD changed: $@ regenerated"; \
|
2010-01-30 15:10:41 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
.PHONY: update-git-version-header
|