Work around subdirectory bug in older automake.
Older versions of automake doesn't properly support no-recursive make. Reimplement the build system by having a local Makefile.am in the simd/ directory.
This commit is contained in:
26
Makefile.am
26
Makefile.am
@@ -15,30 +15,8 @@ libjpeg_la_SOURCES = $(HDRS) jcapimin.c jcapistd.c jccoefct.c jccolor.c \
|
|||||||
|
|
||||||
if WITH_SIMD
|
if WITH_SIMD
|
||||||
|
|
||||||
BUILT_SOURCES = simd/jsimdcfg.inc
|
SUBDIRS = simd
|
||||||
|
libjpeg_la_LIBADD = simd/libsimd.la
|
||||||
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
|
|
||||||
|
|
||||||
endif
|
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_%%' > $@
|
|
||||||
|
|
||||||
|
|||||||
@@ -107,5 +107,5 @@ AM_CONDITIONAL([WITH_SIMD], [test "x$with_simd" != "xno"])
|
|||||||
# jconfig.h is a minimal version that allows this package to be built
|
# jconfig.h is a minimal version that allows this package to be built
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_HEADERS([jconfig.h])
|
AC_CONFIG_HEADERS([jconfig.h])
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile simd/Makefile])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|||||||
27
simd/Makefile.am
Normal file
27
simd/Makefile.am
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
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_%%' > $@
|
||||||
|
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jcolsamp.inc"
|
%include "jcolsamp.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jcolsamp.inc"
|
%include "jcolsamp.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_TEXT
|
SECTION SEG_TEXT
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_TEXT
|
SECTION SEG_TEXT
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_TEXT
|
SECTION SEG_TEXT
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_TEXT
|
SECTION SEG_TEXT
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_TEXT
|
SECTION SEG_TEXT
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_TEXT
|
SECTION SEG_TEXT
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_TEXT
|
SECTION SEG_TEXT
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jcolsamp.inc"
|
%include "jcolsamp.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jcolsamp.inc"
|
%include "jcolsamp.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jcolsamp.inc"
|
%include "jcolsamp.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jcolsamp.inc"
|
%include "jcolsamp.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_CONST
|
SECTION SEG_CONST
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_CONST
|
SECTION SEG_CONST
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_CONST
|
SECTION SEG_CONST
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_CONST
|
SECTION SEG_CONST
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
%include "simd/jdct.inc"
|
%include "jdct.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
;
|
;
|
||||||
; [TAB8]
|
; [TAB8]
|
||||||
|
|
||||||
%include "simd/jsimdext.inc"
|
%include "jsimdext.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
SECTION SEG_TEXT
|
SECTION SEG_TEXT
|
||||||
|
|||||||
@@ -272,6 +272,6 @@ const_base:
|
|||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
; Defines picked up from the C headers
|
; Defines picked up from the C headers
|
||||||
;
|
;
|
||||||
%include "simd/jsimdcfg.inc"
|
%include "jsimdcfg.inc"
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user