| OLD | NEW |
| (Empty) |
| 1 DEPTH = ../.. | |
| 2 topsrcdir = @top_srcdir@ | |
| 3 srcdir = @srcdir@ | |
| 4 VPATH = @srcdir@ | |
| 5 | |
| 6 include $(DEPTH)/config/autoconf.mk | |
| 7 | |
| 8 MODULE = qcms | |
| 9 LIBRARY_NAME = mozqcms | |
| 10 LIBXUL_LIBRARY = 1 | |
| 11 GRE_MODULE = 1 | |
| 12 DIST_INSTALL = 1 | |
| 13 | |
| 14 EXPORTS = qcms.h qcmstypes.h | |
| 15 | |
| 16 CSRCS = iccread.c transform.c | |
| 17 | |
| 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 | |
| 47 | |
| 48 FORCE_STATIC_LIB = 1 | |
| 49 # This library is used by other shared libs | |
| 50 FORCE_USE_PIC = 1 | |
| 51 | |
| 52 include $(topsrcdir)/config/rules.mk | |
| 53 | |
| 54 CFLAGS += -DMOZ_QCMS | |
| 55 | |
| 56 # Disable spammy "missing initializer" GCC warning | |
| 57 ifdef GNU_CC | |
| 58 CFLAGS += -Wno-missing-field-initializers | |
| 59 endif # GNU_CC | |
| 60 | |
| 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) | |
| 66 | |
| 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) | |
| OLD | NEW |