add exif-system.h header
[platform/upstream/libexif.git] / libexif / Makefile.am
index 4c6728e..d4683df 100644 (file)
@@ -1,13 +1,16 @@
-INCLUDES =                                             \
-       -DLIBEXIF_LOCALEDIR=\""$(datadir)/locale"\"     \
-       -I$(top_srcdir)/libexif                         \
-       -I$(top_srcdir)/libjpeg                         \
-       -I$(top_srcdir)/intl                            \
-       -I$(top_srcdir)
+EXTRA_DIST =
+
+SUBDIRS = canon olympus pentax
 
 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          \
@@ -15,29 +18,55 @@ libexif_la_SOURCES =                \
        exif-entry.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/libexif-canon.la          \
-       fuji/libexif-fuji.la            \
-       hp/libexif-hp.la                \
-       olympus/libexif-olympus.la
+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-note.h             \
-       exif-result.h           \
+       exif-loader.h           \
+       exif-log.h              \
+       exif-mem.h              \
+       exif-mnote-data.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