summaryrefslogtreecommitdiffstats
path: root/libgimpmath/Makefile.am
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:30:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:30:19 +0000
commit5c1676dfe6d2f3c837a5e074117b45613fd29a72 (patch)
treecbffb45144febf451e54061db2b21395faf94bfe /libgimpmath/Makefile.am
parentInitial commit. (diff)
downloadgimp-5c1676dfe6d2f3c837a5e074117b45613fd29a72.tar.xz
gimp-5c1676dfe6d2f3c837a5e074117b45613fd29a72.zip
Adding upstream version 2.10.34.upstream/2.10.34upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libgimpmath/Makefile.am')
-rw-r--r--libgimpmath/Makefile.am93
1 files changed, 93 insertions, 0 deletions
diff --git a/libgimpmath/Makefile.am b/libgimpmath/Makefile.am
new file mode 100644
index 0000000..be67ba8
--- /dev/null
+++ b/libgimpmath/Makefile.am
@@ -0,0 +1,93 @@
+## Process this file with automake to produce Makefile.in
+
+libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
+
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+
+if PLATFORM_WIN32
+else
+libm = -lm
+endif
+
+if OS_WIN32
+gimpmath_def = gimpmath.def
+libgimpmath_export_symbols = -export-symbols $(srcdir)/gimpmath.def
+
+install-libtool-import-lib:
+ $(INSTALL) .libs/libgimpmath-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
+ $(INSTALL) $(srcdir)/gimpmath.def $(DESTDIR)$(libdir)
+
+uninstall-libtool-import-lib:
+ -rm $(DESTDIR)$(libdir)/libgimpmath-$(GIMP_API_VERSION).dll.a
+ -rm $(DESTDIR)$(libdir)/gimpmath.def
+else
+install-libtool-import-lib:
+uninstall-libtool-import-lib:
+endif
+
+if MS_LIB_AVAILABLE
+noinst_DATA = gimpmath-$(GIMP_API_VERSION).lib
+
+install-ms-lib:
+ $(INSTALL) gimpmath-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
+
+uninstall-ms-lib:
+ -rm $(DESTDIR)$(libdir)/gimpmath-$(GIMP_API_VERSION).lib
+
+gimpmath-@GIMP_API_VERSION@.lib: gimpmath.def
+ lib -name:libgimpmath-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpmath.def -out:$@
+
+else
+install-ms-lib:
+uninstall-ms-lib:
+endif
+
+libgimpmathincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpmath
+
+AM_CPPFLAGS = \
+ -DG_LOG_DOMAIN=\"LibGimpMath\" \
+ -DGIMP_MATH_COMPILATION \
+ -I$(top_srcdir) \
+ $(GLIB_CFLAGS) \
+ -I$(includedir)
+
+EXTRA_DIST = \
+ gimpmath.def
+
+lib_LTLIBRARIES = libgimpmath-@GIMP_API_VERSION@.la
+
+libgimpmath_@GIMP_API_VERSION@_la_SOURCES = \
+ gimpmath.h \
+ gimpmathtypes.h \
+ gimpmatrix.c \
+ gimpmatrix.h \
+ gimpmd5.c \
+ gimpmd5.h \
+ gimpvector.c \
+ gimpvector.h
+
+libgimpmathinclude_HEADERS = \
+ gimpmath.h \
+ gimpmathtypes.h \
+ gimpmatrix.h \
+ gimpmd5.h \
+ gimpvector.h
+
+libgimpmath_@GIMP_API_VERSION@_la_LDFLAGS = \
+ -version-info $(LT_VERSION_INFO) \
+ $(no_undefined) \
+ $(libgimpmath_export_symbols)
+
+EXTRA_libgimpmath_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpmath_def)
+
+libgimpmath_@GIMP_API_VERSION@_la_LIBADD = \
+ $(libgimpbase) \
+ $(GLIB_LIBS) \
+ $(libm)
+
+
+install-data-local: install-ms-lib install-libtool-import-lib
+
+uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib