• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is autogenerated, do not edit it directly, edit build/mktargets.py
2# instead. To regenerate files, run build/mktargets.sh.
3
4COMMON_SRCDIR=codec/common
5COMMON_CPP_SRCS=\
6	$(COMMON_SRCDIR)/src/common_tables.cpp\
7	$(COMMON_SRCDIR)/src/copy_mb.cpp\
8	$(COMMON_SRCDIR)/src/cpu.cpp\
9	$(COMMON_SRCDIR)/src/crt_util_safe_x.cpp\
10	$(COMMON_SRCDIR)/src/deblocking_common.cpp\
11	$(COMMON_SRCDIR)/src/expand_pic.cpp\
12	$(COMMON_SRCDIR)/src/intra_pred_common.cpp\
13	$(COMMON_SRCDIR)/src/mc.cpp\
14	$(COMMON_SRCDIR)/src/memory_align.cpp\
15	$(COMMON_SRCDIR)/src/sad_common.cpp\
16	$(COMMON_SRCDIR)/src/utils.cpp\
17	$(COMMON_SRCDIR)/src/welsCodecTrace.cpp\
18	$(COMMON_SRCDIR)/src/WelsTaskThread.cpp\
19	$(COMMON_SRCDIR)/src/WelsThread.cpp\
20	$(COMMON_SRCDIR)/src/WelsThreadLib.cpp\
21	$(COMMON_SRCDIR)/src/WelsThreadPool.cpp\
22
23COMMON_OBJS += $(COMMON_CPP_SRCS:.cpp=.$(OBJ))
24
25COMMON_ASM_SRCS=\
26	$(COMMON_SRCDIR)/x86/cpuid.asm\
27	$(COMMON_SRCDIR)/x86/dct.asm\
28	$(COMMON_SRCDIR)/x86/deblock.asm\
29	$(COMMON_SRCDIR)/x86/expand_picture.asm\
30	$(COMMON_SRCDIR)/x86/intra_pred_com.asm\
31	$(COMMON_SRCDIR)/x86/mb_copy.asm\
32	$(COMMON_SRCDIR)/x86/mc_chroma.asm\
33	$(COMMON_SRCDIR)/x86/mc_luma.asm\
34	$(COMMON_SRCDIR)/x86/satd_sad.asm\
35	$(COMMON_SRCDIR)/x86/vaa.asm\
36
37COMMON_OBJSASM += $(COMMON_ASM_SRCS:.asm=.$(OBJ))
38ifeq ($(ASM_ARCH), x86)
39COMMON_OBJS += $(COMMON_OBJSASM)
40endif
41OBJS += $(COMMON_OBJSASM)
42
43COMMON_ASM_ARM_SRCS=\
44	$(COMMON_SRCDIR)/arm/copy_mb_neon.S\
45	$(COMMON_SRCDIR)/arm/deblocking_neon.S\
46	$(COMMON_SRCDIR)/arm/expand_picture_neon.S\
47	$(COMMON_SRCDIR)/arm/intra_pred_common_neon.S\
48	$(COMMON_SRCDIR)/arm/mc_neon.S\
49
50COMMON_OBJSARM += $(COMMON_ASM_ARM_SRCS:.S=.$(OBJ))
51ifeq ($(ASM_ARCH), arm)
52COMMON_OBJS += $(COMMON_OBJSARM)
53endif
54OBJS += $(COMMON_OBJSARM)
55
56COMMON_ASM_ARM64_SRCS=\
57	$(COMMON_SRCDIR)/arm64/copy_mb_aarch64_neon.S\
58	$(COMMON_SRCDIR)/arm64/deblocking_aarch64_neon.S\
59	$(COMMON_SRCDIR)/arm64/expand_picture_aarch64_neon.S\
60	$(COMMON_SRCDIR)/arm64/intra_pred_common_aarch64_neon.S\
61	$(COMMON_SRCDIR)/arm64/mc_aarch64_neon.S\
62
63COMMON_OBJSARM64 += $(COMMON_ASM_ARM64_SRCS:.S=.$(OBJ))
64ifeq ($(ASM_ARCH), arm64)
65COMMON_OBJS += $(COMMON_OBJSARM64)
66endif
67OBJS += $(COMMON_OBJSARM64)
68
69COMMON_ASM_MIPS_MMI_SRCS=\
70	$(COMMON_SRCDIR)/mips/copy_mb_mmi.c\
71	$(COMMON_SRCDIR)/mips/deblock_mmi.c\
72	$(COMMON_SRCDIR)/mips/expand_picture_mmi.c\
73	$(COMMON_SRCDIR)/mips/intra_pred_com_mmi.c\
74	$(COMMON_SRCDIR)/mips/satd_sad_mmi.c\
75
76COMMON_OBJSMIPS_MMI += $(COMMON_ASM_MIPS_MMI_SRCS:.c=.$(OBJ))
77
78COMMON_ASM_MIPS_MSA_SRCS=\
79	$(COMMON_SRCDIR)/mips/copy_mb_msa.c\
80	$(COMMON_SRCDIR)/mips/deblock_msa.c\
81
82COMMON_OBJSMIPS_MSA += $(COMMON_ASM_MIPS_MSA_SRCS:.c=.$(OBJ))
83ifeq ($(ASM_ARCH), mips)
84ifeq ($(ENABLE_MMI), Yes)
85COMMON_OBJS += $(COMMON_OBJSMIPS_MMI)
86endif
87ifeq ($(ENABLE_MSA), Yes)
88COMMON_OBJS += $(COMMON_OBJSMIPS_MSA)
89endif
90endif
91OBJS += $(COMMON_OBJSMIPS_MMI)
92OBJS += $(COMMON_OBJSMIPS_MSA)
93
94COMMON_ASM_LOONGARCH_LSX_SRCS=\
95	$(COMMON_SRCDIR)/loongarch/mc_chroma_lsx.c\
96        $(COMMON_SRCDIR)/loongarch/copy_mb_lsx.c\
97
98COMMON_OBJSLOONGARCH_LSX += $(COMMON_ASM_LOONGARCH_LSX_SRCS:.c=.$(OBJ))
99
100COMMON_ASM_LOONGARCH_LASX_SRCS=\
101        $(COMMON_SRCDIR)/loongarch/satd_sad_lasx.c\
102
103COMMON_OBJSLOONGARCH_LASX += $(COMMON_ASM_LOONGARCH_LASX_SRCS:.c=.$(OBJ))
104ifeq ($(ASM_ARCH), loongarch)
105ifeq ($(ENABLE_LSX), Yes)
106COMMON_OBJS += $(COMMON_OBJSLOONGARCH_LSX)
107endif
108ifeq ($(ENABLE_LASX), Yes)
109COMMON_OBJS += $(COMMON_OBJSLOONGARCH_LASX)
110endif
111endif
112
113OBJS += $(COMMON_OBJS)
114
115$(COMMON_SRCDIR)/%.$(OBJ): $(COMMON_SRCDIR)/%.cpp
116	$(QUIET_CXX)$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(COMMON_CFLAGS) $(COMMON_INCLUDES) -c $(CXX_O) $<
117
118$(COMMON_SRCDIR)/%.$(OBJ): $(COMMON_SRCDIR)/%.c
119	$(QUIET_CC)$(CC) $(CFLAGS) $(INCLUDES) $(COMMON_CFLAGS) $(COMMON_INCLUDES) -c $(CXX_O) $<
120
121$(COMMON_SRCDIR)/%.$(OBJ): $(COMMON_SRCDIR)/%.asm
122	$(QUIET_ASM)$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(COMMON_ASMFLAGS) $(COMMON_ASM_INCLUDES) -o $@ $<
123
124$(COMMON_SRCDIR)/%.$(OBJ): $(COMMON_SRCDIR)/%.S
125	$(QUIET_CCAS)$(CCAS) $(CCASFLAGS) $(ASMFLAGS) $(INCLUDES) $(COMMON_CFLAGS) $(COMMON_INCLUDES) -c -o $@ $<
126
127$(LIBPREFIX)common.$(LIBSUFFIX): $(COMMON_OBJS)
128	$(QUIET)rm -f $@
129	$(QUIET_AR)$(AR) $(AR_OPTS) $+
130
131libraries: $(LIBPREFIX)common.$(LIBSUFFIX)
132LIBRARIES += $(LIBPREFIX)common.$(LIBSUFFIX)
133