+EXTRA_DIST =
+
SUBDIRS = canon olympus pentax
lib_LTLIBRARIES = libexif.la
# or shared libraries for Tru64 or AIX (according to the autobook
# chapter on "Portable Library Design"). It doesn't seem to hurt
# elsewhere, so we can leave it in.
-libexif_la_LDFLAGS = -no-undefined -version-info @LIBEXIF_VERSION_INFO@
+libexif_la_LDFLAGS = \
+ -export-symbols $(srcdir)/libexif.sym \
+ -no-undefined -version-info @LIBEXIF_VERSION_INFO@
libexif_la_SOURCES = \
exif-byte-order.c \
exif-content.c \
exif-tag.c \
exif-utils.c \
i18n.h
-libexif_la_LIBADD = -lm \
+libexif_la_DEPENDENCIES = \
+ $(srcdir)/libexif.sym \
+ canon/libmnote-canon.la \
+ olympus/libmnote-olympus.la \
+ pentax/libmnote-pentax.la
+libexif_la_LIBADD = \
+ $(MATHLIBS) \
$(LTLIBINTL) \
canon/libmnote-canon.la \
olympus/libmnote-olympus.la \
pentax/libmnote-pentax.la
+canon/libmnote-canon.la:
+ cd canon && $(MAKE) libmnote-canon.la
+
+olympus/libmnote-olympus.la:
+ cd olympus && $(MAKE) libmnote-olympus.la
+
+pentax/libmnote-pentax.la:
+ cd pentax && $(MAKE) libmnote-pentax.la
+
libexifincludedir = $(includedir)/libexif
libexifinclude_HEADERS = \
exif-byte-order.h \
exif-content.h \
exif-data.h \
+ exif-data-type.h \
exif-entry.h \
exif-format.h \
exif-ifd.h \
exif-utils.h \
_stdint.h
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libexif.pc
-EXTRA_DIST = libexif.pc.in
+EXTRA_DIST += exif-system.h
+
+EXTRA_DIST += libexif.sym
DISTCLEANFILES = _stdint.h