From: Oliver Korff <ok@xynyx.de>
Description: This patch makes it possible to build arch specific versions
 It was necessary because -march=k8 does not build on all platforms
Last-Update: 2011-10-28

--- a/makefile
+++ b/makefile
@@ -2,7 +2,8 @@
 
 ####### choose the line that makes the binary faster on your machine
 # CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops
-CFLAGS = -O0 -Wall -Werror  -fomit-frame-pointer -march=k8 -std=c99 -D_GNU_SOURCE
+# CFLAGS = -O0 -Wall -Werror  -fomit-frame-pointer -march=k8 -std=c99 -D_GNU_SOURCE
+CFLAGS = -O0 -Wall -Werror  -fomit-frame-pointer -std=c99 -D_GNU_SOURCE
 
 ####### debug/tuning options for developers
 # CFLAGS = -O -Wall -g3 -static
@@ -29,6 +30,9 @@
 phalanx: .o $(OBJ)
 	$(CC) $(CFLAGS) $(DEFINES) $(OBJ) $(LDFLAGS) -o phalanx
 
+optimized:
+	@$(MAKE) CFLAGS='$(CFLAGS) -march=k8' phalanx
+
 .o/%.o: makefile %.c
 	$(CC) $(CFLAGS) $(DEFINES) -c $*.c -o .o/$*.o
 
