| OLD | NEW |
| 1 ## | 1 ## |
| 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 ## | 3 ## |
| 4 ## Use of this source code is governed by a BSD-style license | 4 ## Use of this source code is governed by a BSD-style license |
| 5 ## that can be found in the LICENSE file in the root of the source | 5 ## 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 | 6 ## tree. An additional intellectual property rights grant can be found |
| 7 ## in the file PATENTS. All contributing project authors may | 7 ## in the file PATENTS. All contributing project authors may |
| 8 ## be found in the AUTHORS file in the root of the source tree. | 8 ## be found in the AUTHORS file in the root of the source tree. |
| 9 ## | 9 ## |
| 10 | 10 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 define so_template | 246 define so_template |
| 247 # Not using a pattern rule here because we don't want to generate empty | 247 # Not using a pattern rule here because we don't want to generate empty |
| 248 # archives when they are listed as a dependency in files not responsible | 248 # archives when they are listed as a dependency in files not responsible |
| 249 # for creating them. | 249 # for creating them. |
| 250 # | 250 # |
| 251 # This needs further abstraction for dealing with non-GNU linkers. | 251 # This needs further abstraction for dealing with non-GNU linkers. |
| 252 $(1): | 252 $(1): |
| 253 $(if $(quiet),@echo " [LD] $$@") | 253 $(if $(quiet),@echo " [LD] $$@") |
| 254 $(qexec)$$(LD) -shared $$(LDFLAGS) \ | 254 $(qexec)$$(LD) -shared $$(LDFLAGS) \ |
| 255 -Wl,--no-undefined -Wl,-soname,$$(SONAME) \ | 255 -Wl,--no-undefined -Wl,-soname,$$(SONAME) \ |
| 256 -Wl,--version-script,$$(SO_VERSION_SCRIPT) -o $$@ \ | 256 -Wl,--version-script,$$(EXPORTS_FILE) -o $$@ \ |
| 257 $$(filter %.o,$$?) $$(extralibs) | 257 $$(filter %.o,$$^) $$(extralibs) |
| 258 endef | 258 endef |
| 259 | 259 |
| 260 define dl_template |
| 261 # Not using a pattern rule here because we don't want to generate empty |
| 262 # archives when they are listed as a dependency in files not responsible |
| 263 # for creating them. |
| 264 $(1): |
| 265 $(if $(quiet),@echo " [LD] $$@") |
| 266 $(qexec)$$(LD) -dynamiclib $$(LDFLAGS) \ |
| 267 -exported_symbols_list $$(EXPORTS_FILE) \ |
| 268 -Wl,-headerpad_max_install_names,-compatibility_version,1.0,-current_ver
sion,$$(VERSION_MAJOR) \ |
| 269 -o $$@ \ |
| 270 $$(filter %.o,$$^) $$(extralibs) |
| 271 endef |
| 272 |
| 273 |
| 274 |
| 260 define lipo_lib_template | 275 define lipo_lib_template |
| 261 $(1): $(addsuffix /$(1),$(FAT_ARCHS)) | 276 $(1): $(addsuffix /$(1),$(FAT_ARCHS)) |
| 262 $(if $(quiet),@echo " [LIPO] $$@") | 277 $(if $(quiet),@echo " [LIPO] $$@") |
| 263 $(qexec)libtool -static -o $$@ $$? | 278 $(qexec)libtool -static -o $$@ $$? |
| 264 endef | 279 endef |
| 265 | 280 |
| 266 define lipo_bin_template | 281 define lipo_bin_template |
| 267 $(1): $(addsuffix /$(1),$(FAT_ARCHS)) | 282 $(1): $(addsuffix /$(1),$(FAT_ARCHS)) |
| 268 $(if $(quiet),@echo " [LIPO] $$@") | 283 $(if $(quiet),@echo " [LIPO] $$@") |
| 269 $(qexec)lipo -output $$@ -create $$? | 284 $(qexec)lipo -output $$@ -create $$? |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 @touch $@ | 329 @touch $@ |
| 315 | 330 |
| 316 clean:: | 331 clean:: |
| 317 rm -f .bins .install-bins $(BINS) | 332 rm -f .bins .install-bins $(BINS) |
| 318 | 333 |
| 319 LIBS=$(call enabled,LIBS) | 334 LIBS=$(call enabled,LIBS) |
| 320 .libs: $(LIBS) | 335 .libs: $(LIBS) |
| 321 @touch $@ | 336 @touch $@ |
| 322 $(foreach lib,$(filter %_g.a,$(LIBS)),$(eval $(call archive_template,$(lib)))) | 337 $(foreach lib,$(filter %_g.a,$(LIBS)),$(eval $(call archive_template,$(lib)))) |
| 323 $(foreach lib,$(filter %so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH),$(
LIBS)),$(eval $(call so_template,$(lib)))) | 338 $(foreach lib,$(filter %so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH),$(
LIBS)),$(eval $(call so_template,$(lib)))) |
| 339 $(foreach lib,$(filter %$(VERSION_MAJOR).dylib,$(LIBS)),$(eval $(call dl_templat
e,$(lib)))) |
| 324 | 340 |
| 325 INSTALL-LIBS=$(call cond_enabled,CONFIG_INSTALL_LIBS,INSTALL-LIBS) | 341 INSTALL-LIBS=$(call cond_enabled,CONFIG_INSTALL_LIBS,INSTALL-LIBS) |
| 326 ifeq ($(MAKECMDGOALS),dist) | 342 ifeq ($(MAKECMDGOALS),dist) |
| 327 INSTALL-LIBS+=$(call cond_enabled,CONFIG_INSTALL_LIBS,DIST-LIBS) | 343 INSTALL-LIBS+=$(call cond_enabled,CONFIG_INSTALL_LIBS,DIST-LIBS) |
| 328 endif | 344 endif |
| 329 .install-libs: .libs $(addprefix $(DIST_DIR)/,$(INSTALL-LIBS)) | 345 .install-libs: .libs $(addprefix $(DIST_DIR)/,$(INSTALL-LIBS)) |
| 330 @touch $@ | 346 @touch $@ |
| 331 | 347 |
| 332 clean:: | 348 clean:: |
| 333 rm -f .libs .install-libs $(LIBS) | 349 rm -f .libs .install-libs $(LIBS) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 395 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
| 380 BUILD_TARGETS += .projects | 396 BUILD_TARGETS += .projects |
| 381 INSTALL_TARGETS += .install-projects | 397 INSTALL_TARGETS += .install-projects |
| 382 endif | 398 endif |
| 383 BUILD_TARGETS += .docs .libs .bins | 399 BUILD_TARGETS += .docs .libs .bins |
| 384 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins | 400 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins |
| 385 all: $(BUILD_TARGETS) | 401 all: $(BUILD_TARGETS) |
| 386 install:: $(INSTALL_TARGETS) | 402 install:: $(INSTALL_TARGETS) |
| 387 dist: $(INSTALL_TARGETS) | 403 dist: $(INSTALL_TARGETS) |
| 388 test:: | 404 test:: |
| OLD | NEW |