1998-08-19 20:42:14 +00:00
|
|
|
#
|
2012-05-29 15:52:43 +00:00
|
|
|
# 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/.
|
1998-08-19 20:42:14 +00:00
|
|
|
|
2012-08-04 18:26:44 +00:00
|
|
|
DEPTH = @DEPTH@
|
1998-08-19 20:42:14 +00:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
1999-09-11 03:12:45 +00:00
|
|
|
VPATH = @srcdir@
|
1998-08-19 20:42:14 +00:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2010-07-19 17:34:41 +00:00
|
|
|
DIRS = simd
|
1998-08-19 20:42:14 +00:00
|
|
|
MODULE = jpeg
|
2001-03-09 23:53:17 +00:00
|
|
|
LIBRARY_NAME = mozjpeg
|
1998-08-19 20:42:14 +00:00
|
|
|
|
2001-12-18 09:14:29 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2012-05-02 13:28:52 +00:00
|
|
|
VISIBILITY_FLAGS =
|
2011-02-09 06:51:25 +00:00
|
|
|
endif
|
1998-08-19 20:42:14 +00:00
|
|
|
|
1999-09-11 03:12:45 +00:00
|
|
|
CSRCS = \
|
2010-07-19 17:34:41 +00:00
|
|
|
jcomapi.c \
|
1999-09-11 03:12:45 +00:00
|
|
|
jdapimin.c \
|
|
|
|
jdapistd.c \
|
|
|
|
jdatadst.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
jdatasrc.c \
|
|
|
|
jdcoefct.c \
|
|
|
|
jdcolor.c \
|
|
|
|
jddctmgr.c \
|
|
|
|
jdhuff.c \
|
1999-09-11 03:12:45 +00:00
|
|
|
jdinput.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
jdmainct.c \
|
1999-09-11 03:12:45 +00:00
|
|
|
jdmarker.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
jdmaster.c \
|
|
|
|
jdmerge.c \
|
1999-09-11 03:12:45 +00:00
|
|
|
jdphuff.c \
|
|
|
|
jdpostct.c \
|
|
|
|
jdsample.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
jdtrans.c \
|
1999-09-11 03:12:45 +00:00
|
|
|
jerror.c \
|
|
|
|
jfdctflt.c \
|
|
|
|
jfdctfst.c \
|
|
|
|
jfdctint.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
jidctflt.c \
|
|
|
|
jidctfst.c \
|
|
|
|
jidctint.c \
|
|
|
|
jidctred.c \
|
|
|
|
jmemmgr.c \
|
|
|
|
jmemnobs.c \
|
|
|
|
jquant1.c \
|
|
|
|
jquant2.c \
|
|
|
|
jutils.c \
|
1999-09-11 03:12:45 +00:00
|
|
|
$(NULL)
|
1998-08-19 20:42:14 +00:00
|
|
|
|
2005-11-15 18:36:57 +00:00
|
|
|
# These files enable support for writing JPEGs
|
1999-09-11 03:12:45 +00:00
|
|
|
CSRCS += \
|
|
|
|
jcapimin.c \
|
|
|
|
jcapistd.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
jccoefct.c \
|
|
|
|
jccolor.c \
|
|
|
|
jcdctmgr.c \
|
|
|
|
jchuff.c \
|
1999-09-11 03:12:45 +00:00
|
|
|
jcinit.c \
|
|
|
|
jcmainct.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
jcmarker.c \
|
1999-09-11 03:12:45 +00:00
|
|
|
jcmaster.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
jcparam.c \
|
1999-09-11 03:12:45 +00:00
|
|
|
jcphuff.c \
|
|
|
|
jcprepct.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
jcsample.c \
|
2012-02-11 08:34:00 +00:00
|
|
|
jctrans.c \
|
2010-07-19 17:34:41 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
AS=$(LIBJPEG_TURBO_AS)
|
|
|
|
ASM_SUFFIX=asm
|
2011-10-18 04:25:53 +00:00
|
|
|
ASFLAGS=$(LIBJPEG_TURBO_ASFLAGS) -I$(topsrcdir)/media/libjpeg/simd/
|
2010-07-19 17:34:41 +00:00
|
|
|
|
|
|
|
ifeq ($(AS),yasm)
|
|
|
|
# yasm doesn't like -c
|
|
|
|
AS_DASH_C_FLAG=
|
|
|
|
endif
|
|
|
|
|
|
|
|
# No SIMD support?
|
2012-02-11 08:34:00 +00:00
|
|
|
ifeq (,$(LIBJPEG_TURBO_X86_ASM)$(LIBJPEG_TURBO_X64_ASM)$(LIBJPEG_TURBO_ARM_ASM))
|
2010-07-19 17:34:41 +00:00
|
|
|
CSRCS += jsimd_none.c
|
|
|
|
endif
|
|
|
|
|
2012-02-11 08:34:00 +00:00
|
|
|
ifeq (1,$(LIBJPEG_TURBO_ARM_ASM))
|
|
|
|
CSRCS += simd/jsimd_arm.c
|
|
|
|
SSRCS += simd/jsimd_arm_neon.S
|
|
|
|
endif
|
|
|
|
|
2010-07-19 17:34:41 +00:00
|
|
|
ifeq (1,$(LIBJPEG_TURBO_X64_ASM))
|
|
|
|
CSRCS += simd/jsimd_x86_64.c
|
|
|
|
ASFILES += \
|
|
|
|
simd/jccolss2-64.asm \
|
2012-02-11 08:34:00 +00:00
|
|
|
simd/jcgrass2-64.asm \
|
2010-07-19 17:34:41 +00:00
|
|
|
simd/jcqnts2f-64.asm \
|
|
|
|
simd/jcqnts2i-64.asm \
|
|
|
|
simd/jcsamss2-64.asm \
|
|
|
|
simd/jdcolss2-64.asm \
|
|
|
|
simd/jdmerss2-64.asm \
|
|
|
|
simd/jdsamss2-64.asm \
|
|
|
|
simd/jfss2fst-64.asm \
|
|
|
|
simd/jfss2int-64.asm \
|
|
|
|
simd/jfsseflt-64.asm \
|
|
|
|
simd/jiss2flt-64.asm \
|
|
|
|
simd/jiss2fst-64.asm \
|
|
|
|
simd/jiss2int-64.asm \
|
|
|
|
simd/jiss2red-64.asm \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (1,$(LIBJPEG_TURBO_X86_ASM))
|
|
|
|
CSRCS +=simd/jsimd_i386.c
|
|
|
|
ASFILES += \
|
|
|
|
simd/jccolmmx.asm \
|
|
|
|
simd/jccolss2.asm \
|
2012-02-11 08:34:00 +00:00
|
|
|
simd/jcgrammx.asm \
|
|
|
|
simd/jcgrass2.asm \
|
2010-07-19 17:34:41 +00:00
|
|
|
simd/jcqnt3dn.asm \
|
|
|
|
simd/jcqntmmx.asm \
|
|
|
|
simd/jcqnts2f.asm \
|
|
|
|
simd/jcqnts2i.asm \
|
|
|
|
simd/jcqntsse.asm \
|
|
|
|
simd/jcsammmx.asm \
|
|
|
|
simd/jcsamss2.asm \
|
|
|
|
simd/jdcolmmx.asm \
|
|
|
|
simd/jdcolss2.asm \
|
|
|
|
simd/jdmermmx.asm \
|
|
|
|
simd/jdmerss2.asm \
|
|
|
|
simd/jdsammmx.asm \
|
|
|
|
simd/jdsamss2.asm \
|
|
|
|
simd/jf3dnflt.asm \
|
|
|
|
simd/jfmmxfst.asm \
|
|
|
|
simd/jfmmxint.asm \
|
|
|
|
simd/jfss2fst.asm \
|
|
|
|
simd/jfss2int.asm \
|
|
|
|
simd/jfsseflt.asm \
|
|
|
|
simd/ji3dnflt.asm \
|
|
|
|
simd/jimmxfst.asm \
|
|
|
|
simd/jimmxint.asm \
|
|
|
|
simd/jimmxred.asm \
|
|
|
|
simd/jiss2flt.asm \
|
|
|
|
simd/jiss2fst.asm \
|
|
|
|
simd/jiss2int.asm \
|
|
|
|
simd/jiss2red.asm \
|
|
|
|
simd/jisseflt.asm \
|
|
|
|
simd/jsimdcpu.asm \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-02-11 08:34:00 +00:00
|
|
|
EXPORTS = \
|
|
|
|
jconfig.h \
|
|
|
|
jerror.h \
|
|
|
|
jinclude.h \
|
|
|
|
jmorecfg.h \
|
|
|
|
jpegint.h \
|
|
|
|
jpeglib.h \
|
|
|
|
$(NULL)
|
1998-08-19 20:42:14 +00:00
|
|
|
|
1999-05-17 19:20:28 +00:00
|
|
|
# need static lib for some of the libimg componentry to link properly
|
2001-06-18 22:10:38 +00:00
|
|
|
FORCE_STATIC_LIB = 1
|
1999-05-17 19:20:28 +00:00
|
|
|
|
1998-08-19 20:42:14 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2012-12-17 00:20:01 +00:00
|
|
|
|
|
|
|
.PHONY: CONSTANT_TABLES
|
|
|
|
CONSTANT_TABLES:
|
|
|
|
$(PYTHON) $(srcdir)/genTables.py
|
|
|
|
|
|
|
|
jchuff.$(OBJ_SUFFIX): CONSTANT_TABLES
|