summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 2ecc9df108d0928395442b58e4ca7dba3b6b79df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ACLOCAL_AMFLAGS=-I m4

SUBDIRS = utils \
	  codecs \
	  formats \
	  . \
	  tests 

lib_LTLIBRARIES = libmmffile.la

noinst_HEADERS = include/mm_file_codecs.h \
		 include/mm_file_formats.h \
		 include/mm_file_format_frame.h

libmmffile_la_SOURCES = mm_file.c 

includelibmmffiledir = $(includedir)/mmf
includelibmmffile_HEADERS = include/mm_file.h 
			
libmmffile_la_CFLAGS = -I$(srcdir)/include \
		       $(MMCOMMON_CFLAGS) \
		       -I$(srcdir)/utils/include \
		       -D_LARGEFILE64_SOURCE \
		       -D_FILE_OFFSET_BITS=64 

if USE_TESTMODE
libmmffile_la_CFLAGS += -D__MMFILE_TEST_MODE__
endif

libmmffile_la_DEPENDENCIES = $(top_builddir)/utils/libmmfile_utils.la 
		   
		  
libmmffile_la_LIBADD = $(top_builddir)/utils/libmmfile_utils.la \
			-ldl \
		       $(MMCOMMON_LIBS)

if USE_DYN
libmmffile_la_CFLAGS += -D__MMFILE_DYN_LOADING__
else
libmmffile_la_LIBADD += $(top_builddir)/codecs/ffmpeg/libmmfile_codecs.la \
						$(top_builddir)/formats/ffmpeg/libmmfile_formats.la
endif

libmmffile_la_CFLAGS += $(DLOG_CFLAGS)
libmmffile_la_LIBADD += $(DLOG_LIBS)

pcfiles = mm-fileinfo.pc
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(pcfiles)
EXTRA_DIST = $(pcfiles)