gimp/app/Makefile.am

253 lines
5.6 KiB
Makefile
Raw Normal View History

1997-11-25 06:05:25 +08:00
## Process this file with automake to produce Makefile.in
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
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
# Sort this by architectural depenendencies
SUBDIRS = \
tests \
gui \
menus \
actions \
dialogs \
tools \
display \
widgets \
pdb \
file \
plug-in \
core \
xcf \
vectors \
text \
composite \
gegl \
Core/UI separation for the paint tools: 2002-02-14 Michael Natterer <mitch@gimp.org> Core/UI separation for the paint tools: * configure.in * app/Makefile.am * app/paint/.cvsignore * app/paint/Makefile.am: added new directory for the paint methods without GUI and tools around them. * app/paint/paint-types.h: typedefs for this module. * app/paint/gimppaintcore-kernels.h * app/paint/gimppaintcore.[ch]: the general paint logic taken from GimpPaintTool. * app/paint/gimpairbrush.[ch] * app/paint/gimpclone.[ch] * app/paint/gimpconvolve.[ch] * app/paint/gimpdodgeburn.[ch] * app/paint/gimperaser.[ch] * app/paint/gimppaintbrush.[ch] * app/paint/gimppencil.[ch] * app/paint/gimpsmudge.[ch]: subclasses of GimpPaintCore, implementing their own paint() methods. Needs more hacking to get the GtkWidget pointers out of the options structs. * app/tools/gimppainttool_kernels.h: removed. * app/tools/tools-types.h: removed the paint tool enums. * app/tools/gimpairbrushtool.[ch] * app/tools/gimpclonetool.[ch] * app/tools/gimpconvolvetool.[ch] * app/tools/gimpdodgeburntool.[ch] * app/tools/gimperasertool.[ch] * app/tools/gimppaintbrushtool.[ch] * app/tools/gimppainttool.[ch] * app/tools/gimppenciltool.[ch] * app/tools/gimpsmudgetool.[ch]: all paint tools are pure GUI things now. PaintOptions and friends still need to be chopped up though... * app/undo.c: changed PaintUndo to GimpPaintCoreUndo, some minor cleanup. * tools/kernelgen.c: changed accordingly. * tools/pdbgen/Makefile.am: scan paint/paint-types.h for enums. * tools/pdbgen/pdb/paint_tools.pdb: hardcode "success = FALSE" for all paint PDB wrappers. The non-gui stuff is completely broken. More commits to come... * app/pdb/paint_tools_cmds.c * tools/pdbgen/enums.pl: regenerated.
2002-02-15 03:31:16 +08:00
paint \
config \
paint-funcs \
base
1997-11-25 06:05:25 +08:00
if ENABLE_GIMP_CONSOLE
bin_PROGRAMS = gimp-2.7 gimp-console-2.7
else
bin_PROGRAMS = gimp-2.7
endif
1997-11-25 06:05:25 +08:00
app_sources = \
about.h \
app.c \
app.h \
batch.c \
batch.h \
errors.c \
errors.h \
main.c \
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-log.c \
gimp-log.h \
gimp-intl.h
gimp_2_7_SOURCES = $(app_sources)
1997-11-25 06:05:25 +08:00
EXTRA_DIST = \
makefile.msc \
gimp.rc \
fileicon.ico \
wilber.ico
if OS_WIN32
win32_ldflags = -mwindows $(WIN32_LARGE_ADDRESS_AWARE)
endif
if USE_BINRELOC
munix = -Wl,-rpath '-Wl,$$ORIGIN/../lib'
endif
if HAVE_WINDRES
GIMPICONRC = gimprc.o
endif
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Gimp\" \
-DGIMP_APP_GLUE_COMPILATION
1997-11-25 06:05:25 +08:00
INCLUDES = \
-I$(top_srcdir) \
$(GTK_CFLAGS) \
$(PANGOCAIRO_CFLAGS) \
$(DBUS_GLIB_CFLAGS) \
$(GEGL_CFLAGS) \
-I$(includedir)
1997-11-25 06:05:25 +08:00
# FIXME: core should not depend on xcf
workaround_that_core_depends_on_xcf = \
-u $(SYMPREFIX)xcf_init
# FIXME: core should not depend on pdb
workaround_that_core_depends_on_pdb = \
-u $(SYMPREFIX)internal_procs_init \
-u $(SYMPREFIX)gimp_plug_in_manager_restore
# FIXME: plug-in should not depend on pdb
workaround_that_plug_in_depends_on_pdb = \
-u $(SYMPREFIX)gimp_pdb_compat_param_spec
# FIXME: file should not depend on plug-in
workaround_that_file_depends_on_plug_in = \
-u $(SYMPREFIX)plug_in_icc_profile_apply_rgb \
-u $(SYMPREFIX)gimp_image_map_config_get_type
# core, vectors and gegl are on the same architectural layer, prevent
# the linker from panicing
calm_down_linker = \
-u $(SYMPREFIX)gimp_vectors_undo_get_type \
-u $(SYMPREFIX)gimp_vectors_mod_undo_get_type \
-u $(SYMPREFIX)gimp_vectors_prop_undo_get_type \
-u $(SYMPREFIX)gimp_curve_map_pixels
AM_LDFLAGS = \
$(munix) \
$(CARBON_LDFLAGS) \
$(calm_down_linker) \
$(workaround_that_core_depends_on_xcf) \
$(workaround_that_core_depends_on_pdb) \
$(workaround_that_plug_in_depends_on_pdb) \
$(workaround_that_file_depends_on_plug_in)
gimpconsoleldadd = \
display/gimpdisplayoptions.o \
display/display-enums.o \
widgets/widgets-enums.o \
xcf/libappxcf.a \
pdb/libappinternal-procs.a \
pdb/libapppdb.a \
plug-in/libappplug-in.a \
vectors/libappvectors.a \
core/libappcore.a \
file/libappfile.a \
text/libapptext.a \
paint/libapppaint.a \
composite/libappcomposite.a \
gegl/libappgegl.a \
config/libappconfig.a \
paint-funcs/libapppaint-funcs.a \
base/libappbase.a \
2005-01-26 03:11:26 +08:00
$(libgimpconfig) \
$(libgimpmath) \
$(libgimpthumb) \
$(libgimpcolor) \
$(libgimpmodule) \
$(libgimpbase) \
$(GIMPICONRC) \
$(GDK_PIXBUF_LIBS) \
$(FREETYPE_LIBS) \
$(FONTCONFIG_LIBS) \
$(PANGOCAIRO_LIBS) \
$(CAIRO_LIBS) \
$(GEGL_LIBS) \
$(GLIB_LIBS) \
$(INTLLIBS) \
$(RT_LIBS)
gimp_2_7_LDFLAGS = $(AM_LDFLAGS) $(win32_ldflags)
gimp_2_7_LDADD = \
gui/libappgui.a \
menus/libappmenus.a \
actions/libappactions.a \
dialogs/libappdialogs.a \
tools/libapptools.a \
display/libappdisplay.a \
widgets/libappwidgets.a \
$(libgimpwidgets) \
$(GTK_LIBS) \
$(DBUS_GLIB_LIBS) \
$(gimpconsoleldadd)
if ENABLE_GIMP_CONSOLE
gimp_console_2_7_SOURCES = $(app_sources)
gimp_console_2_7_CPPFLAGS = \
$(AM_CPPFLAGS) \
-DGIMP_CONSOLE_COMPILATION
gimp_console_2_7_LDADD = \
$(gimpconsoleldadd)
endif
install-exec-hook:
if DEFAULT_BINARY
cd $(DESTDIR)$(bindir) \
&& rm -f gimp$(EXEEXT) \
&& $(LN_S) gimp-$(GIMP_APP_VERSION)$(EXEEXT) gimp$(EXEEXT)
if ENABLE_GIMP_CONSOLE
cd $(DESTDIR)$(bindir) \
&& rm -f gimp-console$(EXEEXT) \
&& $(LN_S) gimp-console-$(GIMP_APP_VERSION)$(EXEEXT) gimp-console$(EXEEXT)
endif
endif
uninstall-local:
if DEFAULT_BINARY
rm -f $(DESTDIR)$(bindir)/gimp$(EXEEXT)
if ENABLE_GIMP_CONSOLE
rm -f $(DESTDIR)$(bindir)/gimp-console$(EXEEXT)
endif
endif
# 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
# 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)
./$< --dump-gimprc-system > gimprc.tmp \
&& 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
./$< --dump-gimprc-manpage > gimprc.tmp \
&& 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
dist-hook: dist-check-gimp-console dist-dump-gimprc
gimprc.o:
$(WINDRES) gimp.rc gimprc.o