summaryrefslogtreecommitdiff
path: root/gfx/qcms/Makefile.in
blob: 625d025b2a1f3e4ad5de91fc237612d8af9d5ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# 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/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MSVC_ENABLE_PGO := 1
LIBXUL_LIBRARY = 1

CSRCS = \
  chain.c \
  iccread.c \
  matrix.c \
  transform.c \
  transform_util.c \
  $(NULL)

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

FORCE_STATIC_LIB = 1

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)