aboutsummaryrefslogtreecommitdiff
path: root/simd
diff options
context:
space:
mode:
authordcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2010-02-13 22:55:05 +0000
committerdcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2010-02-13 22:55:05 +0000
commit884d1080bc00f34e1e51ee8f3d150d387a0d084c (patch)
treec40bf85129b1d5004da11a8f283a41dbf28f0420 /simd
parent81b809687d3b9c154793a2aa2b481e72c9ffa6fc (diff)
Enable (i.e. fix) VPATH and out-of-tree builds
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@87 632fc199-4ca6-4c93-a231-07263d6284db
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_%%' > $@