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