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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 # Common rules" | 87 # Common rules" |
88 # | 88 # |
89 .PHONY: all | 89 .PHONY: all |
90 all: | 90 all: |
91 | 91 |
92 .PHONY: clean | 92 .PHONY: clean |
93 clean:: | 93 clean:: |
94 rm -f $(OBJS-yes) $(OBJS-yes:.o=.d) $(OBJS-yes:.asm.s.o=.asm.s) | 94 rm -f $(OBJS-yes) $(OBJS-yes:.o=.d) $(OBJS-yes:.asm.s.o=.asm.s) |
95 rm -f $(CLEAN-OBJS) | 95 rm -f $(CLEAN-OBJS) |
96 | 96 |
| 97 .PHONY: clean |
| 98 distclean: clean |
| 99 if [ -z "$(target)" ]; then \ |
| 100 rm -f Makefile; \ |
| 101 rm -f config.log config.mk; \ |
| 102 rm -f vpx_config.[hc] vpx_config.asm; \ |
| 103 else \ |
| 104 rm -f $(target)-$(TOOLCHAIN).mk; \ |
| 105 fi |
| 106 |
97 .PHONY: dist | 107 .PHONY: dist |
98 dist: | 108 dist: |
99 .PHONY: install | 109 .PHONY: install |
100 install:: | 110 install:: |
101 .PHONY: test | 111 .PHONY: test |
102 test:: | 112 test:: |
103 .PHONY: testdata | 113 .PHONY: testdata |
104 testdata:: | 114 testdata:: |
105 | 115 |
106 # Add compiler flags for intrinsic files | 116 # Add compiler flags for intrinsic files |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 $(qexec)lipo -output $$@ -create $$? | 310 $(qexec)lipo -output $$@ -create $$? |
301 endef | 311 endef |
302 | 312 |
303 | 313 |
304 # | 314 # |
305 # Get current configuration | 315 # Get current configuration |
306 # | 316 # |
307 ifneq ($(target),) | 317 ifneq ($(target),) |
308 include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk | 318 include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk |
309 endif | 319 endif |
310 ifeq ($(filter clean,$(MAKECMDGOALS)),) | 320 ifeq ($(filter %clean,$(MAKECMDGOALS)),) |
311 # Older versions of make don't like -include directives with no arguments | 321 # Older versions of make don't like -include directives with no arguments |
312 ifneq ($(filter %.d,$(OBJS-yes:.o=.d)),) | 322 ifneq ($(filter %.d,$(OBJS-yes:.o=.d)),) |
313 -include $(filter %.d,$(OBJS-yes:.o=.d)) | 323 -include $(filter %.d,$(OBJS-yes:.o=.d)) |
314 endif | 324 endif |
315 endif | 325 endif |
316 | 326 |
317 # | 327 # |
318 # Configuration dependent rules | 328 # Configuration dependent rules |
319 # | 329 # |
320 $(call pairmap,install_map_templates,$(INSTALL_MAPS)) | 330 $(call pairmap,install_map_templates,$(INSTALL_MAPS)) |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 425 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
416 BUILD_TARGETS += .projects | 426 BUILD_TARGETS += .projects |
417 INSTALL_TARGETS += .install-projects | 427 INSTALL_TARGETS += .install-projects |
418 endif | 428 endif |
419 BUILD_TARGETS += .docs .libs .bins | 429 BUILD_TARGETS += .docs .libs .bins |
420 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins | 430 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins |
421 all: $(BUILD_TARGETS) | 431 all: $(BUILD_TARGETS) |
422 install:: $(INSTALL_TARGETS) | 432 install:: $(INSTALL_TARGETS) |
423 dist: $(INSTALL_TARGETS) | 433 dist: $(INSTALL_TARGETS) |
424 test:: | 434 test:: |
OLD | NEW |