aboutsummaryrefslogtreecommitdiff
path: root/simd
diff options
context:
space:
mode:
Diffstat (limited to 'simd')
-rw-r--r--simd/Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/simd/Makefile.am b/simd/Makefile.am
index 1df6143..36f2478 100644
--- a/simd/Makefile.am
+++ b/simd/Makefile.am
@@ -49,9 +49,11 @@ jdmermmx.lo: jdmrgmmx.asm
jdmerss2.lo: jdmrgss2.asm
endif
+AM_CPPFLAGS = -I$(top_srcdir)
+
.asm.lo:
- $(LIBTOOL) --mode=compile --tag NASM ./nasm_lt.sh $(NASM) $(NAFLAGS) $< -o $@
+ $(LIBTOOL) --mode=compile --tag NASM $(srcdir)/nasm_lt.sh $(NASM) $(NAFLAGS) -I$(srcdir) $< -o $@
-jsimdcfg.inc: jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h
- $(CPP) jsimdcfg.inc.h | $(EGREP) ^[\;%] | sed 's%_cpp_protection_%%' > $@
+jsimdcfg.inc: $(srcdir)/jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h
+ $(CPP) -I$(builddir) -I$(top_builddir) $(srcdir)/jsimdcfg.inc.h | $(EGREP) ^[\;%] | sed 's%_cpp_protection_%%' > $@