gfx/qcms/Makefile.in
author Gregory Szorc <gps@mozilla.com>
Tue, 19 Nov 2013 10:16:51 -0800
changeset 171969 644408afbf21fe1f06cfa6693d5688ad15c8b337
parent 159436 45097bc3a57898f22a4f3b74f8f8cf7511f5d0a4
child 188260 b522f84cf8f843ce8428b0311e5b6720518bcdd9
permissions -rw-r--r--
Backed out 4 changesets (c0e8f2c0465f::608c663f691f) (bug 928195) for landing prematurely

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

ifeq (86,$(findstring 86,$(OS_TEST)))
CSRCS += transform-sse2.c
ifdef _MSC_VER
ifneq ($(OS_ARCH)_$(OS_TEST),WINNT_x86_64)
	CSRCS += transform-sse1.c
endif
else
	CSRCS += transform-sse1.c
ifdef GNU_CC
	SSE1_FLAGS=-msse
	SSE2_FLAGS=-msse2
else
ifeq ($(SOLARIS_SUNPRO_CC),1)
ifneq (64,$(findstring 64,$(OS_TEST)))
	SSE1_FLAGS=-xarch=sse
	SSE2_FLAGS=-xarch=sse2
else
# Sun Studio doesn't work correctly for x86 intristics
# with -m64 and without optimization.
	SSE1_FLAGS= -xO4
	SSE2_FLAGS= -xO4
endif
else
	SSE1_FLAGS=
	SSE2_FLAGS=
endif
endif
endif
else
ifeq (ppc,$(findstring ppc,$(CPU_ARCH)))
ifdef GNU_CC
	CSRCS += transform-altivec.c
	ALTIVEC_FLAGS=-maltivec
endif
endif
endif

include $(topsrcdir)/config/rules.mk

CFLAGS          += -DMOZ_QCMS

# Disable spammy "missing initializer" GCC warning
ifdef GNU_CC
CFLAGS += -Wno-missing-field-initializers
endif # GNU_CC

# special rules for transform-sse*.c to get the right cflags. (taken from pixman/src/Makefile.in)
transform-sse1.$(OBJ_SUFFIX): COMPILE_CFLAGS += $(SSE1_FLAGS)

transform-sse2.$(OBJ_SUFFIX): COMPILE_CFLAGS += $(SSE2_FLAGS)

transform-altivec.$(OBJ_SUFFIX): COMPILE_CFLAGS += $(ALTIVEC_FLAGS)