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