From 0a9dc6025ecb22258904c5ddbc3c45b14204ac41 Mon Sep 17 00:00:00 2001 From: Dhiru Kholia Date: Fri, 22 Jun 2012 11:29:33 +0530 Subject: [PATCH] Add two more targets. linux-x86-clang-debug is super good for debugging. Signed-off-by: Dhiru Kholia --- src/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Makefile b/src/Makefile index 0538a14..de0147e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -241,6 +241,8 @@ default: # @echo "linux-x86-64-32-any Linux, x86-64, 32-bit (for regression tests)" @echo "linux-x86-gpu Linux, x86 32-bit with SSE2, CUDA and OpenCL (experimental)" @echo "linux-x86-opencl Linux, x86 32-bit with SSE2 and OpenCL (experimental)" + @echo "linux-x86-clang Linux, x86 32-bit with SSE2, compiled with clang" + @echo "linux-x86-clang-debug Linux, x86 32-bit with SSE2, compiled with clang with debugging on" @echo "linux-x86-cuda Linux, x86 32-bit with SSE2 and CUDA (experimental)" @echo "linux-x86-native Linux, x86 32-bit, with all CPU features you've got" @echo "linux-x86-sse2[i] Linux, x86 32-bit with SSE2 (most common, 32-bit)" @@ -500,6 +502,24 @@ linux-x86-opencl: $(CP) opencl/*.cl ../run/ $(CP) opencl_*.h ../run/ +linux-x86-clang: + $(LN) x86-sse.h arch.h + @echo "#define JOHN_BLD" '"'$@'"' > john_build_rule.h + $(MAKE) $(PROJ) \ + JOHN_OBJS="$(JOHN_OBJS) c3_fmt.o x86.o x86-sse.o sha1-mmx.o md4-mmx.o md5-mmx.o sse-intrinsics.o" \ + CFLAGS="-c -O2 -I/usr/include -msse2 -DHAVE_CRYPT -DHAVE_DL" \ + LDFLAGS="-lm -lssl -lcrypto -lcrypt -ldl -lz" \ + CPP="clang" CC="clang" AS="clang" LD="clang" + +linux-x86-clang-debug: + $(LN) x86-sse.h arch.h + @echo "#define JOHN_BLD" '"'$@'"' > john_build_rule.h + $(MAKE) $(PROJ) \ + JOHN_OBJS="$(JOHN_OBJS) c3_fmt.o x86.o x86-sse.o sha1-mmx.o md4-mmx.o md5-mmx.o sse-intrinsics.o" \ + CFLAGS="-c -g -O1 -faddress-sanitizer -I/usr/include -msse2 -DHAVE_CRYPT -DHAVE_DL" \ + LDFLAGS="-lm -lssl -lcrypto -lcrypt -ldl -lz -faddress-sanitizer" \ + CPP="clang" CC="clang" AS="clang" LD="clang" + linux-x86-cuda: $(LN) x86-sse.h arch.h @echo "#define JOHN_BLD" '"'$@'"' > john_build_rule.h -- 1.7.11