fix dependencies for recursive make
[platform/upstream/libexif.git] / libexif / Makefile.am
1 SUBDIRS = canon olympus pentax
2
3 lib_LTLIBRARIES = libexif.la
4
5 # The -no-undefined makes it possible to build DLLs for Windows,
6 # or shared libraries for Tru64 or AIX (according to the autobook
7 # chapter on "Portable Library Design"). It doesn't seem to hurt
8 # elsewhere, so we can leave it in.
9 libexif_la_LDFLAGS = -no-undefined -version-info @LIBEXIF_VERSION_INFO@
10 libexif_la_SOURCES =            \
11         exif-byte-order.c       \
12         exif-content.c          \
13         exif-data.c             \
14         exif-entry.c            \
15         exif-format.c           \
16         exif-ifd.c              \
17         exif-loader.c           \
18         exif-log.c              \
19         exif-mem.c              \
20         exif-mnote-data.c       \
21         exif-mnote-data-priv.h  \
22         exif-tag.c              \
23         exif-utils.c            \
24         i18n.h
25 libexif_la_LIBADD =                     \
26         $(MATHLIBS)                     \
27         $(LTLIBINTL)                    \
28         canon/libmnote-canon.la         \
29         olympus/libmnote-olympus.la     \
30         pentax/libmnote-pentax.la
31
32 canon/libmnote-canon.la:
33         cd canon && $(MAKE) libmnote-canon.la
34         
35 olympus/libmnote-olympus.la:
36         cd olympus && $(MAKE) libmnote-olympus.la
37         
38 pentax/libmnote-pentax.la:
39         cd pentax && $(MAKE) libmnote-pentax.la
40
41 libexifincludedir = $(includedir)/libexif
42 libexifinclude_HEADERS =        \
43         exif-byte-order.h       \
44         exif-content.h          \
45         exif-data.h             \
46         exif-entry.h            \
47         exif-format.h           \
48         exif-ifd.h              \
49         exif-loader.h           \
50         exif-log.h              \
51         exif-mem.h              \
52         exif-mnote-data.h       \
53         exif-tag.h              \
54         exif-utils.h            \
55         _stdint.h
56
57 pkgconfigdir = $(libdir)/pkgconfig
58 pkgconfig_DATA = libexif.pc
59 EXTRA_DIST = libexif.pc.in
60
61 DISTCLEANFILES = _stdint.h
62