CLOSED TREE: TraceMonkey merge head. (a=blockers)
[mozilla-central.git] / gfx / qcms / Makefile.in
blob4dfd8395f8a76891d1d4c0f5041cd8de299325fa
1 DEPTH = ../..
2 topsrcdir = @top_srcdir@
3 srcdir = @srcdir@
4 VPATH = @srcdir@
6 include $(DEPTH)/config/autoconf.mk
8 MODULE = qcms
9 LIBRARY_NAME = mozqcms
10 LIBXUL_LIBRARY = 1
11 GRE_MODULE = 1
12 DIST_INSTALL = 1
14 EXPORTS = qcms.h qcmstypes.h
16 CSRCS = iccread.c transform.c
18 ifeq (86,$(findstring 86,$(OS_TEST)))
19 CSRCS += transform-sse2.c
20 ifdef _MSC_VER
21 ifneq ($(OS_ARCH)_$(OS_TEST),WINNT_x86_64)
22 CSRCS += transform-sse1.c
23 endif
24 else
25 CSRCS += transform-sse1.c
26 ifdef GNU_CC
27 SSE1_FLAGS=-msse
28 SSE2_FLAGS=-msse2
29 else
30 ifeq ($(SOLARIS_SUNPRO_CC),1)
31 ifneq (64,$(findstring 64,$(OS_TEST)))
32 SSE1_FLAGS=-xarch=sse
33 SSE2_FLAGS=-xarch=sse2
34 else
35 # Sun Studio doesn't work correctly for x86 intristics
36 # with -m64 and without optimization.
37 SSE1_FLAGS= -xO4
38 SSE2_FLAGS= -xO4
39 endif
40 else
41 SSE1_FLAGS=
42 SSE2_FLAGS=
43 endif
44 endif
45 endif
46 endif
48 FORCE_STATIC_LIB = 1
49 # This library is used by other shared libs
50 FORCE_USE_PIC = 1
52 include $(topsrcdir)/config/rules.mk
54 CFLAGS += -DMOZ_QCMS
56 # Disable spammy "missing initializer" GCC warning
57 ifdef GNU_CC
58 CFLAGS += -Wno-missing-field-initializers
59 endif # GNU_CC
61 # special rules for transform-sse*.c to get the right cflags. (taken from pixman/src/Makefile.in)
62 transform-sse1.$(OBJ_SUFFIX): transform-sse1.c $(GLOBAL_DEPS)
63 $(REPORT_BUILD)
64 @$(MAKE_DEPS_AUTO_CC)
65 $(ELOG) $(CC) $(OUTOPTION)$@ -c $(COMPILE_CFLAGS) $(SSE1_FLAGS) $(_VPATH_SRCS)
67 transform-sse2.$(OBJ_SUFFIX): transform-sse2.c $(GLOBAL_DEPS)
68 $(REPORT_BUILD)
69 @$(MAKE_DEPS_AUTO_CC)
70 $(ELOG) $(CC) $(OUTOPTION)$@ -c $(COMPILE_CFLAGS) $(SSE2_FLAGS) $(_VPATH_SRCS)