Makefile.am 2.03 KB
Newer Older
1 2
## Process this file with automake to produce Makefile.in

3
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
4

5 6 7 8 9 10 11 12 13 14 15
if PLATFORM_WIN32
no_undefined = -no-undefined
endif

if PLATFORM_WIN32
else
libm = -lm
endif

if OS_WIN32
gimpmath_def = gimpmath.def
16
libgimpmath_export_symbols = -export-symbols $(srcdir)/gimpmath.def
17 18

install-libtool-import-lib:
19
	$(INSTALL) .libs/libgimpmath-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
20
	$(INSTALL) $(srcdir)/gimpmath.def $(DESTDIR)$(libdir)
21 22

uninstall-libtool-import-lib:
23
	-rm $(DESTDIR)$(libdir)/libgimpmath-$(GIMP_API_VERSION).dll.a
24
	-rm $(DESTDIR)$(libdir)/gimpmath.def
25 26 27 28 29 30
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif

if MS_LIB_AVAILABLE
31
noinst_DATA = gimpmath-$(GIMP_API_VERSION).lib
32 33

install-ms-lib:
34
	$(INSTALL) gimpmath-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
35 36

uninstall-ms-lib:
37
	-rm $(DESTDIR)$(libdir)/gimpmath-$(GIMP_API_VERSION).lib
38

39 40
gimpmath-@GIMP_API_VERSION@.lib: gimpmath.def
	lib -name:libgimpmath-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpmath.def -out:$@
41 42 43 44 45 46

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

47
libgimpmathincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpmath
48

49
AM_CPPFLAGS = \
50
	-DG_LOG_DOMAIN=\"LibGimpMath\"	\
51 52 53
	-DGIMP_MATH_COMPILATION		\
	-I$(top_srcdir)			\
	$(GLIB_CFLAGS)			\
54
	-I$(includedir)
55 56 57 58

EXTRA_DIST = \
	gimpmath.def

59
lib_LTLIBRARIES = libgimpmath-@GIMP_API_VERSION@.la
60

61
libgimpmath_@GIMP_API_VERSION@_la_SOURCES = \
62 63 64 65 66
	gimpmath.h	\
	gimpmathtypes.h	\
	gimpmatrix.c	\
	gimpmatrix.h	\
	gimpvector.c	\
67
	gimpvector.h
68

69
libgimpmathinclude_HEADERS = \
70 71 72
	gimpmath.h	\
	gimpmathtypes.h	\
	gimpmatrix.h	\
73
	gimpvector.h
74

75
libgimpmath_@GIMP_API_VERSION@_la_LDFLAGS = \
76 77
	-version-info $(LT_VERSION_INFO)	\
	$(no_undefined)				\
78
	$(libgimpmath_export_symbols)
79

80
EXTRA_libgimpmath_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpmath_def)
81

82
libgimpmath_@GIMP_API_VERSION@_la_LIBADD = \
83
	$(libgimpbase)	\
84 85
	$(GLIB_LIBS)	\
	$(libm)
86 87


88 89 90
install-data-local: install-ms-lib install-libtool-import-lib

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