blob: 757e068d2a9629d34d2d50e238b36fce0b0d3715 [file] [log] [blame]
John Koleszar0ea50ce2010-05-18 11:58:33 -04001##
John Koleszarc2140b82010-09-09 08:16:39 -04002## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar0ea50ce2010-05-18 11:58:33 -04003##
John Koleszar94c52e42010-06-18 12:39:21 -04004## Use of this source code is governed by a BSD-style license
John Koleszar09202d82010-06-04 16:19:40 -04005## that can be found in the LICENSE file in the root of the source
6## tree. An additional intellectual property rights grant can be found
John Koleszar94c52e42010-06-18 12:39:21 -04007## in the file PATENTS. All contributing project authors may
John Koleszar09202d82010-06-04 16:19:40 -04008## be found in the AUTHORS file in the root of the source tree.
John Koleszar0ea50ce2010-05-18 11:58:33 -04009##
10
11
Johann128d2c22011-03-02 09:44:39 -050012# ARM assembly files are written in RVCT-style. We use some make magic to
13# filter those files to allow GCC compilation
14ifeq ($(ARCH_ARM),yes)
15 ASM:=$(if $(filter yes,$(CONFIG_GCC)),.asm.s,.asm)
16else
17 ASM:=.asm
18endif
John Koleszar0ea50ce2010-05-18 11:58:33 -040019
John Koleszar4d86ef32010-06-22 08:44:48 -040020CODEC_SRCS-yes += libs.mk
21
John Koleszarb7492342010-05-24 11:39:59 -040022include $(SRC_PATH_BARE)/vpx/vpx_codec.mk
23CODEC_SRCS-yes += $(addprefix vpx/,$(call enabled,API_SRCS))
John Koleszar0ea50ce2010-05-18 11:58:33 -040024
25include $(SRC_PATH_BARE)/vpx_mem/vpx_mem.mk
26CODEC_SRCS-yes += $(addprefix vpx_mem/,$(call enabled,MEM_SRCS))
27
28include $(SRC_PATH_BARE)/vpx_scale/vpx_scale.mk
29CODEC_SRCS-yes += $(addprefix vpx_scale/,$(call enabled,SCALE_SRCS))
30
John Koleszar0ea50ce2010-05-18 11:58:33 -040031
32ifeq ($(CONFIG_VP8_ENCODER),yes)
33 VP8_PREFIX=vp8/
34 include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8cx.mk
35 CODEC_SRCS-yes += $(addprefix $(VP8_PREFIX),$(call enabled,VP8_CX_SRCS))
36 CODEC_EXPORTS-yes += $(addprefix $(VP8_PREFIX),$(VP8_CX_EXPORTS))
John Koleszarb7492342010-05-24 11:39:59 -040037 CODEC_SRCS-yes += $(VP8_PREFIX)vp8cx.mk vpx/vp8.h vpx/vp8cx.h vpx/vp8e.h
Johann3e8c6d32011-08-01 17:16:10 -040038 CODEC_SRCS-$(ARCH_ARM) += $(VP8_PREFIX)vp8cx_arm.mk
John Koleszarb7492342010-05-24 11:39:59 -040039 INSTALL-LIBS-yes += include/vpx/vp8.h include/vpx/vp8e.h include/vpx/vp8cx.h
40 INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/$(VP8_PREFIX)/%
41 CODEC_DOC_SRCS += vpx/vp8.h vpx/vp8cx.h
John Koleszar0ea50ce2010-05-18 11:58:33 -040042 CODEC_DOC_SECTIONS += vp8 vp8_encoder
43endif
44
45ifeq ($(CONFIG_VP8_DECODER),yes)
46 VP8_PREFIX=vp8/
47 include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8dx.mk
48 CODEC_SRCS-yes += $(addprefix $(VP8_PREFIX),$(call enabled,VP8_DX_SRCS))
49 CODEC_EXPORTS-yes += $(addprefix $(VP8_PREFIX),$(VP8_DX_EXPORTS))
John Koleszarb7492342010-05-24 11:39:59 -040050 CODEC_SRCS-yes += $(VP8_PREFIX)vp8dx.mk vpx/vp8.h vpx/vp8dx.h
Johann3e8c6d32011-08-01 17:16:10 -040051 CODEC_SRCS-$(ARCH_ARM) += $(VP8_PREFIX)vp8dx_arm.mk
John Koleszarb7492342010-05-24 11:39:59 -040052 INSTALL-LIBS-yes += include/vpx/vp8.h include/vpx/vp8dx.h
53 INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/$(VP8_PREFIX)/%
54 CODEC_DOC_SRCS += vpx/vp8.h vpx/vp8dx.h
John Koleszar0ea50ce2010-05-18 11:58:33 -040055 CODEC_DOC_SECTIONS += vp8 vp8_decoder
56endif
57
58
59ifeq ($(CONFIG_ENCODERS),yes)
60 CODEC_DOC_SECTIONS += encoder
61endif
62ifeq ($(CONFIG_DECODERS),yes)
63 CODEC_DOC_SECTIONS += decoder
64endif
65
66
67ifeq ($(CONFIG_MSVS),yes)
68CODEC_LIB=$(if $(CONFIG_STATIC_MSVCRT),vpxmt,vpxmd)
69# This variable uses deferred expansion intentionally, since the results of
70# $(wildcard) may change during the course of the Make.
71VS_PLATFORMS = $(foreach d,$(wildcard */Release/$(CODEC_LIB).lib),$(word 1,$(subst /, ,$(d))))
John Koleszar0ea50ce2010-05-18 11:58:33 -040072endif
73
74# The following pairs define a mapping of locations in the distribution
75# tree to locations in the source/build trees.
John Koleszarb7492342010-05-24 11:39:59 -040076INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/vpx/%
77INSTALL_MAPS += include/vpx/% $(SRC_PATH_BARE)/vpx_ports/%
John Koleszar670af3a2010-05-26 15:57:42 -040078INSTALL_MAPS += $(LIBSUBDIR)/% %
John Koleszar0ea50ce2010-05-18 11:58:33 -040079INSTALL_MAPS += src/% $(SRC_PATH_BARE)/%
80ifeq ($(CONFIG_MSVS),yes)
John Koleszar670af3a2010-05-26 15:57:42 -040081INSTALL_MAPS += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/% $(p)/Release/%)
82INSTALL_MAPS += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/% $(p)/Debug/%)
John Koleszar0ea50ce2010-05-18 11:58:33 -040083endif
84
85# If this is a universal (fat) binary, then all the subarchitectures have
86# already been built and our job is to stitch them together. The
87# BUILD_LIBVPX variable indicates whether we should be building
88# (compiling, linking) the library. The LIPO_LIBVPX variable indicates
89# that we're stitching.
90$(eval $(if $(filter universal%,$(TOOLCHAIN)),LIPO_LIBVPX,BUILD_LIBVPX):=yes)
91
92CODEC_SRCS-$(BUILD_LIBVPX) += build/make/version.sh
John Koleszarb7492342010-05-24 11:39:59 -040093CODEC_SRCS-$(BUILD_LIBVPX) += vpx/vpx_integer.h
John Koleszar8ef25de2011-07-29 16:56:43 -040094CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/asm_offsets.h
John Koleszar0ea50ce2010-05-18 11:58:33 -040095CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/vpx_timer.h
96CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/mem.h
97CODEC_SRCS-$(BUILD_LIBVPX) += $(BUILD_PFX)vpx_config.c
98INSTALL-SRCS-no += $(BUILD_PFX)vpx_config.c
99ifeq ($(ARCH_X86)$(ARCH_X86_64),yes)
100CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/emms.asm
101CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86.h
102CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_abi_support.asm
Fritz Koenig0f5c63e2010-10-12 14:55:31 -0700103CODEC_SRCS-$(BUILD_LIBVPX) += vpx_ports/x86_cpuid.c
John Koleszar0ea50ce2010-05-18 11:58:33 -0400104endif
Timothy B. Terriberryb71962f2010-10-20 15:39:11 -0700105CODEC_SRCS-$(ARCH_ARM) += vpx_ports/arm_cpudetect.c
Johann3e8c6d32011-08-01 17:16:10 -0400106CODEC_SRCS-$(ARCH_ARM) += vpx_ports/arm.h
John Koleszar7aa97a32010-06-03 10:29:04 -0400107CODEC_EXPORTS-$(BUILD_LIBVPX) += vpx/exports_com
108CODEC_EXPORTS-$(CONFIG_ENCODERS) += vpx/exports_enc
109CODEC_EXPORTS-$(CONFIG_DECODERS) += vpx/exports_dec
John Koleszar0ea50ce2010-05-18 11:58:33 -0400110
John Koleszarb7492342010-05-24 11:39:59 -0400111INSTALL-LIBS-yes += include/vpx/vpx_codec.h
112INSTALL-LIBS-yes += include/vpx/vpx_image.h
113INSTALL-LIBS-yes += include/vpx/vpx_integer.h
114INSTALL-LIBS-yes += include/vpx/vpx_codec_impl_top.h
115INSTALL-LIBS-yes += include/vpx/vpx_codec_impl_bottom.h
116INSTALL-LIBS-$(CONFIG_DECODERS) += include/vpx/vpx_decoder.h
117INSTALL-LIBS-$(CONFIG_DECODERS) += include/vpx/vpx_decoder_compat.h
118INSTALL-LIBS-$(CONFIG_ENCODERS) += include/vpx/vpx_encoder.h
John Koleszar0ea50ce2010-05-18 11:58:33 -0400119ifeq ($(CONFIG_EXTERNAL_BUILD),yes)
120ifeq ($(CONFIG_MSVS),yes)
John Koleszar670af3a2010-05-26 15:57:42 -0400121INSTALL-LIBS-yes += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/$(CODEC_LIB).lib)
122INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/$(CODEC_LIB)d.lib)
123INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/vpx.dll)
124INSTALL-LIBS-$(CONFIG_SHARED) += $(foreach p,$(VS_PLATFORMS),$(LIBSUBDIR)/$(p)/vpx.exp)
John Koleszar0ea50ce2010-05-18 11:58:33 -0400125endif
126else
James Zern495b2412011-07-25 15:40:36 -0700127INSTALL-LIBS-$(CONFIG_STATIC) += $(LIBSUBDIR)/libvpx.a
John Koleszar670af3a2010-05-26 15:57:42 -0400128INSTALL-LIBS-$(CONFIG_DEBUG_LIBS) += $(LIBSUBDIR)/libvpx_g.a
John Koleszar0ea50ce2010-05-18 11:58:33 -0400129endif
130
131CODEC_SRCS=$(call enabled,CODEC_SRCS)
132INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(CODEC_SRCS)
133INSTALL-SRCS-$(CONFIG_CODEC_SRCS) += $(call enabled,CODEC_EXPORTS)
134
135ifeq ($(CONFIG_EXTERNAL_BUILD),yes)
136ifeq ($(CONFIG_MSVS),yes)
137
Johann128d2c22011-03-02 09:44:39 -0500138obj_int_extract.vcproj: $(SRC_PATH_BARE)/build/make/obj_int_extract.c
139 @cp $(SRC_PATH_BARE)/build/x86-msvs/obj_int_extract.bat .
140 @echo " [CREATE] $@"
141 $(SRC_PATH_BARE)/build/make/gen_msvs_proj.sh \
142 --exe \
143 --target=$(TOOLCHAIN) \
144 --name=obj_int_extract \
145 --ver=$(CONFIG_VS_VERSION) \
146 --proj-guid=E1360C65-D375-4335-8057-7ED99CC3F9B2 \
147 $(if $(CONFIG_STATIC_MSVCRT),--static-crt) \
148 --out=$@ $^ \
149 -I. \
150 -I"$(SRC_PATH_BARE)" \
151
152PROJECTS-$(BUILD_LIBVPX) += obj_int_extract.vcproj
153PROJECTS-$(BUILD_LIBVPX) += obj_int_extract.bat
154
John Koleszar0ea50ce2010-05-18 11:58:33 -0400155vpx.def: $(call enabled,CODEC_EXPORTS)
156 @echo " [CREATE] $@"
157 $(SRC_PATH_BARE)/build/make/gen_msvs_def.sh\
158 --name=vpx\
159 --out=$@ $^
160CLEAN-OBJS += vpx.def
161
162vpx.vcproj: $(CODEC_SRCS) vpx.def
163 @echo " [CREATE] $@"
Johann128d2c22011-03-02 09:44:39 -0500164 $(SRC_PATH_BARE)/build/make/gen_msvs_proj.sh \
165 --lib \
166 --target=$(TOOLCHAIN) \
John Koleszar0ea50ce2010-05-18 11:58:33 -0400167 $(if $(CONFIG_STATIC_MSVCRT),--static-crt) \
Johann128d2c22011-03-02 09:44:39 -0500168 --name=vpx \
169 --proj-guid=DCE19DAF-69AC-46DB-B14A-39F0FAA5DB74 \
170 --module-def=vpx.def \
171 --ver=$(CONFIG_VS_VERSION) \
172 --out=$@ $(CFLAGS) $^ \
173 --src-path-bare="$(SRC_PATH_BARE)" \
John Koleszar0ea50ce2010-05-18 11:58:33 -0400174
175PROJECTS-$(BUILD_LIBVPX) += vpx.vcproj
176
177vpx.vcproj: vpx_config.asm
178
179endif
180else
181LIBVPX_OBJS=$(call objs,$(CODEC_SRCS))
182OBJS-$(BUILD_LIBVPX) += $(LIBVPX_OBJS)
John Koleszar06f58c02011-08-03 09:20:37 -0400183LIBS-$(if $(BUILD_LIBVPX),$(CONFIG_STATIC)) += $(BUILD_PFX)libvpx.a $(BUILD_PFX)libvpx_g.a
John Koleszar0ea50ce2010-05-18 11:58:33 -0400184$(BUILD_PFX)libvpx_g.a: $(LIBVPX_OBJS)
John Koleszar7aa97a32010-06-03 10:29:04 -0400185
186BUILD_LIBVPX_SO := $(if $(BUILD_LIBVPX),$(CONFIG_SHARED))
187LIBVPX_SO := libvpx.so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)
James Zern495b2412011-07-25 15:40:36 -0700188LIBS-$(BUILD_LIBVPX_SO) += $(BUILD_PFX)$(LIBVPX_SO)\
189 $(notdir $(LIBVPX_SO_SYMLINKS))
John Koleszar7aa97a32010-06-03 10:29:04 -0400190$(BUILD_PFX)$(LIBVPX_SO): $(LIBVPX_OBJS) libvpx.ver
Tero Rintaluoma5405bd92011-06-14 11:29:35 +0300191$(BUILD_PFX)$(LIBVPX_SO): extralibs += -lm
John Koleszar7aa97a32010-06-03 10:29:04 -0400192$(BUILD_PFX)$(LIBVPX_SO): SONAME = libvpx.so.$(VERSION_MAJOR)
193$(BUILD_PFX)$(LIBVPX_SO): SO_VERSION_SCRIPT = libvpx.ver
194LIBVPX_SO_SYMLINKS := $(addprefix $(LIBSUBDIR)/, \
195 libvpx.so libvpx.so.$(VERSION_MAJOR) \
196 libvpx.so.$(VERSION_MAJOR).$(VERSION_MINOR))
197
198libvpx.ver: $(call enabled,CODEC_EXPORTS)
199 @echo " [CREATE] $@"
200 $(qexec)echo "{ global:" > $@
201 $(qexec)for f in $?; do awk '{print $$2";"}' < $$f >>$@; done
202 $(qexec)echo "local: *; };" >> $@
203CLEAN-OBJS += libvpx.ver
204
James Zern495b2412011-07-25 15:40:36 -0700205define libvpx_symlink_template
206$(1): $(2)
207 @echo " [LN] $$@"
208 $(qexec)ln -sf $(LIBVPX_SO) $$@
209endef
210
211$(eval $(call libvpx_symlink_template,\
212 $(addprefix $(BUILD_PFX),$(notdir $(LIBVPX_SO_SYMLINKS))),\
213 $(BUILD_PFX)$(LIBVPX_SO)))
214$(eval $(call libvpx_symlink_template,\
215 $(addprefix $(DIST_DIR)/,$(LIBVPX_SO_SYMLINKS)),\
216 $(DIST_DIR)/$(LIBSUBDIR)/$(LIBVPX_SO)))
John Koleszar7aa97a32010-06-03 10:29:04 -0400217
218INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBVPX_SO_SYMLINKS)
219INSTALL-LIBS-$(CONFIG_SHARED) += $(LIBSUBDIR)/$(LIBVPX_SO)
Ralph Giles607f8422011-03-28 12:04:51 -0700220
221LIBS-$(BUILD_LIBVPX) += vpx.pc
222vpx.pc: config.mk libs.mk
223 @echo " [CREATE] $@"
224 $(qexec)echo '# pkg-config file from libvpx $(VERSION_STRING)' > $@
225 $(qexec)echo 'prefix=$(PREFIX)' >> $@
226 $(qexec)echo 'exec_prefix=$${prefix}' >> $@
227 $(qexec)echo 'libdir=$${prefix}/lib' >> $@
228 $(qexec)echo 'includedir=$${prefix}/include' >> $@
229 $(qexec)echo '' >> $@
230 $(qexec)echo 'Name: vpx' >> $@
231 $(qexec)echo 'Description: WebM Project VPx codec implementation' >> $@
232 $(qexec)echo 'Version: $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)' >> $@
233 $(qexec)echo 'Requires:' >> $@
234 $(qexec)echo 'Conflicts:' >> $@
235 $(qexec)echo 'Libs: -L$${libdir} -lvpx' >> $@
236 $(qexec)echo 'Cflags: -I$${includedir}' >> $@
237INSTALL-LIBS-yes += $(LIBSUBDIR)/pkgconfig/vpx.pc
238INSTALL_MAPS += $(LIBSUBDIR)/pkgconfig/%.pc %.pc
239CLEAN-OBJS += vpx.pc
John Koleszar0ea50ce2010-05-18 11:58:33 -0400240endif
241
242LIBS-$(LIPO_LIBVPX) += libvpx.a
243$(eval $(if $(LIPO_LIBVPX),$(call lipo_lib_template,libvpx.a)))
244
245#
246# Rule to make assembler configuration file from C configuration file
247#
248ifeq ($(ARCH_X86)$(ARCH_X86_64),yes)
249# YASM
250$(BUILD_PFX)vpx_config.asm: $(BUILD_PFX)vpx_config.h
251 @echo " [CREATE] $@"
252 @egrep "#define [A-Z0-9_]+ [01]" $< \
253 | awk '{print $$2 " equ " $$3}' > $@
254else
255ADS2GAS=$(if $(filter yes,$(CONFIG_GCC)),| $(ASM_CONVERSION))
256$(BUILD_PFX)vpx_config.asm: $(BUILD_PFX)vpx_config.h
257 @echo " [CREATE] $@"
258 @egrep "#define [A-Z0-9_]+ [01]" $< \
259 | awk '{print $$2 " EQU " $$3}' $(ADS2GAS) > $@
260 @echo " END" $(ADS2GAS) >> $@
261CLEAN-OBJS += $(BUILD_PFX)vpx_config.asm
262endif
263
264#
265# Add assembler dependencies for configuration and offsets
266#
Johann128d2c22011-03-02 09:44:39 -0500267$(filter %.s.o,$(OBJS-yes)): $(BUILD_PFX)vpx_config.asm
268$(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)vpx_config.asm
John Koleszar0ea50ce2010-05-18 11:58:33 -0400269
Johann40dcae92011-02-04 17:44:31 -0500270#
271# Calculate platform- and compiler-specific offsets for hand coded assembly
272#
Johann79327be2011-06-08 14:43:34 -0400273
274ifeq ($(filter icc gcc,$(TGT_CC)), $(TGT_CC))
John Koleszarc1bf6ca2011-08-03 08:43:43 -0400275 $(BUILD_PFX)asm_com_offsets.asm: $(BUILD_PFX)$(VP8_PREFIX)common/asm_com_offsets.c.S
Johann79327be2011-06-08 14:43:34 -0400276 grep EQU $< | tr -d '$$\#' $(ADS2GAS) > $@
John Koleszarc1bf6ca2011-08-03 08:43:43 -0400277 $(BUILD_PFX)$(VP8_PREFIX)common/asm_com_offsets.c.S: $(VP8_PREFIX)common/asm_com_offsets.c
278 CLEAN-OBJS += $(BUILD_PFX)asm_com_offsets.asm $(BUILD_PFX)$(VP8_PREFIX)common/asm_com_offsets.c.S
Johann79327be2011-06-08 14:43:34 -0400279
John Koleszarc1bf6ca2011-08-03 08:43:43 -0400280 $(BUILD_PFX)asm_enc_offsets.asm: $(BUILD_PFX)$(VP8_PREFIX)encoder/asm_enc_offsets.c.S
Johann79327be2011-06-08 14:43:34 -0400281 grep EQU $< | tr -d '$$\#' $(ADS2GAS) > $@
John Koleszarc1bf6ca2011-08-03 08:43:43 -0400282 $(BUILD_PFX)$(VP8_PREFIX)encoder/asm_enc_offsets.c.S: $(VP8_PREFIX)encoder/asm_enc_offsets.c
283 CLEAN-OBJS += $(BUILD_PFX)asm_enc_offsets.asm $(BUILD_PFX)$(VP8_PREFIX)encoder/asm_enc_offsets.c.S
Johann79327be2011-06-08 14:43:34 -0400284
John Koleszarc1bf6ca2011-08-03 08:43:43 -0400285 $(BUILD_PFX)asm_dec_offsets.asm: $(BUILD_PFX)$(VP8_PREFIX)decoder/asm_dec_offsets.c.S
Johann79327be2011-06-08 14:43:34 -0400286 grep EQU $< | tr -d '$$\#' $(ADS2GAS) > $@
John Koleszarc1bf6ca2011-08-03 08:43:43 -0400287 $(BUILD_PFX)$(VP8_PREFIX)decoder/asm_dec_offsets.c.S: $(VP8_PREFIX)decoder/asm_dec_offsets.c
288 CLEAN-OBJS += $(BUILD_PFX)asm_dec_offsets.asm $(BUILD_PFX)$(VP8_PREFIX)decoder/asm_dec_offsets.c.S
Johann79327be2011-06-08 14:43:34 -0400289else
290 ifeq ($(filter rvct,$(TGT_CC)), $(TGT_CC))
Johann128d2c22011-03-02 09:44:39 -0500291 asm_com_offsets.asm: obj_int_extract
Johannabb7c212011-06-08 11:36:04 -0700292 asm_com_offsets.asm: $(VP8_PREFIX)common/asm_com_offsets.c.o
Johann40dcae92011-02-04 17:44:31 -0500293 ./obj_int_extract rvds $< $(ADS2GAS) > $@
Johann128d2c22011-03-02 09:44:39 -0500294 OBJS-yes += $(VP8_PREFIX)common/asm_com_offsets.c.o
295 CLEAN-OBJS += asm_com_offsets.asm
296 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_com_offsets.asm
Johann40dcae92011-02-04 17:44:31 -0500297
Johann79327be2011-06-08 14:43:34 -0400298 asm_enc_offsets.asm: obj_int_extract
299 asm_enc_offsets.asm: $(VP8_PREFIX)encoder/asm_enc_offsets.c.o
Johann40dcae92011-02-04 17:44:31 -0500300 ./obj_int_extract rvds $< $(ADS2GAS) > $@
Johann79327be2011-06-08 14:43:34 -0400301 OBJS-yes += $(VP8_PREFIX)encoder/asm_enc_offsets.c.o
302 CLEAN-OBJS += asm_enc_offsets.asm
303 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_enc_offsets.asm
Johann40dcae92011-02-04 17:44:31 -0500304
Johann79327be2011-06-08 14:43:34 -0400305 asm_dec_offsets.asm: obj_int_extract
306 asm_dec_offsets.asm: $(VP8_PREFIX)decoder/asm_dec_offsets.c.o
Johann40dcae92011-02-04 17:44:31 -0500307 ./obj_int_extract rvds $< $(ADS2GAS) > $@
Johann79327be2011-06-08 14:43:34 -0400308 OBJS-yes += $(VP8_PREFIX)decoder/asm_dec_offsets.c.o
309 CLEAN-OBJS += asm_dec_offsets.asm
310 $(filter %$(ASM).o,$(OBJS-yes)): $(BUILD_PFX)asm_dec_offsets.asm
Johann40dcae92011-02-04 17:44:31 -0500311 endif
312endif
313
John Koleszar0ea50ce2010-05-18 11:58:33 -0400314$(shell $(SRC_PATH_BARE)/build/make/version.sh "$(SRC_PATH_BARE)" $(BUILD_PFX)vpx_version.h)
315CLEAN-OBJS += $(BUILD_PFX)vpx_version.h
316
John Koleszarb7492342010-05-24 11:39:59 -0400317CODEC_DOC_SRCS += vpx/vpx_codec.h \
318 vpx/vpx_decoder.h \
319 vpx/vpx_encoder.h \
320 vpx/vpx_image.h
John Koleszar0ea50ce2010-05-18 11:58:33 -0400321
322CLEAN-OBJS += libs.doxy
323DOCS-yes += libs.doxy
324libs.doxy: $(CODEC_DOC_SRCS)
325 @echo " [CREATE] $@"
326 @rm -f $@
327 @echo "INPUT += $^" >> $@
328 @echo "PREDEFINED = VPX_CODEC_DISABLE_COMPAT" >> $@
329 @echo "INCLUDE_PATH += ." >> $@;
330 @echo "ENABLED_SECTIONS += $(sort $(CODEC_DOC_SECTIONS))" >> $@