forked from openslide/openslide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
95 lines (68 loc) · 3.59 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
EXTRA_DIST = README.txt TODO.txt lgpl-2.1.txt LICENSE.txt CHANGELOG.txt doc/Doxyfile CONTRIBUTING.txt
# doxygen
dist-hook:
cd $(distdir)/doc; doxygen
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = openslide.pc
ACLOCAL_AMFLAGS=-I m4
lib_LTLIBRARIES = src/libopenslide.la
src_libopenslide_la_LIBADD = $(GLIB2_LIBS) $(CAIRO_LIBS) $(LIBXML2_LIBS) \
$(OPENJPEG_LIBS) $(LIBTIFF_LIBS) $(ZLIB_LIBS)
src_libopenslide_la_SOURCES = src/openslide.c \
src/openslide-cache.c src/openslide-tilehelper.c \
src/openslide-hash.c src/openslide-error.c src/openslide-util.c \
src/openslide-ops-jpeg.c \
src/openslide-vendor-hamamatsu.c \
src/openslide-ops-ngr.c \
src/openslide-ops-tiff.c \
src/openslide-vendor-trestle.c src/openslide-vendor-aperio.c \
src/openslide-vendor-mirax.c src/openslide-vendor-generic-tiff.c \
src/openslide-vendor-leica.c \
src/openslide-jdatasrc.c src/openslide-tiffdump.c
if WINDOWS_RESOURCES
src_libopenslide_la_SOURCES += src/openslide-dll.rc
src/openslide-dll.lo: src/openslide-dll.manifest
endif
.rc.lo:
$(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -i "$<" -o "$@"
src_libopenslide_la_CPPFLAGS = -pedantic -D_OPENSLIDE_BUILDING_DLL $(GLIB2_CFLAGS) $(CAIRO_CFLAGS) $(LIBXML2_CFLAGS) $(OPENJPEG_CFLAGS) $(LIBTIFF_CFLAGS) $(ZLIB_CFLAGS) -DG_LOG_DOMAIN=\"Openslide\" -I$(top_srcdir)/src
src_libopenslide_la_LDFLAGS = -version-info 3:1:3 -no-undefined
pkginclude_HEADERS = src/openslide.h src/openslide-features.h
noinst_HEADERS = src/openslide-private.h src/openslide-cache.h src/openslide-tilehelper.h src/openslide-hash.h src/openslide-cairo.h src/openslide-tiffdump.h tools/openslide-tools-common.h
noinst_PROGRAMS = test/test test/try_open test/parallel
noinst_SCRIPTS = test/driver
CLEANFILES = test/driver
EXTRA_DIST += test/driver.in
test_test_CPPFLAGS = $(GLIB2_CFLAGS) $(CAIRO_CFLAGS) $(VALGRIND_CFLAGS) -I$(top_srcdir)/src
# VALGRIND_LIBS not needed
test_test_LDADD = src/libopenslide.la $(GLIB2_LIBS) $(CAIRO_LIBS)
test_try_open_CPPFLAGS = $(GLIB2_CFLAGS) -I$(top_srcdir)/src
test_try_open_LDADD = src/libopenslide.la $(GLIB2_LIBS)
test_parallel_CPPFLAGS = $(GLIB2_CFLAGS) -I$(top_srcdir)/src
test_parallel_LDADD = src/libopenslide.la $(GLIB2_LIBS)
test/driver: test/driver.in Makefile
$(AM_V_GEN)sed -e 's:!!SRCDIR!!:$(abs_srcdir)/test:g' \
-e 's:!!BUILDDIR!!:$(abs_builddir)/test:g' \
-e 's:!!VERSION!!:$(VERSION):g' $< > $@ && \
chmod +x $@
# tools
# show-properties
bin_PROGRAMS = tools/openslide-show-properties
man_MANS = tools/openslide-show-properties.1
tools_openslide_show_properties_SOURCES = tools/openslide-tools-common.c tools/openslide-show-properties.c
tools_openslide_show_properties_CPPFLAGS = -I$(top_srcdir)/src $(GLIB2_CFLAGS)
tools_openslide_show_properties_LDADD = src/libopenslide.la $(GLIB2_LIBS)
# quickhash1sum
bin_PROGRAMS += tools/openslide-quickhash1sum
man_MANS += tools/openslide-quickhash1sum.1
tools_openslide_quickhash1sum_SOURCES = tools/openslide-tools-common.c tools/openslide-quickhash1sum.c
tools_openslide_quickhash1sum_CPPFLAGS = -I$(top_srcdir)/src $(GLIB2_CFLAGS)
tools_openslide_quickhash1sum_LDADD = src/libopenslide.la $(GLIB2_LIBS)
# write-png
bin_PROGRAMS += tools/openslide-write-png
man_MANS += tools/openslide-write-png.1
tools_openslide_write_png_SOURCES = tools/openslide-tools-common.c tools/openslide-write-png.c
tools_openslide_write_png_CPPFLAGS = -I$(top_srcdir)/src $(LIBPNG_CFLAGS) $(GLIB2_CFLAGS)
tools_openslide_write_png_LDADD = src/libopenslide.la $(LIBPNG_LIBS) $(GLIB2_LIBS)
# man pages
EXTRA_DIST += $(man_MANS:=.in)