if WITH_SIMD
-BUILT_SOURCES = simd/jsimdcfg.inc
-
-EXTRA_DIST = nasm_lt.sh
-
-libjpeg_la_SOURCES += simd/jsimd.h simd/jsimdcfg.inc.h \
- simd/jsimdext.inc simd/jcolsamp.inc simd/jdct.inc \
- simd/jsimdcpu.asm \
- simd/jccolmmx.asm simd/jdcolmmx.asm \
- simd/jcsammmx.asm simd/jdsammmx.asm simd/jdmermmx.asm \
- simd/jcqntmmx.asm simd/jfmmxfst.asm simd/jfmmxint.asm \
- simd/jimmxred.asm simd/jimmxint.asm simd/jimmxfst.asm \
- simd/jcqnt3dn.asm simd/jf3dnflt.asm simd/ji3dnflt.asm \
- simd/jcqntsse.asm simd/jfsseflt.asm simd/jisseflt.asm \
- simd/jccolss2.asm simd/jdcolss2.asm \
- simd/jcsamss2.asm simd/jdsamss2.asm simd/jdmerss2.asm \
- simd/jcqnts2i.asm simd/jfss2fst.asm simd/jfss2int.asm \
- simd/jiss2red.asm simd/jiss2int.asm simd/jiss2fst.asm \
- simd/jcqnts2f.asm simd/jiss2flt.asm
+SUBDIRS = simd
+libjpeg_la_LIBADD = simd/libsimd.la
endif
-.asm.lo:
- $(LIBTOOL) --mode=compile --tag NASM ./nasm_lt.sh $(NASM) $(NAFLAGS) $< -o $@
-
-simd/jsimdcfg.inc: simd/jsimdcfg.inc.h jpeglib.h jconfig.h jmorecfg.h
- $(CPP) $< | grep ^[\;%] | sed 's%_cpp_protection_%%' > $@
-
# jconfig.h is a minimal version that allows this package to be built
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_HEADERS([jconfig.h])
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile simd/Makefile])
AC_OUTPUT
+++ /dev/null
-#! /bin/sh
-command=""
-infile=""
-o_opt=no
-pic=no
-while [ $# -gt 0 ]; do
- case "$1" in
- -DPIC|-fPIC|-fpic)
- if [ "$pic" != "yes" ] ; then
- command="$command -DPIC"
- pic=yes
- fi
- ;;
- -f|-fbin|-faout|-faoutb|-fcoff|-felf|-fas86| \
- -fobj|-fwin32|-frdf|-fieee|-fmacho)
- # it's a file format specifier for nasm.
- command="$command $1"
- ;;
- -f*)
- # maybe a code-generation flag for gcc.
- ;;
- -[Ii]*)
- incdir=`echo "$1" | sed 's/^-[Ii]//'`
- if [ "x$incdir" = x -a "x$2" != x ] ; then
- case "$2" in
- -*) ;;
- *) incdir="$2"; shift;;
- esac
- fi
- if [ "x$incdir" != x ] ; then
- # In the case of NASM, the trailing slash is necessary.
- incdir=`echo "$incdir" | sed 's%/*$%/%'`
- command="$command -I$incdir"
- fi
- ;;
- -o*)
- o_opt=yes
- command="$command $1"
- ;;
- *.asm)
- infile=$1
- command="$command $1"
- ;;
- *)
- command="$command $1"
- ;;
- esac
- shift
-done
-if [ "$o_opt" != yes ] ; then
- # By default, NASM creates an output file
- # in the same directory as the input file.
- outfile="-o `echo $infile | sed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.o"
- command="$command $outfile"
-fi
-echo $command
-exec $command
--- /dev/null
+noinst_LTLIBRARIES = libsimd.la
+
+BUILT_SOURCES = jsimdcfg.inc
+
+EXTRA_DIST = nasm_lt.sh
+
+libsimd_la_SOURCES = jsimd.h jsimdcfg.inc.h \
+ jsimdext.inc jcolsamp.inc jdct.inc \
+ jsimdcpu.asm \
+ jccolmmx.asm jdcolmmx.asm \
+ jcsammmx.asm jdsammmx.asm jdmermmx.asm \
+ jcqntmmx.asm jfmmxfst.asm jfmmxint.asm \
+ jimmxred.asm jimmxint.asm jimmxfst.asm \
+ jcqnt3dn.asm jf3dnflt.asm ji3dnflt.asm \
+ jcqntsse.asm jfsseflt.asm jisseflt.asm \
+ jccolss2.asm jdcolss2.asm \
+ jcsamss2.asm jdsamss2.asm jdmerss2.asm \
+ jcqnts2i.asm jfss2fst.asm jfss2int.asm \
+ jiss2red.asm jiss2int.asm jiss2fst.asm \
+ jcqnts2f.asm jiss2flt.asm
+
+.asm.lo:
+ $(LIBTOOL) --mode=compile --tag NASM ./nasm_lt.sh $(NASM) $(NAFLAGS) $< -o $@
+
+jsimdcfg.inc: jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h
+ $(CPP) $< | grep ^[\;%] | sed 's%_cpp_protection_%%' > $@
+
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jcolsamp.inc"
+%include "jsimdext.inc"
+%include "jcolsamp.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jcolsamp.inc"
+%include "jsimdext.inc"
+%include "jcolsamp.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
SECTION SEG_TEXT
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
SECTION SEG_TEXT
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
SECTION SEG_TEXT
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
SECTION SEG_TEXT
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
SECTION SEG_TEXT
;
; [TAB8]
-%include "simd/jsimdext.inc"
+%include "jsimdext.inc"
; --------------------------------------------------------------------------
SECTION SEG_TEXT
;
; [TAB8]
-%include "simd/jsimdext.inc"
+%include "jsimdext.inc"
; --------------------------------------------------------------------------
SECTION SEG_TEXT
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jcolsamp.inc"
+%include "jsimdext.inc"
+%include "jcolsamp.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jcolsamp.inc"
+%include "jsimdext.inc"
+%include "jcolsamp.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jcolsamp.inc"
+%include "jsimdext.inc"
+%include "jcolsamp.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jcolsamp.inc"
+%include "jsimdext.inc"
+%include "jcolsamp.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
+%include "jsimdext.inc"
; --------------------------------------------------------------------------
SECTION SEG_CONST
;
; [TAB8]
-%include "simd/jsimdext.inc"
+%include "jsimdext.inc"
; --------------------------------------------------------------------------
SECTION SEG_CONST
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
SECTION SEG_CONST
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
SECTION SEG_CONST
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
-%include "simd/jdct.inc"
+%include "jsimdext.inc"
+%include "jdct.inc"
; --------------------------------------------------------------------------
;
; [TAB8]
-%include "simd/jsimdext.inc"
+%include "jsimdext.inc"
; --------------------------------------------------------------------------
SECTION SEG_TEXT
; --------------------------------------------------------------------------
; Defines picked up from the C headers
;
-%include "simd/jsimdcfg.inc"
+%include "jsimdcfg.inc"
; --------------------------------------------------------------------------
--- /dev/null
+#! /bin/sh
+command=""
+infile=""
+o_opt=no
+pic=no
+while [ $# -gt 0 ]; do
+ case "$1" in
+ -DPIC|-fPIC|-fpic)
+ if [ "$pic" != "yes" ] ; then
+ command="$command -DPIC"
+ pic=yes
+ fi
+ ;;
+ -f|-fbin|-faout|-faoutb|-fcoff|-felf|-fas86| \
+ -fobj|-fwin32|-frdf|-fieee|-fmacho)
+ # it's a file format specifier for nasm.
+ command="$command $1"
+ ;;
+ -f*)
+ # maybe a code-generation flag for gcc.
+ ;;
+ -[Ii]*)
+ incdir=`echo "$1" | sed 's/^-[Ii]//'`
+ if [ "x$incdir" = x -a "x$2" != x ] ; then
+ case "$2" in
+ -*) ;;
+ *) incdir="$2"; shift;;
+ esac
+ fi
+ if [ "x$incdir" != x ] ; then
+ # In the case of NASM, the trailing slash is necessary.
+ incdir=`echo "$incdir" | sed 's%/*$%/%'`
+ command="$command -I$incdir"
+ fi
+ ;;
+ -o*)
+ o_opt=yes
+ command="$command $1"
+ ;;
+ *.asm)
+ infile=$1
+ command="$command $1"
+ ;;
+ *)
+ command="$command $1"
+ ;;
+ esac
+ shift
+done
+if [ "$o_opt" != yes ] ; then
+ # By default, NASM creates an output file
+ # in the same directory as the input file.
+ outfile="-o `echo $infile | sed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.o"
+ command="$command $outfile"
+fi
+echo $command
+exec $command