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
+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"
; --------------------------------------------------------------------------