From f721bd355fd06ec2b7e9070479a52481f58ccc91 Mon Sep 17 00:00:00 2001
From: magnum <magnum>
Date: Wed, 6 Jul 2011 05:14:31 +0200
Subject: [PATCH 1/3] linux-x86-64-32-sse2i added to Makefile

---
 src/Makefile |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index da62b5b..7c9fb76 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -143,6 +143,7 @@ default:
 	@echo "linux-x86-64-icc         Linux, x86-64 compiled with icc (best)"
 	@echo "linux-x86-64-clang       Linux, x86-64 compiled with clang (good)"
 #	@echo "linux-x86-64-32-sse2     Linux, x86-64, 32-bit with SSE2 (for regression tests)"
+#	@echo "linux-x86-64-32-sse2i    Linux, x86-64, 32-bit with SSE2 intrinsics (for regression tests)"
 #	@echo "linux-x86-64-32-mmx      Linux, x86-64, 32-bit with MMX (for regression tests)"
 #	@echo "linux-x86-64-32-any      Linux, x86-64, 32-bit (for regression tests)"
 #	@echo "linux-x86-64-32-clang    Linux, x86-64, 32-bit compiled with clang (for regression tests)"
@@ -290,6 +291,14 @@ linux-x86-64-32-clang:
 		LDFLAGS="-lm -lssl -lcrypto -lcrypt -m32" \
 		CPP="clang" CC="clang" AS="clang" LD="clang"
 
+linux-x86-64-32-sse2i:
+	$(CP) x86-ssei.h arch.h
+	$(MAKE) $(PROJ) \
+		JOHN_OBJS="sse-intrinsics.o $(JOHN_OBJS) x86.o x86-sse.o " \
+		CFLAGS="$(CFLAGS) -Wall -mpreferred-stack-boundary=4 -msse2 -m32" \
+		ASFLAGS="$(ASFLAGS) -m32" \
+		LDFLAGS="$(LDFLAGS) -m32 -lcrypt"
+
 linux-x86-sse2:
 	$(LN) x86-sse.h arch.h
 	$(MAKE) $(PROJ) \
-- 
1.7.4.1

