1# sources and intermediate files are separated
2
3#AM_CFLAGS = -Wall
4#AM_CFLAGS += -Wundef
5#AM_CFLAGS += -Wstrict-prototypes
6#AM_CFLAGS += -Wno-trigraphs
7#AM_CFLAGS += -g -O3
8#AM_CFLAGS += -O0 -fno-inline -fno-short-enums
9#AM_CFLAGS += -fPIC
10
11AM_CPPFLAGS = -D__packed__=
12AM_CPPFLAGS += -D_ANDROID_
13AM_CPPFLAGS += -U_ENABLE_QC_MSG_LOG_
14#AM_CPPFLAGS += -g -O3
15#AM_CPPFLAGS += -O0 -fno-inline -fno-short-enums
16AM_CPPFLAGS += -I$(top_srcdir)/mm-core/inc/
17AM_CPPFLAGS += -I$(top_srcdir)/mm-core/src/common/
18AM_CPPFLAGS += "-Dstrlcpy=g_strlcpy"
19AM_CPPFLAGS += "-Dstrlcat=g_strlcat"
20
21h_sources  =inc/OMX_Audio.h
22h_sources +=inc/OMX_Component.h
23h_sources +=inc/OMX_ContentPipe.h
24h_sources +=inc/OMX_Core.h
25h_sources +=inc/OMX_Image.h
26h_sources +=inc/OMX_Index.h
27h_sources +=inc/OMX_IVCommon.h
28h_sources +=inc/OMX_Other.h
29h_sources +=inc/OMX_QCOMExtns.h
30h_sources +=inc/OMX_Types.h
31h_sources +=inc/OMX_Video.h
32h_sources +=inc/qc_omx_common.h
33h_sources +=inc/qc_omx_component.h
34h_sources +=inc/qc_omx_msg.h
35h_sources +=inc/QOMX_AudioExtensions.h
36h_sources +=inc/QOMX_AudioIndexExtensions.h
37h_sources +=inc/OMX_CoreExt.h
38h_sources +=inc/QOMX_CoreExtensions.h
39h_sources +=inc/QOMX_FileFormatExtensions.h
40h_sources +=inc/QOMX_IVCommonExtensions.h
41h_sources +=inc/QOMX_SourceExtensions.h
42h_sources +=inc/QOMX_VideoExtensions.h
43h_sources +=inc/OMX_IndexExt.h
44h_sources +=inc/QOMX_StreamingExtensions.h
45
46c_sources  =src/common/omx_core_cmp.cpp
47c_sources +=src/common/qc_omx_core.c
48
49if TARGET_MSM8953
50TARGET_REGISTRY = msm8953
51endif
52
53if TARGET_MSM8996
54TARGET_REGISTRY = msm8996
55endif
56
57if TARGET_MSM8909
58TARGET_REGISTRY = 8909
59endif
60
61if TARGET_MSM8937
62TARGET_REGISTRY = 8937
63endif
64
65c_sources +=src/${TARGET_REGISTRY}/registry_table_android.c
66
67lib_LTLIBRARIES = libOmxCore.la
68include_HEADERS = $(h_sources)
69libOmxCore_la_SOURCES = $(c_sources)
70libOmxCore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
71libOmxCore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
72libOmxCore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils
73libOmxCore_la_LDFLAGS += -shared -avoid-version
74
75lib_LTLIBRARIES += libmm-omxcore.la
76
77c_sources  =src/common/omx_core_cmp.cpp
78c_sources +=src/common/qc_omx_core.c
79c_sources +=src/${TARGET_REGISTRY}/registry_table.c
80
81include_HEADERS = $(h_sources)
82libmm_omxcore_la_SOURCES = $(c_sources)
83libmm_omxcore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
84libmm_omxcore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC
85libmm_omxcore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils
86libmm_omxcore_la_LDFLAGS += -shared -avoid-version
87
88