1# This file is autogenerated, do not edit it directly, edit build/mktargets.py 2# instead. To regenerate files, run build/mktargets.sh. 3 4ENCODER_SRCDIR=codec/encoder 5ENCODER_CPP_SRCS=\ 6 $(ENCODER_SRCDIR)/core/src/au_set.cpp\ 7 $(ENCODER_SRCDIR)/core/src/deblocking.cpp\ 8 $(ENCODER_SRCDIR)/core/src/decode_mb_aux.cpp\ 9 $(ENCODER_SRCDIR)/core/src/encode_mb_aux.cpp\ 10 $(ENCODER_SRCDIR)/core/src/encoder.cpp\ 11 $(ENCODER_SRCDIR)/core/src/encoder_data_tables.cpp\ 12 $(ENCODER_SRCDIR)/core/src/encoder_ext.cpp\ 13 $(ENCODER_SRCDIR)/core/src/get_intra_predictor.cpp\ 14 $(ENCODER_SRCDIR)/core/src/md.cpp\ 15 $(ENCODER_SRCDIR)/core/src/mv_pred.cpp\ 16 $(ENCODER_SRCDIR)/core/src/nal_encap.cpp\ 17 $(ENCODER_SRCDIR)/core/src/paraset_strategy.cpp\ 18 $(ENCODER_SRCDIR)/core/src/picture_handle.cpp\ 19 $(ENCODER_SRCDIR)/core/src/ratectl.cpp\ 20 $(ENCODER_SRCDIR)/core/src/ref_list_mgr_svc.cpp\ 21 $(ENCODER_SRCDIR)/core/src/sample.cpp\ 22 $(ENCODER_SRCDIR)/core/src/set_mb_syn_cabac.cpp\ 23 $(ENCODER_SRCDIR)/core/src/set_mb_syn_cavlc.cpp\ 24 $(ENCODER_SRCDIR)/core/src/slice_multi_threading.cpp\ 25 $(ENCODER_SRCDIR)/core/src/svc_base_layer_md.cpp\ 26 $(ENCODER_SRCDIR)/core/src/svc_enc_slice_segment.cpp\ 27 $(ENCODER_SRCDIR)/core/src/svc_encode_mb.cpp\ 28 $(ENCODER_SRCDIR)/core/src/svc_encode_slice.cpp\ 29 $(ENCODER_SRCDIR)/core/src/svc_mode_decision.cpp\ 30 $(ENCODER_SRCDIR)/core/src/svc_motion_estimate.cpp\ 31 $(ENCODER_SRCDIR)/core/src/svc_set_mb_syn_cabac.cpp\ 32 $(ENCODER_SRCDIR)/core/src/svc_set_mb_syn_cavlc.cpp\ 33 $(ENCODER_SRCDIR)/core/src/wels_preprocess.cpp\ 34 $(ENCODER_SRCDIR)/core/src/wels_task_base.cpp\ 35 $(ENCODER_SRCDIR)/core/src/wels_task_encoder.cpp\ 36 $(ENCODER_SRCDIR)/core/src/wels_task_management.cpp\ 37 $(ENCODER_SRCDIR)/plus/src/welsEncoderExt.cpp\ 38 39ENCODER_OBJS += $(ENCODER_CPP_SRCS:.cpp=.$(OBJ)) 40 41ENCODER_ASM_SRCS=\ 42 $(ENCODER_SRCDIR)/core/x86/coeff.asm\ 43 $(ENCODER_SRCDIR)/core/x86/dct.asm\ 44 $(ENCODER_SRCDIR)/core/x86/intra_pred.asm\ 45 $(ENCODER_SRCDIR)/core/x86/matrix_transpose.asm\ 46 $(ENCODER_SRCDIR)/core/x86/memzero.asm\ 47 $(ENCODER_SRCDIR)/core/x86/quant.asm\ 48 $(ENCODER_SRCDIR)/core/x86/sample_sc.asm\ 49 $(ENCODER_SRCDIR)/core/x86/score.asm\ 50 51ENCODER_OBJSASM += $(ENCODER_ASM_SRCS:.asm=.$(OBJ)) 52ifeq ($(ASM_ARCH), x86) 53ENCODER_OBJS += $(ENCODER_OBJSASM) 54endif 55OBJS += $(ENCODER_OBJSASM) 56 57ENCODER_ASM_ARM_SRCS=\ 58 $(ENCODER_SRCDIR)/core/arm/intra_pred_neon.S\ 59 $(ENCODER_SRCDIR)/core/arm/intra_pred_sad_3_opt_neon.S\ 60 $(ENCODER_SRCDIR)/core/arm/memory_neon.S\ 61 $(ENCODER_SRCDIR)/core/arm/pixel_neon.S\ 62 $(ENCODER_SRCDIR)/core/arm/reconstruct_neon.S\ 63 $(ENCODER_SRCDIR)/core/arm/svc_motion_estimation.S\ 64 65ENCODER_OBJSARM += $(ENCODER_ASM_ARM_SRCS:.S=.$(OBJ)) 66ifeq ($(ASM_ARCH), arm) 67ENCODER_OBJS += $(ENCODER_OBJSARM) 68endif 69OBJS += $(ENCODER_OBJSARM) 70 71ENCODER_ASM_ARM64_SRCS=\ 72 $(ENCODER_SRCDIR)/core/arm64/intra_pred_aarch64_neon.S\ 73 $(ENCODER_SRCDIR)/core/arm64/intra_pred_sad_3_opt_aarch64_neon.S\ 74 $(ENCODER_SRCDIR)/core/arm64/memory_aarch64_neon.S\ 75 $(ENCODER_SRCDIR)/core/arm64/pixel_aarch64_neon.S\ 76 $(ENCODER_SRCDIR)/core/arm64/reconstruct_aarch64_neon.S\ 77 $(ENCODER_SRCDIR)/core/arm64/svc_motion_estimation_aarch64_neon.S\ 78 79ENCODER_OBJSARM64 += $(ENCODER_ASM_ARM64_SRCS:.S=.$(OBJ)) 80ifeq ($(ASM_ARCH), arm64) 81ENCODER_OBJS += $(ENCODER_OBJSARM64) 82endif 83OBJS += $(ENCODER_OBJSARM64) 84 85ENCODER_ASM_MIPS_MMI_SRCS=\ 86 $(ENCODER_SRCDIR)/core/mips/dct_mmi.c\ 87 $(ENCODER_SRCDIR)/core/mips/quant_mmi.c\ 88 $(ENCODER_SRCDIR)/core/mips/score_mmi.c\ 89 90ENCODER_OBJSMIPS_MMI += $(ENCODER_ASM_MIPS_MMI_SRCS:.c=.$(OBJ)) 91 92ENCODER_ASM_MIPS_MSA_SRCS=\ 93 94ENCODER_OBJSMIPS_MSA += $(ENCODER_ASM_MIPS_MSA_SRCS:.c=.$(OBJ)) 95ifeq ($(ASM_ARCH), mips) 96ifeq ($(ENABLE_MMI), Yes) 97ENCODER_OBJS += $(ENCODER_OBJSMIPS_MMI) 98endif 99ifeq ($(ENABLE_MSA), Yes) 100ENCODER_OBJS += $(ENCODER_OBJSMIPS_MSA) 101endif 102endif 103OBJS += $(ENCODER_OBJSMIPS_MMI) 104OBJS += $(ENCODER_OBJSMIPS_MSA) 105 106ENCODER_ASM_LOONGARCH_LSX_SRCS=\ 107 $(ENCODER_SRCDIR)/core/loongarch/quant_lsx.c\ 108 109ENCODER_OBJSLOONGARCH_LSX += $(ENCODER_ASM_LOONGARCH_LSX_SRCS:.c=.$(OBJ)) 110 111ENCODER_ASM_LOONGARCH_LASX_SRCS=\ 112 113ENCODER_OBJSLOONGARCH_LASX += $(ENCODER_ASM_LOONGARCH_LASX_SRCS:.c=.$(OBJ)) 114ifeq ($(ASM_ARCH), loongarch) 115ifeq ($(ENABLE_LSX), Yes) 116ENCODER_OBJS += $(ENCODER_OBJSLOONGARCH_LSX) 117endif 118ifeq ($(ENABLE_LASX), Yes) 119ENCODER_OBJS += $(ENCODER_OBJSLOONGARCH_LASX) 120endif 121endif 122 123OBJS += $(ENCODER_OBJS) 124 125$(ENCODER_SRCDIR)/%.$(OBJ): $(ENCODER_SRCDIR)/%.cpp 126 $(QUIET_CXX)$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(ENCODER_CFLAGS) $(ENCODER_INCLUDES) -c $(CXX_O) $< 127 128$(ENCODER_SRCDIR)/%.$(OBJ): $(ENCODER_SRCDIR)/%.c 129 $(QUIET_CC)$(CC) $(CFLAGS) $(INCLUDES) $(ENCODER_CFLAGS) $(ENCODER_INCLUDES) -c $(CXX_O) $< 130 131$(ENCODER_SRCDIR)/%.$(OBJ): $(ENCODER_SRCDIR)/%.asm 132 $(QUIET_ASM)$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(ENCODER_ASMFLAGS) $(ENCODER_ASM_INCLUDES) -o $@ $< 133 134$(ENCODER_SRCDIR)/%.$(OBJ): $(ENCODER_SRCDIR)/%.S 135 $(QUIET_CCAS)$(CCAS) $(CCASFLAGS) $(ASMFLAGS) $(INCLUDES) $(ENCODER_CFLAGS) $(ENCODER_INCLUDES) -c -o $@ $< 136 137$(LIBPREFIX)encoder.$(LIBSUFFIX): $(ENCODER_OBJS) 138 $(QUIET)rm -f $@ 139 $(QUIET_AR)$(AR) $(AR_OPTS) $+ 140 141libraries: $(LIBPREFIX)encoder.$(LIBSUFFIX) 142LIBRARIES += $(LIBPREFIX)encoder.$(LIBSUFFIX) 143