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 += -D_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 61c_sources +=src/registry_table_android.c 62 63lib_LTLIBRARIES = libOmxCore.la 64include_HEADERS = $(h_sources) 65libOmxCore_la_SOURCES = $(c_sources) 66libOmxCore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC 67libOmxCore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC 68libOmxCore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils 69libOmxCore_la_LDFLAGS += -shared -avoid-version 70 71 72lib_LTLIBRARIES += libmm-omxcore.la 73 74c1_sources =src/common/omx_core_cmp.cpp 75c1_sources +=src/common/qc_omx_core.c 76c1_sources +=src/registry_table.c 77 78libmm_omxcore_la_SOURCES = $(c1_sources) 79libmm_omxcore_la_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC 80libmm_omxcore_la_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -fPIC 81libmm_omxcore_la_LDFLAGS = -ldl -lrt -lpthread -lglib-2.0 -lcutils 82libmm_omxcore_la_LDFLAGS += -shared -avoid-version 83 84