Makefile.am 3.19 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
gimpcolor_def = gimpcolor.def
16
libgimpcolor_export_symbols = -export-symbols $(srcdir)/gimpcolor.def
17 18

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

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

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

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

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

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

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

47
libgimpcolorincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpcolor
48

49
AM_CPPFLAGS = \
50
	-DG_LOG_DOMAIN=\"LibGimpColor\"	\
51 52 53 54 55
	-DGIMP_COLOR_COMPILATION	\
	-I$(top_srcdir)			\
	$(GEGL_CFLAGS)			\
	$(CAIRO_CFLAGS)			\
	$(GDK_PIXBUF_CFLAGS)		\
56
	$(LCMS_CFLAGS)			\
57
	-I$(includedir)
58 59 60 61

EXTRA_DIST = \
	gimpcolor.def

62
lib_LTLIBRARIES = libgimpcolor-@GIMP_API_VERSION@.la
63

64
libgimpcolor_@GIMP_API_VERSION@_la_SOURCES = \
65 66 67 68 69 70
	gimpcolor.h			\
	gimpcolortypes.h		\
	gimpadaptivesupersample.c	\
	gimpadaptivesupersample.h	\
	gimpbilinear.c			\
	gimpbilinear.h			\
71 72
	gimpcairo.c			\
	gimpcairo.h			\
73 74
	gimpcmyk.c			\
	gimpcmyk.h			\
75 76
	gimpcolormanaged.c		\
	gimpcolormanaged.h		\
77 78
	gimpcolorprofile.c		\
	gimpcolorprofile.h		\
79 80
	gimpcolorspace.c		\
	gimpcolorspace.h		\
81 82
	gimpcolortransform.c		\
	gimpcolortransform.h		\
83 84
	gimphsl.c			\
	gimphsl.h			\
85 86
	gimphsv.c			\
	gimphsv.h			\
87 88
	gimppixbuf.c			\
	gimppixbuf.h			\
89
	gimprgb.c			\
90 91
	gimprgb.h			\
	gimprgb-parse.c
92

93
libgimpcolorinclude_HEADERS = \
94 95 96 97
	gimpcolor.h			\
	gimpcolortypes.h		\
	gimpadaptivesupersample.h	\
	gimpbilinear.h			\
98
	gimpcairo.h			\
99
	gimpcmyk.h			\
100
	gimpcolormanaged.h		\
101
	gimpcolorprofile.h		\
102
	gimpcolorspace.h		\
103
	gimpcolortransform.h		\
104
	gimphsl.h			\
105
	gimphsv.h			\
106
	gimppixbuf.h			\
107
	gimprgb.h
108

109
libgimpcolor_@GIMP_API_VERSION@_la_LDFLAGS = \
110 111
	-version-info $(LT_VERSION_INFO)	\
	$(no_undefined) 			\
112
	$(libgimpcolor_export_symbols)
113

114
EXTRA_libgimpcolor_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpcolor_def)
115

116
libgimpcolor_@GIMP_API_VERSION@_la_LIBADD = \
117
	$(libgimpbase)		\
118 119 120
	$(GEGL_LIBS)		\
	$(CAIRO_LIBS)		\
	$(GDK_PIXBUF_LIBS)	\
121
	$(LCMS_LIBS)		\
122
	$(libm)
123

124 125 126 127 128 129 130 131 132 133

#
# test programs, not to be built by default and never installed
#

TESTS = test-color-parser$(EXEEXT)

EXTRA_PROGRAMS = test-color-parser

test_color_parser_DEPENDENCIES = \
134
	$(libgimpbase)	\
135 136 137
	$(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la

test_color_parser_LDADD = \
138
	$(CAIRO_LIBS) 		\
139 140 141 142 143 144 145
	$(GLIB_LIBS) 		\
	$(test_color_parser_DEPENDENCIES)


CLEANFILES = $(EXTRA_PROGRAMS)


146 147 148
install-data-local: install-ms-lib install-libtool-import-lib

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