pjs/jpeg/Makefile.in

199 строки
4.4 KiB
Makefile
Исходник Обычный вид История

1998-08-20 00:42:14 +04:00
#
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
1998-08-20 00:42:14 +04:00
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
1998-08-20 00:42:14 +04:00
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Mozilla Corporation
# Portions created by the Initial Developer are Copyright (C) 2010
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Justin Lebar <justin.lebar@gmail.com>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
1998-08-20 00:42:14 +04:00
#
# ***** END LICENSE BLOCK *****
1998-08-20 00:42:14 +04:00
DEPTH = ..
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
DIRS = simd
1998-08-20 00:42:14 +04:00
MODULE = jpeg
LIBRARY_NAME = mozjpeg
1998-08-20 00:42:14 +04:00
ifeq ($(OS_ARCH),WINNT)
LIBRARY_NAME = jpeg32$(VERSION_NUMBER)
ifneq ($(OS_TEST),x86_64)
# FIXME: bug 413019
ifndef GNU_CC
OS_COMPILE_CFLAGS += -GL-
endif
endif
endif
1998-08-20 00:42:14 +04:00
GRE_MODULE = 1
1999-09-11 07:12:45 +04:00
CSRCS = \
jcomapi.c \
1999-09-11 07:12:45 +04:00
jdapimin.c \
jdapistd.c \
jdatadst.c \
jdatasrc.c \
jdcoefct.c \
jdcolor.c \
jddctmgr.c \
jdhuff.c \
1999-09-11 07:12:45 +04:00
jdinput.c \
jdmainct.c \
1999-09-11 07:12:45 +04:00
jdmarker.c \
jdmaster.c \
jdmerge.c \
1999-09-11 07:12:45 +04:00
jdphuff.c \
jdpostct.c \
jdsample.c \
jdtrans.c \
1999-09-11 07:12:45 +04:00
jerror.c \
jfdctflt.c \
jfdctfst.c \
jfdctint.c \
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 \
jccoefct.c \
jccolor.c \
jcdctmgr.c \
jchuff.c \
1999-09-11 07:12:45 +04:00
jcinit.c \
jcmainct.c \
jcmarker.c \
1999-09-11 07:12:45 +04:00
jcmaster.c \
jcparam.c \
1999-09-11 07:12:45 +04:00
jcphuff.c \
jcprepct.c \
jcsample.c \
$(NULL)
AS=$(LIBJPEG_TURBO_AS)
ASM_SUFFIX=asm
ASFLAGS=$(LIBJPEG_TURBO_ASFLAGS) -I$(topsrcdir)/modules/libjpeg-turbo/simd/
ifeq ($(AS),yasm)
# yasm doesn't like -c
AS_DASH_C_FLAG=
endif
# No SIMD support?
ifeq (,$(LIBJPEG_TURBO_X86_ASM)$(LIBJPEG_TURBO_X64_ASM))
CSRCS += jsimd_none.c
endif
ifeq (1,$(LIBJPEG_TURBO_X64_ASM))
CSRCS += simd/jsimd_x86_64.c
ASFILES += \
simd/jccolss2-64.asm \
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 \
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
# jwinfig.h, jos2fig.h ? XXX
EXPORTS = \
jconfig.h \
jerror.h \
jinclude.h \
jmorecfg.h \
jpegint.h \
jpeglib.h \
1999-09-11 07:12:45 +04:00
$(NULL)
1998-08-20 00:42:14 +04:00
# need static lib for some of the libimg componentry to link properly
FORCE_STATIC_LIB = 1
1998-08-20 00:42:14 +04:00
include $(topsrcdir)/config/rules.mk