scrypt SSE2
[novacoin.git] / src / makefile.linux-mingw
index 5175466..580f92e 100644 (file)
@@ -140,6 +140,13 @@ obj/scrypt-generic.o: scrypt-generic.c
        $(CC) -c $(xCXXFLAGS) -MMD -o $@ $<
 endif
 
+ifeq  (${USE_SSE2}, 1)
+    DEFS += -DUSE_SSE2    
+    OBJS += obj/scrypt-sse2.o
+obj/scrypt-sse2.o: scrypt-sse2.cpp $(HEADERS)
+       $(CCX)  -c $(CFLAGS) -MMD -o $@ $<
+endif
+
 obj/build.h: FORCE
        /bin/sh ../share/genbuild.sh obj/build.h
 version.cpp: obj/build.h