2013-12-11 15:51:26 +01:00
|
|
|
COMMON_SRCDIR=codec/common
|
|
|
|
COMMON_CPP_SRCS=\
|
2014-01-24 13:35:38 +01:00
|
|
|
$(COMMON_SRCDIR)/cpu.cpp\
|
|
|
|
$(COMMON_SRCDIR)/crt_util_safe_x.cpp\
|
|
|
|
$(COMMON_SRCDIR)/deblocking_common.cpp\
|
|
|
|
$(COMMON_SRCDIR)/logging.cpp\
|
|
|
|
$(COMMON_SRCDIR)/WelsThreadLib.cpp\
|
2013-12-11 15:51:26 +01:00
|
|
|
|
|
|
|
COMMON_OBJS += $(COMMON_CPP_SRCS:.cpp=.o)
|
2014-02-12 21:11:05 +01:00
|
|
|
|
2014-02-25 22:52:36 +01:00
|
|
|
ifeq ($(ASM_ARCH), x86)
|
2013-12-11 15:51:26 +01:00
|
|
|
COMMON_ASM_SRCS=\
|
2014-01-24 13:35:38 +01:00
|
|
|
$(COMMON_SRCDIR)/cpuid.asm\
|
|
|
|
$(COMMON_SRCDIR)/deblock.asm\
|
|
|
|
$(COMMON_SRCDIR)/expand_picture.asm\
|
|
|
|
$(COMMON_SRCDIR)/mb_copy.asm\
|
|
|
|
$(COMMON_SRCDIR)/mc_chroma.asm\
|
|
|
|
$(COMMON_SRCDIR)/mc_luma.asm\
|
|
|
|
$(COMMON_SRCDIR)/satd_sad.asm\
|
|
|
|
$(COMMON_SRCDIR)/vaa.asm\
|
2013-12-11 15:51:26 +01:00
|
|
|
|
|
|
|
COMMON_OBJS += $(COMMON_ASM_SRCS:.asm=.o)
|
|
|
|
endif
|
|
|
|
|
2014-02-26 13:31:52 +01:00
|
|
|
ifeq ($(ASM_ARCH), arm)
|
|
|
|
COMMON_ASM_S_SRCS=\
|
|
|
|
$(COMMON_SRCDIR)/deblocking_neon.S\
|
|
|
|
|
|
|
|
COMMON_OBJS += $(COMMON_ASM_S_SRCS:.S=.o)
|
|
|
|
endif
|
|
|
|
|
2013-12-11 15:51:26 +01:00
|
|
|
OBJS += $(COMMON_OBJS)
|
2014-01-09 10:21:35 +01:00
|
|
|
$(COMMON_SRCDIR)/%.o: $(COMMON_SRCDIR)/%.cpp
|
2014-01-30 10:32:51 +01:00
|
|
|
$(QUIET_CXX)$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(COMMON_CFLAGS) $(COMMON_INCLUDES) -c $(CXX_O) $<
|
2013-12-11 15:51:26 +01:00
|
|
|
|
2014-01-09 10:21:35 +01:00
|
|
|
$(COMMON_SRCDIR)/%.o: $(COMMON_SRCDIR)/%.asm
|
2014-01-30 10:32:51 +01:00
|
|
|
$(QUIET_ASM)$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $@ $<
|
2014-01-03 07:49:45 +01:00
|
|
|
|
2014-02-26 13:31:52 +01:00
|
|
|
$(COMMON_SRCDIR)/%.o: $(COMMON_SRCDIR)/%.S
|
|
|
|
$(QUIET_CCAS)$(CCAS) $(CFLAGS) $(ASMFLAGS) $(INCLUDES) $(COMMON_CFLAGS) $(COMMON_INCLUDES) -c -o $@ $<
|
|
|
|
|
2013-12-11 15:51:26 +01:00
|
|
|
$(LIBPREFIX)common.$(LIBSUFFIX): $(COMMON_OBJS)
|
2014-01-30 10:32:51 +01:00
|
|
|
$(QUIET)rm -f $@
|
|
|
|
$(QUIET_AR)$(AR) $(AR_OPTS) $+
|
2013-12-11 15:51:26 +01:00
|
|
|
|
|
|
|
libraries: $(LIBPREFIX)common.$(LIBSUFFIX)
|
|
|
|
LIBRARIES += $(LIBPREFIX)common.$(LIBSUFFIX)
|