+EXTRA_DIST =
+
SUBDIRS = canon olympus pentax
-INCLUDES = \
- -DLIBEXIF_LOCALEDIR=\""$(datadir)/locale"\" \
- -I$(top_srcdir)/libexif \
- -I$(top_srcdir)/libjpeg \
- -I$(top_srcdir)/intl \
- -I$(top_srcdir)
lib_LTLIBRARIES = libexif.la
-libexif_la_LDFLAGS = -version-info @LIBEXIF_VERSION_INFO@
+# The -no-undefined makes it possible to build DLLs for Windows,
+# 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 = \
+ -export-symbols $(srcdir)/libexif.sym \
+ -no-undefined -version-info @LIBEXIF_VERSION_INFO@
libexif_la_SOURCES = \
exif-byte-order.c \
exif-content.c \
exif-format.c \
exif-ifd.c \
exif-loader.c \
+ exif-log.c \
+ exif-mem.c \
exif-mnote-data.c \
exif-mnote-data-priv.h \
exif-tag.c \
exif-utils.c \
i18n.h
-libexif_la_LIBADD = -lm \
- canon/libmnote-canon.a \
- olympus/libmnote-olympus.a \
- olympus/libmnote-pentax.a
+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-loader.h \
+ exif-log.h \
+ exif-mem.h \
exif-mnote-data.h \
- exif-result.h \
exif-tag.h \
- exif-utils.h
+ exif-utils.h \
+ _stdint.h
+
+EXTRA_DIST += exif-system.h
+
+EXTRA_DIST += libexif.sym
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libexif.pc
-EXTRA_DIST = libexif.pc.in
+DISTCLEANFILES = _stdint.h