2013-12-11 15:51:26 +01:00
|
|
|
COMMON_PREFIX=COMMON
|
|
|
|
COMMON_SRCDIR=codec/common
|
|
|
|
COMMON_CPP_SRCS=\
|
|
|
|
$(COMMON_SRCDIR)/./logging.cpp\
|
2014-01-09 02:03:00 +01:00
|
|
|
$(COMMON_SRCDIR)/./deblocking_common.cpp\
|
|
|
|
$(COMMON_SRCDIR)/./cpu.cpp\
|
2013-12-11 15:51:26 +01:00
|
|
|
|
|
|
|
COMMON_OBJS += $(COMMON_CPP_SRCS:.cpp=.o)
|
2013-12-12 03:56:52 +01:00
|
|
|
ifeq ($(USE_ASM), Yes)
|
2013-12-11 15:51:26 +01:00
|
|
|
COMMON_ASM_SRCS=\
|
2014-01-09 02:03:00 +01:00
|
|
|
$(COMMON_SRCDIR)/./deblock.asm\
|
|
|
|
$(COMMON_SRCDIR)/./vaa.asm\
|
2014-01-03 07:49:45 +01:00
|
|
|
$(COMMON_SRCDIR)/./asm_inc.asm\
|
2014-01-09 02:03:00 +01:00
|
|
|
$(COMMON_SRCDIR)/./mc_luma.asm\
|
2014-01-03 07:49:45 +01:00
|
|
|
$(COMMON_SRCDIR)/./cpuid.asm\
|
|
|
|
$(COMMON_SRCDIR)/./mc_chroma.asm\
|
2014-01-09 02:03:00 +01:00
|
|
|
$(COMMON_SRCDIR)/./mb_copy.asm\
|
|
|
|
$(COMMON_SRCDIR)/./expand_picture.asm\
|
2013-12-11 15:51:26 +01:00
|
|
|
|
|
|
|
COMMON_OBJS += $(COMMON_ASM_SRCS:.asm=.o)
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS += $(COMMON_OBJS)
|
2014-01-09 02:03:00 +01:00
|
|
|
$(COMMON_SRCDIR)/./logging.o: $(COMMON_SRCDIR)/./logging.cpp
|
|
|
|
$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(COMMON_CFLAGS) $(COMMON_INCLUDES) -c -o $(COMMON_SRCDIR)/./logging.o $(COMMON_SRCDIR)/./logging.cpp
|
|
|
|
|
|
|
|
$(COMMON_SRCDIR)/./deblocking_common.o: $(COMMON_SRCDIR)/./deblocking_common.cpp
|
|
|
|
$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(COMMON_CFLAGS) $(COMMON_INCLUDES) -c -o $(COMMON_SRCDIR)/./deblocking_common.o $(COMMON_SRCDIR)/./deblocking_common.cpp
|
|
|
|
|
|
|
|
$(COMMON_SRCDIR)/./cpu.o: $(COMMON_SRCDIR)/./cpu.cpp
|
|
|
|
$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(COMMON_CFLAGS) $(COMMON_INCLUDES) -c -o $(COMMON_SRCDIR)/./cpu.o $(COMMON_SRCDIR)/./cpu.cpp
|
|
|
|
|
|
|
|
$(COMMON_SRCDIR)/./deblock.o: $(COMMON_SRCDIR)/./deblock.asm
|
|
|
|
$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $(COMMON_SRCDIR)/./deblock.o $(COMMON_SRCDIR)/./deblock.asm
|
|
|
|
|
|
|
|
$(COMMON_SRCDIR)/./vaa.o: $(COMMON_SRCDIR)/./vaa.asm
|
|
|
|
$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $(COMMON_SRCDIR)/./vaa.o $(COMMON_SRCDIR)/./vaa.asm
|
|
|
|
|
|
|
|
$(COMMON_SRCDIR)/./asm_inc.o: $(COMMON_SRCDIR)/./asm_inc.asm
|
|
|
|
$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $(COMMON_SRCDIR)/./asm_inc.o $(COMMON_SRCDIR)/./asm_inc.asm
|
|
|
|
|
|
|
|
$(COMMON_SRCDIR)/./mc_luma.o: $(COMMON_SRCDIR)/./mc_luma.asm
|
|
|
|
$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $(COMMON_SRCDIR)/./mc_luma.o $(COMMON_SRCDIR)/./mc_luma.asm
|
|
|
|
|
|
|
|
$(COMMON_SRCDIR)/./cpuid.o: $(COMMON_SRCDIR)/./cpuid.asm
|
|
|
|
$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $(COMMON_SRCDIR)/./cpuid.o $(COMMON_SRCDIR)/./cpuid.asm
|
|
|
|
|
|
|
|
$(COMMON_SRCDIR)/./mc_chroma.o: $(COMMON_SRCDIR)/./mc_chroma.asm
|
|
|
|
$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $(COMMON_SRCDIR)/./mc_chroma.o $(COMMON_SRCDIR)/./mc_chroma.asm
|
|
|
|
|
|
|
|
$(COMMON_SRCDIR)/./mb_copy.o: $(COMMON_SRCDIR)/./mb_copy.asm
|
|
|
|
$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $(COMMON_SRCDIR)/./mb_copy.o $(COMMON_SRCDIR)/./mb_copy.asm
|
2013-12-11 15:51:26 +01:00
|
|
|
|
2014-01-09 02:03:00 +01:00
|
|
|
$(COMMON_SRCDIR)/./expand_picture.o: $(COMMON_SRCDIR)/./expand_picture.asm
|
|
|
|
$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $(COMMON_SRCDIR)/./expand_picture.o $(COMMON_SRCDIR)/./expand_picture.asm
|
2014-01-03 07:49:45 +01:00
|
|
|
|
2013-12-11 15:51:26 +01:00
|
|
|
$(LIBPREFIX)common.$(LIBSUFFIX): $(COMMON_OBJS)
|
|
|
|
rm -f $(LIBPREFIX)common.$(LIBSUFFIX)
|
2013-12-17 11:29:21 +01:00
|
|
|
$(AR) cr $@ $(COMMON_OBJS)
|
2013-12-11 15:51:26 +01:00
|
|
|
|
|
|
|
libraries: $(LIBPREFIX)common.$(LIBSUFFIX)
|
|
|
|
LIBRARIES += $(LIBPREFIX)common.$(LIBSUFFIX)
|