| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 $(BUILD_PFX)%_avx2.c.d: CFLAGS += -mavx2 $(STACKREALIGN) | 139 $(BUILD_PFX)%_avx2.c.d: CFLAGS += -mavx2 $(STACKREALIGN) |
| 140 $(BUILD_PFX)%_avx2.c.o: CFLAGS += -mavx2 $(STACKREALIGN) | 140 $(BUILD_PFX)%_avx2.c.o: CFLAGS += -mavx2 $(STACKREALIGN) |
| 141 | 141 |
| 142 $(BUILD_PFX)%.c.d: %.c | 142 $(BUILD_PFX)%.c.d: %.c |
| 143 $(if $(quiet),@echo " [DEP] $@") | 143 $(if $(quiet),@echo " [DEP] $@") |
| 144 $(qexec)mkdir -p $(dir $@) | 144 $(qexec)mkdir -p $(dir $@) |
| 145 $(qexec)$(CC) $(INTERNAL_CFLAGS) $(CFLAGS) -M $< | $(fmt_deps) > $@ | 145 $(qexec)$(CC) $(INTERNAL_CFLAGS) $(CFLAGS) -M $< | $(fmt_deps) > $@ |
| 146 | 146 |
| 147 $(BUILD_PFX)%.c.o: %.c | 147 $(BUILD_PFX)%.c.o: %.c |
| 148 $(if $(quiet),@echo " [CC] $@") | 148 $(if $(quiet),@echo " [CC] $@") |
| 149 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) |
| 149 $(qexec)$(CC) $(INTERNAL_CFLAGS) $(CFLAGS) -c -o $@ $< | 150 $(qexec)$(CC) $(INTERNAL_CFLAGS) $(CFLAGS) -c -o $@ $< |
| 150 | 151 |
| 151 $(BUILD_PFX)%.cc.d: %.cc | 152 $(BUILD_PFX)%.cc.d: %.cc |
| 152 $(if $(quiet),@echo " [DEP] $@") | 153 $(if $(quiet),@echo " [DEP] $@") |
| 153 $(qexec)mkdir -p $(dir $@) | 154 $(qexec)mkdir -p $(dir $@) |
| 154 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -M $< | $(fmt_deps) > $@ | 155 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -M $< | $(fmt_deps) > $@ |
| 155 | 156 |
| 156 $(BUILD_PFX)%.cc.o: %.cc | 157 $(BUILD_PFX)%.cc.o: %.cc |
| 157 $(if $(quiet),@echo " [CXX] $@") | 158 $(if $(quiet),@echo " [CXX] $@") |
| 159 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) |
| 158 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -c -o $@ $< | 160 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -c -o $@ $< |
| 159 | 161 |
| 160 $(BUILD_PFX)%.cpp.d: %.cpp | 162 $(BUILD_PFX)%.cpp.d: %.cpp |
| 161 $(if $(quiet),@echo " [DEP] $@") | 163 $(if $(quiet),@echo " [DEP] $@") |
| 162 $(qexec)mkdir -p $(dir $@) | 164 $(qexec)mkdir -p $(dir $@) |
| 163 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -M $< | $(fmt_deps) > $@ | 165 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -M $< | $(fmt_deps) > $@ |
| 164 | 166 |
| 165 $(BUILD_PFX)%.cpp.o: %.cpp | 167 $(BUILD_PFX)%.cpp.o: %.cpp |
| 166 $(if $(quiet),@echo " [CXX] $@") | 168 $(if $(quiet),@echo " [CXX] $@") |
| 169 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) |
| 167 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -c -o $@ $< | 170 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -c -o $@ $< |
| 168 | 171 |
| 169 $(BUILD_PFX)%.asm.d: %.asm | 172 $(BUILD_PFX)%.asm.d: %.asm |
| 170 $(if $(quiet),@echo " [DEP] $@") | 173 $(if $(quiet),@echo " [DEP] $@") |
| 171 $(qexec)mkdir -p $(dir $@) | 174 $(qexec)mkdir -p $(dir $@) |
| 172 $(qexec)$(SRC_PATH_BARE)/build/make/gen_asm_deps.sh \ | 175 $(qexec)$(SRC_PATH_BARE)/build/make/gen_asm_deps.sh \ |
| 173 --build-pfx=$(BUILD_PFX) --depfile=$@ $(ASFLAGS) $< > $@ | 176 --build-pfx=$(BUILD_PFX) --depfile=$@ $(ASFLAGS) $< > $@ |
| 174 | 177 |
| 175 $(BUILD_PFX)%.asm.o: %.asm | 178 $(BUILD_PFX)%.asm.o: %.asm |
| 176 $(if $(quiet),@echo " [AS] $@") | 179 $(if $(quiet),@echo " [AS] $@") |
| 180 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) |
| 177 $(qexec)$(AS) $(ASFLAGS) -o $@ $< | 181 $(qexec)$(AS) $(ASFLAGS) -o $@ $< |
| 178 | 182 |
| 179 $(BUILD_PFX)%.s.d: %.s | 183 $(BUILD_PFX)%.s.d: %.s |
| 180 $(if $(quiet),@echo " [DEP] $@") | 184 $(if $(quiet),@echo " [DEP] $@") |
| 181 $(qexec)mkdir -p $(dir $@) | 185 $(qexec)mkdir -p $(dir $@) |
| 182 $(qexec)$(SRC_PATH_BARE)/build/make/gen_asm_deps.sh \ | 186 $(qexec)$(SRC_PATH_BARE)/build/make/gen_asm_deps.sh \ |
| 183 --build-pfx=$(BUILD_PFX) --depfile=$@ $(ASFLAGS) $< > $@ | 187 --build-pfx=$(BUILD_PFX) --depfile=$@ $(ASFLAGS) $< > $@ |
| 184 | 188 |
| 185 $(BUILD_PFX)%.s.o: %.s | 189 $(BUILD_PFX)%.s.o: %.s |
| 186 $(if $(quiet),@echo " [AS] $@") | 190 $(if $(quiet),@echo " [AS] $@") |
| 191 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) |
| 187 $(qexec)$(AS) $(ASFLAGS) -o $@ $< | 192 $(qexec)$(AS) $(ASFLAGS) -o $@ $< |
| 188 | 193 |
| 189 .PRECIOUS: %.c.S | 194 .PRECIOUS: %.c.S |
| 190 %.c.S: CFLAGS += -DINLINE_ASM | 195 %.c.S: CFLAGS += -DINLINE_ASM |
| 191 $(BUILD_PFX)%.c.S: %.c | 196 $(BUILD_PFX)%.c.S: %.c |
| 192 $(if $(quiet),@echo " [GEN] $@") | 197 $(if $(quiet),@echo " [GEN] $@") |
| 198 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) |
| 193 $(qexec)$(CC) -S $(CFLAGS) -o $@ $< | 199 $(qexec)$(CC) -S $(CFLAGS) -o $@ $< |
| 194 | 200 |
| 195 .PRECIOUS: %.asm.s | 201 .PRECIOUS: %.asm.s |
| 196 $(BUILD_PFX)%.asm.s: %.asm | 202 $(BUILD_PFX)%.asm.s: %.asm |
| 197 $(if $(quiet),@echo " [ASM CONVERSION] $@") | 203 $(if $(quiet),@echo " [ASM CONVERSION] $@") |
| 198 $(qexec)mkdir -p $(dir $@) | 204 $(qexec)mkdir -p $(dir $@) |
| 199 $(qexec)$(ASM_CONVERSION) <$< >$@ | 205 $(qexec)$(ASM_CONVERSION) <$< >$@ |
| 200 | 206 |
| 201 # If we're in debug mode, pretend we don't have GNU strip, to fall back to | 207 # If we're in debug mode, pretend we don't have GNU strip, to fall back to |
| 202 # the copy implementation | 208 # the copy implementation |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 # | 331 # |
| 326 # Get current configuration | 332 # Get current configuration |
| 327 # | 333 # |
| 328 ifneq ($(target),) | 334 ifneq ($(target),) |
| 329 include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk | 335 include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk |
| 330 endif | 336 endif |
| 331 | 337 |
| 332 skip_deps := $(filter %clean,$(MAKECMDGOALS)) | 338 skip_deps := $(filter %clean,$(MAKECMDGOALS)) |
| 333 skip_deps += $(findstring testdata,$(MAKECMDGOALS)) | 339 skip_deps += $(findstring testdata,$(MAKECMDGOALS)) |
| 334 ifeq ($(strip $(skip_deps)),) | 340 ifeq ($(strip $(skip_deps)),) |
| 335 # Older versions of make don't like -include directives with no arguments | 341 ifeq ($(CONFIG_DEPENDENCY_TRACKING),yes) |
| 336 ifneq ($(filter %.d,$(OBJS-yes:.o=.d)),) | 342 # Older versions of make don't like -include directives with no arguments |
| 337 -include $(filter %.d,$(OBJS-yes:.o=.d)) | 343 ifneq ($(filter %.d,$(OBJS-yes:.o=.d)),) |
| 344 -include $(filter %.d,$(OBJS-yes:.o=.d)) |
| 345 endif |
| 338 endif | 346 endif |
| 339 endif | 347 endif |
| 340 | 348 |
| 341 # | 349 # |
| 342 # Configuration dependent rules | 350 # Configuration dependent rules |
| 343 # | 351 # |
| 344 $(call pairmap,install_map_templates,$(INSTALL_MAPS)) | 352 $(call pairmap,install_map_templates,$(INSTALL_MAPS)) |
| 345 | 353 |
| 346 DOCS=$(call cond_enabled,CONFIG_INSTALL_DOCS,DOCS) | 354 DOCS=$(call cond_enabled,CONFIG_INSTALL_DOCS,DOCS) |
| 347 .docs: $(DOCS) | 355 .docs: $(DOCS) |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 444 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
| 437 BUILD_TARGETS += .projects | 445 BUILD_TARGETS += .projects |
| 438 INSTALL_TARGETS += .install-projects | 446 INSTALL_TARGETS += .install-projects |
| 439 endif | 447 endif |
| 440 BUILD_TARGETS += .docs .libs .bins | 448 BUILD_TARGETS += .docs .libs .bins |
| 441 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins | 449 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins |
| 442 all: $(BUILD_TARGETS) | 450 all: $(BUILD_TARGETS) |
| 443 install:: $(INSTALL_TARGETS) | 451 install:: $(INSTALL_TARGETS) |
| 444 dist: $(INSTALL_TARGETS) | 452 dist: $(INSTALL_TARGETS) |
| 445 test:: | 453 test:: |
| OLD | NEW |