add exif-system.h header
[platform/upstream/libexif.git] / libexif / Makefile.am
index 2b9c41b..d4683df 100644 (file)
@@ -1,14 +1,16 @@
+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          \
@@ -24,16 +26,33 @@ libexif_la_SOURCES =                \
        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              \
@@ -41,14 +60,13 @@ libexifinclude_HEADERS =    \
        exif-log.h              \
        exif-mem.h              \
        exif-mnote-data.h       \
-       exif-result.h           \
        exif-tag.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