• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1noinst_LTLIBRARIES = libsimd.la
2
3BUILT_SOURCES = jsimdcfg.inc
4
5EXTRA_DIST = nasm_lt.sh CMakeLists.txt \
6	jccolext-mmx.asm   jcgryext-mmx.asm   jdcolext-mmx.asm   jdmrgext-mmx.asm \
7	jccolext-sse2.asm  jcgryext-sse2.asm  jdcolext-sse2.asm  jdmrgext-sse2.asm \
8	jccolext-sse2-64.asm  jcgryext-sse2-64.asm  jdcolext-sse2-64.asm \
9	jdmrgext-sse2-64.asm  jccolext-altivec.c    jcgryext-altivec.c \
10	jdcolext-altivec.c    jdmrgext-altivec.c
11
12if SIMD_X86_64
13
14libsimd_la_SOURCES = jsimd_x86_64.c jsimd.h jsimdcfg.inc.h jsimdext.inc \
15	jcolsamp.inc jdct.inc jpeg_nbits_table.inc jfdctflt-sse-64.asm \
16	jccolor-sse2-64.asm   jcgray-sse2-64.asm    jchuff-sse2-64.asm \
17	jcsample-sse2-64.asm  jdcolor-sse2-64.asm   jdmerge-sse2-64.asm \
18	jdsample-sse2-64.asm  jfdctfst-sse2-64.asm  jfdctint-sse2-64.asm \
19	jidctflt-sse2-64.asm  jidctfst-sse2-64.asm  jidctint-sse2-64.asm \
20	jidctred-sse2-64.asm  jquantf-sse2-64.asm   jquanti-sse2-64.asm
21
22jccolor-sse2-64.lo:  jccolext-sse2-64.asm
23jcgray-sse2-64.lo:   jcgryext-sse2-64.asm
24jdcolor-sse2-64.lo:  jdcolext-sse2-64.asm
25jdmerge-sse2-64.lo:  jdmrgext-sse2-64.asm
26
27endif
28
29if SIMD_I386
30
31libsimd_la_SOURCES = jsimd_i386.c jsimd.h jsimdcfg.inc.h jsimdext.inc \
32	jcolsamp.inc jdct.inc jpeg_nbits_table.inc jsimdcpu.asm \
33	jfdctflt-3dn.asm   jidctflt-3dn.asm   jquant-3dn.asm \
34	jccolor-mmx.asm    jcgray-mmx.asm     jcsample-mmx.asm \
35	jdcolor-mmx.asm    jdmerge-mmx.asm    jdsample-mmx.asm \
36	jfdctfst-mmx.asm   jfdctint-mmx.asm   jidctfst-mmx.asm \
37	jidctint-mmx.asm   jidctred-mmx.asm   jquant-mmx.asm \
38	jfdctflt-sse.asm   jidctflt-sse.asm   jquant-sse.asm \
39	jccolor-sse2.asm   jcgray-sse2.asm    jchuff-sse2.asm \
40	jcsample-sse2.asm  jdcolor-sse2.asm   jdmerge-sse2.asm \
41	jdsample-sse2.asm  jfdctfst-sse2.asm  jfdctint-sse2.asm \
42	jidctflt-sse2.asm  jidctfst-sse2.asm  jidctint-sse2.asm \
43	jidctred-sse2.asm  jquantf-sse2.asm   jquanti-sse2.asm
44
45jccolor-mmx.lo:   jccolext-mmx.asm
46jcgray.-mmx.lo:   jcgryext-mmx.asm
47jdcolor-mmx.lo:   jdcolext-mmx.asm
48jdmerge-mmx.lo:   jdmrgext-mmx.asm
49jccolor-sse2.lo:  jccolext-sse2.asm
50jcgray-sse2.lo:   jcgryext-sse2.asm
51jdcolor-sse2.lo:  jdcolext-sse2.asm
52jdmerge-sse2.lo:  jdmrgext-sse2.asm
53
54endif
55
56if SIMD_ARM
57
58libsimd_la_SOURCES = jsimd_arm.c jsimd_arm_neon.S
59
60endif
61
62if SIMD_ARM_64
63
64libsimd_la_SOURCES = jsimd_arm64.c jsimd_arm64_neon.S
65
66endif
67
68if SIMD_MIPS
69
70libsimd_la_SOURCES = jsimd_mips.c jsimd_mips_dspr2_asm.h jsimd_mips_dspr2.S
71
72endif
73
74if SIMD_POWERPC
75
76noinst_LTLIBRARIES += libsimd_altivec.la
77
78libsimd_altivec_la_SOURCES = \
79	jccolor-altivec.c     jcgray-altivec.c      jcsample-altivec.c \
80	jdcolor-altivec.c     jdmerge-altivec.c     jdsample-altivec.c \
81	jfdctfst-altivec.c    jfdctint-altivec.c \
82	jidctfst-altivec.c    jidctint-altivec.c \
83	jquanti-altivec.c
84libsimd_altivec_la_CFLAGS = -maltivec
85
86jccolor-altivec.lo:  jccolext-altivec.c
87jcgray-altivec.lo:   jcgryext-altivec.c
88jdcolor-altivec.lo:  jdcolext-altivec.c
89jdmerge-altivec.lo:  jdmrgext-altivec.c
90
91libsimd_la_SOURCES = jsimd_powerpc.c jsimd_altivec.h jcsample.h
92libsimd_la_LIBADD = libsimd_altivec.la
93
94endif
95
96AM_CPPFLAGS = -I$(top_srcdir)
97
98.asm.lo:
99	$(AM_V_GEN) $(LIBTOOL) $(AM_V_lt) --mode=compile --tag NASM $(srcdir)/nasm_lt.sh $(AM_V_lt) $(NASM) $(NAFLAGS) -I$(srcdir) -I. $< -o $@
100
101jsimdcfg.inc: $(srcdir)/jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h
102	$(AM_V_GEN) $(CPP) -I$(top_builddir) -I$(top_builddir)/simd $(srcdir)/jsimdcfg.inc.h | $(EGREP) "^[\;%]|^\ %" | sed 's%_cpp_protection_%%' | sed 's@% define@%define@g' > $@
103