## Process this file with automake to produce Makefile.in

if PLATFORM_WIN32
no_undefined = -no-undefined
conditional_libgimpbase_la = ../libgimpbase/libgimpbase-1.3.la
conditional_libgimpcolor_la = ../libgimpcolor/libgimpcolor-1.3.la
conditional_libgimpwidgets_la = ../libgimpwidgets/libgimpwidgets-1.3.la
conditional_libgimp_la = libgimp-1.3.la
endif

if OS_WIN32
gimp_def = gimp.def
gimpui_def = gimpui.def
libgimp_export_symbols = -export-symbols gimp.def
libgimpui_export_symbols = -export-symbols gimpui.def

install-libtool-import-lib:
	$(INSTALL) .libs/libgimp-1.3.dll.a $(DESTDIR)$(libdir)
	$(INSTALL) .libs/libgimpui-1.3.dll.a $(DESTDIR)$(libdir)

uninstall-libtool-import-lib:
	-rm $(DESTDIR)$(libdir)/libgimp-1.3.dll.a
	-rm $(DESTDIR)$(libdir)/libgimpui-1.3.dll.a
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif

if MS_LIB_AVAILABLE
noinst_DATA = gimp-1.3.lib gimpui-1.3.lib 

install-ms-lib:
	$(INSTALL) gimp-1.3.lib $(DESTDIR)$(libdir)
	$(INSTALL) gimpui-1.3.lib $(DESTDIR)$(libdir)

uninstall-ms-lib:
	-rm $(DESTDIR)$(libdir)/gimp-1.3.lib
	-rm $(DESTDIR)$(libdir)/gimpui-1.3.lib

gimp-1.3.lib: gimp.def
	lib -name:libgimp-1.3-@LT_CURRENT_MINUS_AGE@.dll -def:gimp.def -out:$@

gimpui-1.3.lib: gimpui.def
	lib -name:libgimpui-1.3-@LT_CURRENT_MINUS_AGE@.dll -def:gimpui.def -out:$@

else
install-ms-lib:
uninstall-ms-lib:
endif

gimpincludedir = $(includedir)/gimp-$(LT_RELEASE)/libgimp

AM_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"LibGimp\"	\
	@GIMP_THREAD_FLAGS@

INCLUDES = \
	-I$(top_srcdir)	\
	$(GTK_CFLAGS)	\
	-I$(includedir)

EXTRA_DIST = \
	makefile.msc		\
	gimp.def		\
	gimpui.def

lib_LTLIBRARIES = libgimp-1.3.la libgimpui-1.3.la

PDB_WRAPPERS_C = \
	gimpbrushes_pdb.c		\
	gimpbrushselect_pdb.c		\
	gimpchannel_pdb.c		\
	gimpcolor_pdb.c			\
	gimpconvert_pdb.c		\
	gimpdisplay_pdb.c		\
	gimpdrawable_pdb.c		\
	gimpedit_pdb.c			\
	gimpfileops_pdb.c		\
	gimpfloatingsel_pdb.c		\
	gimpgimprc_pdb.c		\
	gimpgradients_pdb.c		\
	gimpgradientselect_pdb.c	\
	gimpguides_pdb.c		\
	gimphelp_pdb.c			\
	gimpimage_pdb.c			\
	gimplayer_pdb.c			\
	gimpmessage_pdb.c		\
	gimpmisc_pdb.c			\
	gimpmisctools_pdb.c		\
	gimppainttools_pdb.c		\
	gimppalette_pdb.c		\
	gimppalettes_pdb.c		\
	gimppaletteselect_pdb.c		\
	gimpparasite_pdb.c		\
	gimppaths_pdb.c			\
	gimppatterns_pdb.c		\
	gimppatternselect_pdb.c		\
	gimpplugin_pdb.c		\
	gimpproceduraldb_pdb.c		\
	gimpselection_pdb.c		\
	gimpselectiontools_pdb.c	\
	gimptexttool_pdb.c		\
	gimptransformtools_pdb.c	\
	gimpundo_pdb.c			\
	gimpunit_pdb.c

