aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-05 15:50:27 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-05 15:50:27 +0000
commit1fcd51e6b2a210a37b9b9c2cfb82e1be7196e42a (patch)
treea4484338560ed16adffe22f52a2cb2401901208d /Makefile
parent62f465940d57139dfd83e2aef67081017a232417 (diff)
add template macro to "safely" perform casts w/o breaking strict-aliasing
fix aliasing warnings git-svn-id: http://skia.googlecode.com/svn/trunk@674 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5829d07978..4afa0df929 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ CC := gcc
GPP := g++
C_INCLUDES := -Iinclude/config -Iinclude/core -Iinclude/effects -Iinclude/images -Iinclude/gpu -Iinclude/utils -Igpu/include
-CFLAGS := -Wall -O2
+CFLAGS := -Wall -O2 -fstrict-aliasing
CFLAGS_SSE2 = $(CFLAGS) -msse2
LINKER_OPTS := -lpthread -lz
DEFINES := -DSK_CAN_USE_FLOAT
@@ -126,7 +126,7 @@ out/%.o : %.cpp
@mkdir -p $(dir $@)
$(HIDE)$(CC) $(C_INCLUDES) $(CFLAGS) $(DEFINES) -c $< -o $@
@echo "compiling $@"
-
+
%.s : %.cpp
@mkdir -p $(dir $@)
$(CC) $(C_INCLUDES) $(CFLAGS) $(DEFINES) -S -c $< -o $@
@@ -163,7 +163,7 @@ BENCH_OBJS := $(addprefix out/, $(BENCH_OBJS))
bench: $(BENCH_OBJS) out/libskia.a
@echo "linking bench..."
$(HIDE)$(GPP) $(BENCH_OBJS) out/libskia.a -o out/bench/bench $(LINKER_OPTS)
-
+
##############################################################################
# we let tests cheat and see private headers, so we can unittest modules
@@ -181,7 +181,7 @@ TESTS_OBJS := $(addprefix out/, $(TESTS_OBJS))
tests: $(TESTS_OBJS) out/libskia.a
@echo "linking tests..."
$(HIDE)$(GPP) $(TESTS_OBJS) out/libskia.a -o out/tests/tests $(LINKER_OPTS)
-
+
##############################################################################
SKIMAGE_SRCS := skimage_main.cpp