History

build: Consistently handle conditional compilation for all optimization OBJS.

Diego Biurrun committed 14 years ago

Commit 7bb3a301 parent 2ef15b49 files · +33 −24Browse files

Unified · Split

9 files
  1. Makefile +2 −1
  2. arch.mak +13 −0
  3. common.mak +1 −1
  4. libavcodec/arm/Makefile +5 −8
  5. libavcodec/mips/Makefile +3 −3
  6. libavcodec/ppc/Makefile +1 −2
  7. libavcodec/sparc/Makefile +2 −2
  8. libavcodec/x86/Makefile +2 −3
  9. libswscale/Makefile +4 −4
Makefile+2−1
@@ -100,7 +100,8 @@ config.h: .config · 99 unmodified lines
100100
101101 SUBDIR_VARS := CLEANFILES EXAMPLES FFLIBS HOSTPROGS TESTPROGS TOOLS \
102102 ARCH_HEADERS BUILT_HEADERS SKIPHEADERS \
103− ALTIVEC-OBJS ARMV6-OBJS MMX-OBJS NEON-OBJS YASM-OBJS \
103+ ALTIVEC-OBJS ARMV5TE-OBJS ARMV6-OBJS ARMVFP-OBJS MMI-OBJS \
104+ MMX-OBJS NEON-OBJS VIS-OBJS YASM-OBJS \
104105 OBJS TESTOBJS
105106
106107 define RESET
arch.mak+13−0
@@ -0,0 +1,13 @@
1+OBJS-$(HAVE_ARMV5TE) += $(ARMV5TE-OBJS) $(ARMV5TE-OBJS-yes)
2+OBJS-$(HAVE_ARMV6) += $(ARMV6-OBJS) $(ARMV6-OBJS-yes)
3+OBJS-$(HAVE_ARMVFP) += $(ARMVFP-OBJS) $(ARMVFP-OBJS-yes)
4+OBJS-$(HAVE_NEON) += $(NEON-OBJS) $(NEON-OBJS-yes)
5+
6+OBJS-$(HAVE_MMI) += $(MMI-OBJS) $(MMI-OBJS-yes)
7+
8+OBJS-$(HAVE_ALTIVEC) += $(ALTIVEC-OBJS) $(ALTIVEC-OBJS-yes)
9+
10+OBJS-$(HAVE_VIS) += $(VIS-OBJS) $(VIS-OBJS-yes)
11+
12+OBJS-$(HAVE_MMX) += $(MMX-OBJS) $(MMX-OBJS-yes)
13+OBJS-$(HAVE_YASM) += $(YASM-OBJS) $(YASM-OBJS-yes)
common.mak+1−1
@@ -5,7 +5,7 @@ · 4 unmodified lines
55 # first so "all" becomes default target
66 all: all-yes
77
8−OBJS-$(HAVE_MMX) += $(MMX-OBJS-yes)
8+include $(SRC_PATH)/arch.mak
99
1010 OBJS += $(OBJS-yes)
1111 FFLIBS := $(FFLIBS-yes) $(FFLIBS)
libavcodec/arm/Makefile+5−8
@@ -27,21 +27,19 @@ OBJS += arm/dsputil_init_arm.o \ · 26 unmodified lines
2727 arm/mpegvideo_arm.o \
2828 arm/simple_idct_arm.o \
2929
30−OBJS-$(HAVE_ARMV5TE) += arm/dsputil_init_armv5te.o \
30+ARMV5TE-OBJS += arm/dsputil_init_armv5te.o \
3131 arm/mpegvideo_armv5te.o \
3232 arm/mpegvideo_armv5te_s.o \
3333 arm/simple_idct_armv5te.o \
3434
35−OBJS-$(HAVE_ARMV6) += arm/dsputil_init_armv6.o \
35+ARMV6-OBJS += arm/dsputil_init_armv6.o \
3636 arm/dsputil_armv6.o \
3737 arm/simple_idct_armv6.o \
38− $(ARMV6-OBJS-yes)
3938
40−VFP-OBJS-$(HAVE_ARMV6) += arm/fmtconvert_vfp.o \
39+ARMVFP-OBJS-$(HAVE_ARMV6) += arm/fmtconvert_vfp.o
4140
42−OBJS-$(HAVE_ARMVFP) += arm/dsputil_vfp.o \
41+ARMVFP-OBJS += arm/dsputil_vfp.o \
4342 arm/dsputil_init_vfp.o \
44− $(VFP-OBJS-yes)
4543
4644 NEON-OBJS-$(CONFIG_FFT) += arm/fft_neon.o \
4745 arm/fft_fixed_neon.o \
@@ -83,10 +81,9 @@ NEON-OBJS-$(CONFIG_VP6_DECODER) += arm/vp56dsp_neon.o \ · 35 unmodified lines
8381
8482 NEON-OBJS-$(CONFIG_VP8_DECODER) += arm/vp8dsp_neon.o
8583
86−OBJS-$(HAVE_NEON) += arm/dsputil_init_neon.o \
84+NEON-OBJS += arm/dsputil_init_neon.o \
8785 arm/dsputil_neon.o \
8886 arm/fmtconvert_neon.o \
8987 arm/int_neon.o \
9088 arm/mpegvideo_neon.o \
9189 arm/simple_idct_neon.o \
92− $(NEON-OBJS-yes)
libavcodec/mips/Makefile+3−3
@@ -1,3 +1,3 @@
1−OBJS-$(HAVE_MMI) += mips/dsputil_mmi.o \
2− mips/idct_mmi.o \
3− mips/mpegvideo_mmi.o \
1+MMI-OBJS += mips/dsputil_mmi.o \
2+ mips/idct_mmi.o \
3+ mips/mpegvideo_mmi.o \
libavcodec/ppc/Makefile+1−2
@@ -11,7 +11,7 @@ ALTIVEC-OBJS-$(CONFIG_VP5_DECODER) += ppc/vp3dsp_altivec.o · 10 unmodified lines
1111 ALTIVEC-OBJS-$(CONFIG_VP6_DECODER) += ppc/vp3dsp_altivec.o
1212 ALTIVEC-OBJS-$(CONFIG_VP8_DECODER) += ppc/vp8dsp_altivec.o
1313
14−OBJS-$(HAVE_ALTIVEC) += ppc/dsputil_altivec.o \
14+ALTIVEC-OBJS += ppc/dsputil_altivec.o \
1515 ppc/fdct_altivec.o \
1616 ppc/float_altivec.o \
1717 ppc/fmtconvert_altivec.o \
@@ -19,4 +19,3 @@ OBJS-$(HAVE_ALTIVEC) += ppc/dsputil_altivec.o \ · 1 unmodified line
1919 ppc/idct_altivec.o \
2020 ppc/int_altivec.o \
2121 ppc/mpegvideo_altivec.o \
22− $(ALTIVEC-OBJS-yes)
libavcodec/sparc/Makefile+2−2
@@ -1,2 +1,2 @@
1−OBJS-$(HAVE_VIS) += sparc/dsputil_vis.o \
2− sparc/simple_idct_vis.o \
1+VIS-OBJS += sparc/dsputil_vis.o \
2+ sparc/simple_idct_vis.o \
libavcodec/x86/Makefile+2−3
@@ -2,7 +2,7 @@ OBJS-$(CONFIG_MLP_DECODER) += x86/mlpdsp.o · 1 unmodified line
22 OBJS-$(CONFIG_TRUEHD_DECODER) += x86/mlpdsp.o
33 OBJS-$(CONFIG_XMM_CLOBBER_TEST) += x86/w64xmmtest.o
44
5−OBJS-$(HAVE_MMX) += x86/dsputil_mmx.o \
5+MMX-OBJS += x86/dsputil_mmx.o \
66 x86/fdct_mmx.o \
77 x86/fmtconvert_mmx.o \
88 x86/idct_mmx_xvid.o \
@@ -66,7 +66,6 @@ YASM-OBJS-$(CONFIG_VP6_DECODER) += x86/vp3dsp.o \ · 57 unmodified lines
6666 x86/vp56dsp.o
6767 YASM-OBJS-$(CONFIG_VP8_DECODER) += x86/vp8dsp.o
6868
69−MMX-OBJS-$(HAVE_YASM) += x86/dsputil_yasm.o \
69+YASM-OBJS += x86/dsputil_yasm.o \
7070 x86/deinterlace.o \
7171 x86/fmtconvert.o \
72− $(YASM-OBJS-yes)
libswscale/Makefile+4−4
@@ -15,14 +15,14 @@ OBJS = input.o \ · 14 unmodified lines
1515 OBJS-$(ARCH_BFIN) += bfin/internal_bfin.o \
1616 bfin/swscale_bfin.o \
1717 bfin/yuv2rgb_bfin.o
18−OBJS-$(HAVE_ALTIVEC) += ppc/swscale_altivec.o \
18+ALTIVEC-OBJS += ppc/swscale_altivec.o \
1919 ppc/yuv2rgb_altivec.o \
2020 ppc/yuv2yuv_altivec.o
21−OBJS-$(HAVE_MMX) += x86/rgb2rgb.o \
21+MMX-OBJS += x86/rgb2rgb.o \
2222 x86/swscale_mmx.o \
2323 x86/yuv2rgb_mmx.o
24−OBJS-$(HAVE_VIS) += sparc/yuv2rgb_vis.o
25−MMX-OBJS-$(HAVE_YASM) += x86/input.o \
24+VIS-OBJS += sparc/yuv2rgb_vis.o
25+YASM-OBJS += x86/input.o \
2626 x86/output.o \
2727 x86/scale.o
2828

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t