PDB_WRAPPERS_H = \
	gimp_pdb.h			\
	gimpbrushes_pdb.h		\
	gimpbrushselect_pdb.h		\
	gimpchannel_pdb.h		\
	gimpcolor_pdb.h			\
	gimpconvert_pdb.h		\
	gimpdisplay_pdb.h		\
	gimpdrawable_pdb.h		\
	gimpedit_pdb.h			\
	gimpfileops_pdb.h		\
	gimpfloatingsel_pdb.h		\
	gimpgimprc_pdb.h		\
	gimpgradients_pdb.h		\
	gimpgradientselect_pdb.h	\
	gimpguides_pdb.h		\
	gimphelp_pdb.h			\
	gimpimage_pdb.h			\
	gimplayer_pdb.h			\
	gimpmessage_pdb.h		\
	gimpmisc_pdb.h			\
	gimpmisctools_pdb.h		\
	gimppainttools_pdb.h		\
	gimppalette_pdb.h		\
	gimppalettes_pdb.h		\
	gimppaletteselect_pdb.h		\
	gimpparasite_pdb.h		\
	gimppaths_pdb.h			\
	gimppatterns_pdb.h		\
	gimppatternselect_pdb.h		\
	gimpplugin_pdb.h		\
	gimpproceduraldb_pdb.h		\
	gimpselection_pdb.h		\
	gimpselectiontools_pdb.h	\
	gimptexttool_pdb.h		\
	gimptransformtools_pdb.h	\
	gimpundo_pdb.h			\
	gimpunit_pdb.h

libgimp_1_3_la_SOURCES = \
	gimp.c			\
	gimp.h			\
	gimpcompat.h		\
	gimptypes.h		\
	${PDB_WRAPPERS_C}	\
	${PDB_WRAPPERS_H}	\
	gimpchannel.c		\
	gimpchannel.h		\
	gimpdrawable.c		\
	gimpdrawable.h		\
	gimphelp.c		\
	gimpimage.c		\
	gimpimage.h		\
	gimplayer.c		\
	gimplayer.h		\
	gimpmisc.c		\
	gimpmisc.h		\
	gimppixelrgn.c		\
	gimppixelrgn.h		\
	gimpproceduraldb.c	\
	gimpproceduraldb.h	\
	gimpselection.c		\
	gimpselection.h		\
	gimptile.c		\
	gimptile.h		\
	gimpunit.c		\
	gimpintl.h		\
	stdplugins-intl.h	\
	libgimp-intl.h

libgimpui_1_3_la_SOURCES = \
	gimpui.c		\
	gimpui.h		\
	gimpuitypes.h		\
	gimpmenu.c		\
	gimpmenu.h		\
	gimpmiscui.c		\
	gimpmiscui.h		\
	gimpbrushmenu.c		\
	gimpgradientmenu.c 	\
	gimppatternmenu.c	\
	gimpexport.c		\
	gimpexport.h

gimpinclude_HEADERS = \
	gimp.h			\
	gimpcompat.h		\
	gimptypes.h		\
	${PDB_WRAPPERS_H}	\
	gimpchannel.h		\
	gimpdrawable.h		\
	gimpenums.h		\
	gimpimage.h		\
	gimplayer.h		\
	gimpmisc.h		\
	gimppixelrgn.h		\
	gimpproceduraldb.h	\
	gimpselection.h		\
	gimptile.h		\
	gimpexport.h		\
	gimpintl.h		\
	gimpmiscui.h		\
	gimpui.h		\
	gimpuitypes.h		\
	gimpmenu.h

libgimp_1_3_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	$(no_undefined) \
	$(libgimp_export_symbols)

libgimp_1_3_la_LIBADD = $(conditional_libgimpbase_la) $(conditional_libgimpcolor_la) $(GLIB_LIBS) 

libgimp_1_3_la_DEPENDENCIES = $(gimp_def)

libgimpui_1_3_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	$(no_undefined) \
	$(libgimpui_export_symbols)

libgimpui_1_3_la_LIBADD = $(conditional_libgimp_la) $(conditional_libgimpbase_la) $(conditional_libgimpwidgets_la) $(GTK_LIBS)

libgimpui_1_3_la_DEPENDENCIES = $(gimpui_def)

install-data-local: install-ms-lib install-libtool-import-lib

uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
