This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 305
/
Makefile.in
169 lines (152 loc) · 3.1 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#
# 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/.
DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = jpeg
LIBRARY_NAME = mozjpeg
ifeq ($(OS_ARCH),WINNT)
VISIBILITY_FLAGS =
endif
CSRCS = \
jcomapi.c \
jdapimin.c \
jdapistd.c \
jdatadst.c \
jdatasrc.c \
jdcoefct.c \
jdcolor.c \
jddctmgr.c \
jdhuff.c \
jdinput.c \
jdmainct.c \
jdmarker.c \
jdmaster.c \
jdmerge.c \
jdphuff.c \
jdpostct.c \
jdsample.c \
jdtrans.c \
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 \
$(NULL)
# These files enable support for writing JPEGs
CSRCS += \
jcapimin.c \
jcapistd.c \
jccoefct.c \
jccolor.c \
jcdctmgr.c \
jchuff.c \
jcinit.c \
jcmainct.c \
jcmarker.c \
jcmaster.c \
jcparam.c \
jcphuff.c \
jcprepct.c \
jcsample.c \
jctrans.c \
$(NULL)
AS=$(LIBJPEG_TURBO_AS)
ASM_SUFFIX=asm
ASFLAGS=$(LIBJPEG_TURBO_ASFLAGS) -I$(topsrcdir)/media/libjpeg/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)$(LIBJPEG_TURBO_ARM_ASM))
CSRCS += jsimd_none.c
endif
ifeq (1,$(LIBJPEG_TURBO_ARM_ASM))
CSRCS += simd/jsimd_arm.c
SSRCS += simd/jsimd_arm_neon.S
endif
ifeq (1,$(LIBJPEG_TURBO_X64_ASM))
CSRCS += simd/jsimd_x86_64.c
ASFILES += \
simd/jccolss2-64.asm \
simd/jcgrass2-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/jcgrammx.asm \
simd/jcgrass2.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
EXPORTS = \
jconfig.h \
jerror.h \
jinclude.h \
jmorecfg.h \
jpegint.h \
jpeglib.h \
$(NULL)
# need static lib for some of the libimg componentry to link properly
FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
jpeg_nbits_table.h: $(srcdir)/genTables.py
$(PYTHON) $(srcdir)/genTables.py
jchuff.$(OBJ_SUFFIX): jpeg_nbits_table.h