Merge get_mime_type into get_format
[platform/core/multimedia/libmm-fileinfo.git] / Makefile.am
1 ACLOCAL_AMFLAGS=-I m4
2
3 SUBDIRS = utils \
4           formats \
5           . \
6           tests
7 if IS_TESTS
8 SUBDIRS += unittest
9 endif
10
11 lib_LTLIBRARIES = libmmffile.la
12
13 noinst_HEADERS = include/mm_file_formats.h \
14                  include/mm_file_format_frame.h
15
16 libmmffile_la_SOURCES = mm_file.c
17
18 includelibmmffiledir = $(includedir)/mmf
19 includelibmmffile_HEADERS = include/mm_file.h \
20                                                         include/mm_file_error.h
21
22 libmmffile_la_CFLAGS = -I$(srcdir)/include \
23                        $(MMCOMMON_CFLAGS) \
24                        -I$(srcdir)/utils/include \
25                        -D_LARGEFILE64_SOURCE \
26                        -D_FILE_OFFSET_BITS=64 \
27                -DLIBDIR=\"$(libdir)\"
28
29 if USE_TESTMODE
30 libmmffile_la_CFLAGS += -D__MMFILE_TEST_MODE__
31 endif
32
33 libmmffile_la_DEPENDENCIES = $(top_builddir)/utils/libmmfile_utils.la
34
35
36 libmmffile_la_LIBADD = $(top_builddir)/utils/libmmfile_utils.la \
37                         -ldl \
38                        $(MMCOMMON_LIBS)
39
40 if USE_DYN
41 libmmffile_la_CFLAGS += -D__MMFILE_DYN_LOADING__
42 else
43 libmmffile_la_LIBADD += $(top_builddir)/formats/ffmpeg/libmmfile_formats.la
44 endif
45
46 libmmffile_la_CFLAGS += $(DLOG_CFLAGS)
47 libmmffile_la_LIBADD += $(DLOG_LIBS)
48
49 pcfiles = mm-fileinfo.pc
50 pkgconfigdir = $(libdir)/pkgconfig
51 pkgconfig_DATA = $(pcfiles)
52 EXTRA_DIST = $(pcfiles)