More SSE2-ification; fix for gcc -msse2.

Review URL:  http://codereview.appspot.com/154163



git-svn-id: http://skia.googlecode.com/svn/trunk@428 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/Makefile b/Makefile
index 0bf702c..7973c25 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@
 CC := gcc
 C_INCLUDES := -Iinclude/config -Iinclude/core -Iinclude/effects -Iinclude/images -Iinclude/utils
 CFLAGS := -Wall -g # -O2 
+CFLAGS_SSE2 = $(CFLAGS) -msse2
 LINKER_OPTS := -lpthread
 DEFINES := -DSK_CAN_USE_FLOAT
 HIDE = @
@@ -76,6 +77,11 @@
 	SRC_LIST += src/images/SkScaledBitmapSampler.cpp
 endif
 
+# For these files, and these files only, compile with -msse2.
+SSE2_OBJS := out/src/opts/SkBlitRow_opts_SSE2.o \
+             out/src/opts/SkUtils_opts_SSE2.o
+$(SSE2_OBJS) : CFLAGS := $(CFLAGS_SSE2)
+
 out/%.o : %.cpp
 	@mkdir -p $(dir $@)
 	$(HIDE)$(CC) $(C_INCLUDES) $(CFLAGS) $(DEFINES) -c $< -o $@