1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
|
## Process this file with automake to produce Makefile.in
TESTS = guard1 guard2 clear_image convert_image copy_image memcpy
XFAIL_TESTS = guard1 guard2
EXTRA_DIST = \
clear_image-altivec.sh \
clear_image-mmx.sh \
clear_image-sse.sh \
convert_image-mmx.sh \
copy_image-altivec.sh \
copy_image-mmx.sh \
copy_image-sse.sh \
guard.h \
memcpy-mmx.sh \
memcpy-sse.sh \
pixel.h \
simd-3dnow.sh \
simd-altivec.sh \
simd-emu.sh \
simd-mmx.sh \
simd-sse.sh \
simd-sse2.sh
INCLUDES = -I$(top_srcdir)
SIMD_CFLAGS = -O3 -fomit-frame-pointer
SIMD_SOURCES = simd.c
SIMD_LIBS =
# x86 and x86-64
if CAN_COMPILE_MMX
TESTS += \
clear_image-mmx.sh \
convert_image-mmx.sh \
copy_image-mmx.sh \
memcpy-mmx.sh \
simd-mmx.sh
SIMD_LIBS += libsimd_MMX.la
libsimd_MMX_la_CFLAGS = $(SIMD_CFLAGS) -mmmx -DSIMD=CPU_FEATURE_MMX
libsimd_MMX_la_SOURCES = $(SIMD_SOURCES)
endif
if CAN_COMPILE_3DNOW
TESTS += simd-3dnow.sh
SIMD_LIBS += libsimd_3DNOW.la
libsimd_3DNOW_la_CFLAGS = $(SIMD_CFLAGS) -m3dnow -DSIMD=CPU_FEATURE_3DNOW
libsimd_3DNOW_la_SOURCES = $(SIMD_SOURCES)
endif
if CAN_COMPILE_SSE
TESTS += \
clear_image-sse.sh \
copy_image-sse.sh \
memcpy-sse.sh \
simd-sse.sh
SIMD_LIBS += libsimd_SSE.la
libsimd_SSE_la_CFLAGS = $(SIMD_CFLAGS) -msse -DSIMD=CPU_FEATURE_SSE_INT
libsimd_SSE_la_SOURCES = $(SIMD_SOURCES)
endif
if CAN_COMPILE_SSE2
TESTS += simd-sse2.sh
SIMD_LIBS += libsimd_SSE2.la
libsimd_SSE2_la_CFLAGS = $(SIMD_CFLAGS) -msse2 -DSIMD=CPU_FEATURE_SSE2
libsimd_SSE2_la_SOURCES = $(SIMD_SOURCES)
endif
# powerpc
if CAN_COMPILE_ALTIVEC
TESTS += \
clear_image-altivec.sh \
copy_image-altivec.sh \
simd-altivec.sh
SIMD_LIBS += libsimd_AVEC.la
libsimd_AVEC_la_CFLAGS = $(SIMD_CFLAGS) \
-maltivec -mabi=altivec -DSIMD=CPU_FEATURE_ALTIVEC
libsimd_AVEC_la_SOURCES = $(SIMD_SOURCES)
endif
noinst_LTLIBRARIES = $(SIMD_LIBS)
check_PROGRAMS = \
cpudt \
clear_image \
convert_image \
copy_image \
guard1 \
guard2 \
memcpy \
simd
convert_image_LDADD = \
-lm \
$(top_builddir)/libtv/libtv.la
copy_image_LDADD = \
$(top_builddir)/libtv/libtv.la
check_SCRIPTS = \
simd-emu.sh
simd_LDADD = \
$(SIMD_LIBS) \
$(top_builddir)/libtv/libtv.la
LDADD = \
$(top_builddir)/libtv/libtv.la
simd-emu.sh:
$(MAKE) cpudt
memcpy-mmx.sh \
memcpy-sse.sh \
memcpy-altivec.sh:
$(MAKE) memcpy
clear_image-mmx.sh \
clear_image-sse.sh \
clear_image-altivec.sh:
$(MAKE) clear_image
convert_image-mmx.sh \
convert_image-3dnow.sh \
convert_image-sse.sh \
convert_image-sse2.sh \
convert_image-altivec.sh:
$(MAKE) convert_image
copy_image-mmx.sh \
copy_image-sse.sh \
copy_image-altivec.sh:
$(MAKE) copy_image
simd-mmx.sh \
simd-3dnow.sh \
simd-sse.sh \
simd-sse2.sh \
simd-altivec.sh:
$(MAKE) simd
|