Home | History | Annotate | Download | only in simd
      1 noinst_LTLIBRARIES = libsimd.la
      2 
      3 BUILT_SOURCES = jsimdcfg.inc
      4 
      5 EXTRA_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 
     12 if SIMD_X86_64
     13 
     14 libsimd_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 
     22 jccolor-sse2-64.lo:  jccolext-sse2-64.asm
     23 jcgray-sse2-64.lo:   jcgryext-sse2-64.asm
     24 jdcolor-sse2-64.lo:  jdcolext-sse2-64.asm
     25 jdmerge-sse2-64.lo:  jdmrgext-sse2-64.asm
     26 
     27 endif
     28 
     29 if SIMD_I386
     30 
     31 libsimd_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 
     45 jccolor-mmx.lo:   jccolext-mmx.asm
     46 jcgray.-mmx.lo:   jcgryext-mmx.asm
     47 jdcolor-mmx.lo:   jdcolext-mmx.asm
     48 jdmerge-mmx.lo:   jdmrgext-mmx.asm
     49 jccolor-sse2.lo:  jccolext-sse2.asm
     50 jcgray-sse2.lo:   jcgryext-sse2.asm
     51 jdcolor-sse2.lo:  jdcolext-sse2.asm
     52 jdmerge-sse2.lo:  jdmrgext-sse2.asm
     53 
     54 endif
     55 
     56 if SIMD_ARM
     57 
     58 libsimd_la_SOURCES = jsimd_arm.c jsimd_arm_neon.S
     59 
     60 endif
     61 
     62 if SIMD_ARM_64
     63 
     64 libsimd_la_SOURCES = jsimd_arm64.c jsimd_arm64_neon.S
     65 
     66 endif
     67 
     68 if SIMD_MIPS
     69 
     70 libsimd_la_SOURCES = jsimd_mips.c jsimd_mips_dspr2_asm.h jsimd_mips_dspr2.S
     71 
     72 endif
     73 
     74 if SIMD_POWERPC
     75 
     76 noinst_LTLIBRARIES += libsimd_altivec.la
     77 
     78 libsimd_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
     84 libsimd_altivec_la_CFLAGS = -maltivec
     85 
     86 jccolor-altivec.lo:  jccolext-altivec.c
     87 jcgray-altivec.lo:   jcgryext-altivec.c
     88 jdcolor-altivec.lo:  jdcolext-altivec.c
     89 jdmerge-altivec.lo:  jdmrgext-altivec.c
     90 
     91 libsimd_la_SOURCES = jsimd_powerpc.c jsimd_altivec.h jcsample.h
     92 libsimd_la_LIBADD = libsimd_altivec.la
     93 
     94 endif
     95 
     96 AM_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 
    101 jsimdcfg.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