1## 2## Copyright (c) 2010 The WebM project authors. All Rights Reserved. 3## 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 6## tree. An additional intellectual property rights grant can be found 7## in the file PATENTS. All contributing project authors may 8## be found in the AUTHORS file in the root of the source tree. 9## 10 11 12include config.mk 13quiet?=true 14ifeq ($(target),) 15# If a target wasn't specified, invoke for all enabled targets. 16.DEFAULT: 17 @for t in $(ALL_TARGETS); do \ 18 $(MAKE) --no-print-directory target=$$t $(MAKECMDGOALS) || exit $$?;\ 19 done 20all: .DEFAULT 21clean:: .DEFAULT 22exampletest: .DEFAULT 23install:: .DEFAULT 24test: .DEFAULT 25test-no-data-check: .DEFAULT 26testdata: .DEFAULT 27utiltest: .DEFAULT 28exampletest-no-data-check utiltest-no-data-check: .DEFAULT 29test_%: .DEFAULT ; 30 31# Note: md5sum is not installed on OS X, but openssl is. Openssl may not be 32# installed on cygwin, so we need to autodetect here. 33md5sum := $(firstword $(wildcard \ 34 $(foreach e,md5sum openssl,\ 35 $(foreach p,$(subst :, ,$(PATH)),$(p)/$(e)*))\ 36 )) 37md5sum := $(if $(filter %openssl,$(md5sum)),$(md5sum) dgst -md5,$(md5sum)) 38 39TGT_CC:=$(word 3, $(subst -, ,$(TOOLCHAIN))) 40dist: 41 @for t in $(ALL_TARGETS); do \ 42 $(MAKE) --no-print-directory target=$$t $(MAKECMDGOALS) || exit $$?;\ 43 done 44 # Run configure for the user with the current toolchain. 45 @if [ -d "$(DIST_DIR)/src" ]; then \ 46 mkdir -p "$(DIST_DIR)/build"; \ 47 cd "$(DIST_DIR)/build"; \ 48 echo "Rerunning configure $(CONFIGURE_ARGS)"; \ 49 ../src/configure $(CONFIGURE_ARGS); \ 50 $(if $(filter vs%,$(TGT_CC)),make NO_LAUNCH_DEVENV=1;) \ 51 fi 52 @if [ -d "$(DIST_DIR)" ]; then \ 53 echo " [MD5SUM] $(DIST_DIR)"; \ 54 cd $(DIST_DIR) && \ 55 $(md5sum) `find . -name md5sums.txt -prune -o -type f -print` \ 56 | sed -e 's/MD5(\(.*\))= \([0-9a-f]\{32\}\)/\2 \1/' \ 57 > md5sums.txt;\ 58 fi 59endif 60 61# Since we invoke make recursively for multiple targets we need to include the 62# .mk file for the correct target, but only when $(target) is non-empty. 63ifneq ($(target),) 64include $(target)-$(TOOLCHAIN).mk 65endif 66BUILD_ROOT?=. 67VPATH=$(SRC_PATH_BARE) 68CFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT) -I$(SRC_PATH) 69CXXFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT) -I$(SRC_PATH) 70ASFLAGS+=-I$(BUILD_PFX)$(BUILD_ROOT)/ -I$(SRC_PATH)/ 71DIST_DIR?=dist 72HOSTCC?=gcc 73TGT_ISA:=$(word 1, $(subst -, ,$(TOOLCHAIN))) 74TGT_OS:=$(word 2, $(subst -, ,$(TOOLCHAIN))) 75TGT_CC:=$(word 3, $(subst -, ,$(TOOLCHAIN))) 76quiet:=$(if $(or $(verbose), $(V)),, yes) 77qexec=$(if $(quiet),@) 78 79# Cancel built-in implicit rules 80%: %.o 81%.asm: 82%.a: 83%: %.cc 84 85# 86# Common rules" 87# 88.PHONY: all 89all: 90 91.PHONY: clean 92clean:: 93 rm -f $(OBJS-yes) $(OBJS-yes:.o=.d) $(OBJS-yes:.asm.S.o=.asm.S) 94 rm -f $(CLEAN-OBJS) 95 96.PHONY: clean 97distclean: clean 98 if [ -z "$(target)" ]; then \ 99 rm -f Makefile; \ 100 rm -f config.log config.mk; \ 101 rm -f vpx_config.[hc] vpx_config.asm; \ 102 rm -f arm_neon.h; \ 103 else \ 104 rm -f $(target)-$(TOOLCHAIN).mk; \ 105 fi 106 107.PHONY: dist 108dist: 109.PHONY: exampletest 110exampletest: 111.PHONY: install 112install:: 113.PHONY: test 114test: 115.PHONY: testdata 116testdata: 117.PHONY: utiltest 118utiltest: 119.PHONY: test-no-data-check exampletest-no-data-check utiltest-no-data-check 120test-no-data-check: 121exampletest-no-data-check utiltest-no-data-check: 122 123# Force to realign stack always on OS/2 124ifeq ($(TOOLCHAIN), x86-os2-gcc) 125CFLAGS += -mstackrealign 126endif 127 128# x86[_64] 129$(BUILD_PFX)%_mmx.c.d: CFLAGS += -mmmx 130$(BUILD_PFX)%_mmx.c.o: CFLAGS += -mmmx 131$(BUILD_PFX)%_sse2.c.d: CFLAGS += -msse2 132$(BUILD_PFX)%_sse2.c.o: CFLAGS += -msse2 133$(BUILD_PFX)%_sse3.c.d: CFLAGS += -msse3 134$(BUILD_PFX)%_sse3.c.o: CFLAGS += -msse3 135$(BUILD_PFX)%_ssse3.c.d: CFLAGS += -mssse3 136$(BUILD_PFX)%_ssse3.c.o: CFLAGS += -mssse3 137$(BUILD_PFX)%_sse4.c.d: CFLAGS += -msse4.1 138$(BUILD_PFX)%_sse4.c.o: CFLAGS += -msse4.1 139$(BUILD_PFX)%_avx.c.d: CFLAGS += -mavx 140$(BUILD_PFX)%_avx.c.o: CFLAGS += -mavx 141$(BUILD_PFX)%_avx2.c.d: CFLAGS += -mavx2 142$(BUILD_PFX)%_avx2.c.o: CFLAGS += -mavx2 143$(BUILD_PFX)%_avx512.c.d: CFLAGS += -mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl 144$(BUILD_PFX)%_avx512.c.o: CFLAGS += -mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl 145 146# AARCH64 147$(BUILD_PFX)%_neon_dotprod.c.d: CFLAGS += -march=armv8.2-a+dotprod 148$(BUILD_PFX)%_neon_dotprod.c.o: CFLAGS += -march=armv8.2-a+dotprod 149$(BUILD_PFX)%_neon_i8mm.c.d: CFLAGS += -march=armv8.2-a+dotprod+i8mm 150$(BUILD_PFX)%_neon_i8mm.c.o: CFLAGS += -march=armv8.2-a+dotprod+i8mm 151$(BUILD_PFX)%_sve.c.d: CFLAGS += -march=armv8.2-a+dotprod+i8mm+sve 152$(BUILD_PFX)%_sve.c.o: CFLAGS += -march=armv8.2-a+dotprod+i8mm+sve 153$(BUILD_PFX)%_sve2.c.d: CFLAGS += -march=armv9-a+sve2 154$(BUILD_PFX)%_sve2.c.o: CFLAGS += -march=armv9-a+sve2 155 156# POWER 157$(BUILD_PFX)%_vsx.c.d: CFLAGS += -maltivec -mvsx 158$(BUILD_PFX)%_vsx.c.o: CFLAGS += -maltivec -mvsx 159 160# MIPS 161$(BUILD_PFX)%_msa.c.d: CFLAGS += -mmsa 162$(BUILD_PFX)%_msa.c.o: CFLAGS += -mmsa 163 164# LOONGARCH 165$(BUILD_PFX)%_lsx.c.d: CFLAGS += -mlsx 166$(BUILD_PFX)%_lsx.c.o: CFLAGS += -mlsx 167$(BUILD_PFX)%_lasx.c.d: CFLAGS += -mlasx 168$(BUILD_PFX)%_lasx.c.o: CFLAGS += -mlasx 169 170$(BUILD_PFX)%.c.d: %.c 171 $(if $(quiet),@echo " [DEP] $@") 172 $(qexec)mkdir -p $(dir $@) 173 $(qexec)$(CC) $(INTERNAL_CFLAGS) $(CFLAGS) -M $< | $(fmt_deps) > $@ 174 175$(BUILD_PFX)%.c.o: %.c 176 $(if $(quiet),@echo " [CC] $@") 177 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) 178 $(qexec)$(CC) $(INTERNAL_CFLAGS) $(CFLAGS) -c -o $@ $< 179 180$(BUILD_PFX)%.cc.d: %.cc 181 $(if $(quiet),@echo " [DEP] $@") 182 $(qexec)mkdir -p $(dir $@) 183 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -M $< | $(fmt_deps) > $@ 184 185$(BUILD_PFX)%.cc.o: %.cc 186 $(if $(quiet),@echo " [CXX] $@") 187 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) 188 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -c -o $@ $< 189 190$(BUILD_PFX)%.cpp.d: %.cpp 191 $(if $(quiet),@echo " [DEP] $@") 192 $(qexec)mkdir -p $(dir $@) 193 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -M $< | $(fmt_deps) > $@ 194 195$(BUILD_PFX)%.cpp.o: %.cpp 196 $(if $(quiet),@echo " [CXX] $@") 197 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) 198 $(qexec)$(CXX) $(INTERNAL_CFLAGS) $(CXXFLAGS) -c -o $@ $< 199 200$(BUILD_PFX)%.asm.d: %.asm 201 $(if $(quiet),@echo " [DEP] $@") 202 $(qexec)mkdir -p $(dir $@) 203 $(qexec)$(SRC_PATH_BARE)/build/make/gen_asm_deps.sh \ 204 --build-pfx=$(BUILD_PFX) --depfile=$@ $(ASFLAGS) $< > $@ 205 206$(BUILD_PFX)%.asm.o: %.asm 207 $(if $(quiet),@echo " [AS] $@") 208 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) 209 $(qexec)$(AS) $(ASFLAGS) -o $@ $< 210 211$(BUILD_PFX)%.S.d: %.S 212 $(if $(quiet),@echo " [DEP] $@") 213 $(qexec)mkdir -p $(dir $@) 214 $(qexec)$(SRC_PATH_BARE)/build/make/gen_asm_deps.sh \ 215 --build-pfx=$(BUILD_PFX) --depfile=$@ $(ASFLAGS) $< > $@ 216 217$(BUILD_PFX)%.S.o: %.S 218 $(if $(quiet),@echo " [AS] $@") 219 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) 220 $(qexec)$(AS) $(ASFLAGS) -o $@ $< 221 222.PRECIOUS: %.c.S 223%.c.S: CFLAGS += -DINLINE_ASM 224$(BUILD_PFX)%.c.S: %.c 225 $(if $(quiet),@echo " [GEN] $@") 226 $(qexec)$(if $(CONFIG_DEPENDENCY_TRACKING),,mkdir -p $(dir $@)) 227 $(qexec)$(CC) -S $(CFLAGS) -o $@ $< 228 229.PRECIOUS: %.asm.S 230$(BUILD_PFX)%.asm.S: %.asm 231 $(if $(quiet),@echo " [ASM CONVERSION] $@") 232 $(qexec)mkdir -p $(dir $@) 233 $(qexec)$(ASM_CONVERSION) <$< >$@ 234 235# If we're in debug mode, pretend we don't have GNU strip, to fall back to 236# the copy implementation 237HAVE_GNU_STRIP := $(if $(CONFIG_DEBUG),,$(HAVE_GNU_STRIP)) 238ifeq ($(HAVE_GNU_STRIP),yes) 239# Older binutils strip global symbols not needed for relocation processing 240# when given --strip-unneeded. Using nm and awk to identify globals and 241# keep them caused command line length issues under mingw and segfaults in 242# test_libvpx were observed under OS/2: simply use --strip-debug. 243%.a: %_g.a 244 $(if $(quiet),@echo " [STRIP] $@ < $<") 245 $(qexec)$(STRIP) --strip-debug \ 246 -o $@ $< 247else 248%.a: %_g.a 249 $(if $(quiet),@echo " [CP] $@ < $<") 250 $(qexec)cp $< $@ 251endif 252 253# 254# Utility functions 255# 256pairmap=$(if $(strip $(2)),\ 257 $(call $(1),$(word 1,$(2)),$(word 2,$(2)))\ 258 $(call pairmap,$(1),$(wordlist 3,$(words $(2)),$(2)))\ 259) 260 261enabled=$(filter-out $($(1)-no),$($(1)-yes)) 262cond_enabled=$(if $(filter yes,$($(1))), $(call enabled,$(2))) 263 264find_file1=$(word 1,$(wildcard $(subst //,/,$(addsuffix /$(1),$(2))))) 265find_file=$(foreach f,$(1),$(call find_file1,$(strip $(f)),$(strip $(2))) ) 266obj_pats=.c=.c.o $(AS_SFX)=$(AS_SFX).o .cc=.cc.o .cpp=.cpp.o 267objs=$(addprefix $(BUILD_PFX),$(foreach p,$(obj_pats),$(filter %.o,$(1:$(p))) )) 268 269install_map_templates=$(eval $(call install_map_template,$(1),$(2))) 270 271not=$(subst yes,no,$(1)) 272 273ifeq ($(CONFIG_MSVS),yes) 274lib_file_name=$(1).lib 275else 276lib_file_name=lib$(1).a 277endif 278# 279# Rule Templates 280# 281define linker_template 282$(1): $(filter-out -%,$(2)) 283$(1): 284 $(if $(quiet),@echo " [LD] $$@") 285 $(qexec)$$(LD) $$(strip $$(INTERNAL_LDFLAGS) $$(LDFLAGS) -o $$@ $(2) $(3) $$(extralibs)) 286endef 287define linkerxx_template 288$(1): $(filter-out -%,$(2)) 289$(1): 290 $(if $(quiet),@echo " [LD] $$@") 291 $(qexec)$$(CXX) $$(strip $$(INTERNAL_LDFLAGS) $$(LDFLAGS) -o $$@ $(2) $(3) $$(extralibs)) 292endef 293# make-3.80 has a bug with expanding large input strings to the eval function, 294# which was triggered in some cases by the following component of 295# linker_template: 296# $(1): $$(call find_file, $(patsubst -l%,lib%.a,$(filter -l%,$(2))),\ 297# $$(patsubst -L%,%,$$(filter -L%,$$(LDFLAGS) $(2)))) 298# This may be useful to revisit in the future (it tries to locate libraries 299# in a search path and add them as prerequisites 300 301define install_map_template 302$(DIST_DIR)/$(1): $(2) 303 $(if $(quiet),@echo " [INSTALL] $$@") 304 $(qexec)mkdir -p $$(dir $$@) 305 $(qexec)cp -p $$< $$@ 306endef 307 308define archive_template 309# Not using a pattern rule here because we don't want to generate empty 310# archives when they are listed as a dependency in files not responsible 311# for creating them. 312$(1): 313 $(if $(quiet),@echo " [AR] $$@") 314 $(qexec)$$(AR) $$(ARFLAGS) $$@ $$^ 315endef 316 317# Don't use -Wl,-z,defs with Clang's sanitizers. 318# 319# Clang's AddressSanitizer documentation says "When linking shared libraries, 320# the AddressSanitizer run-time is not linked, so -Wl,-z,defs may cause link 321# errors (don't use it with AddressSanitizer)." See 322# https://clang.llvm.org/docs/AddressSanitizer.html#usage. 323NO_UNDEFINED := -Wl,-z,defs 324ifeq ($(findstring clang,$(CC)),clang) 325 ifneq ($(filter -fsanitize=%,$(LDFLAGS)),) 326 NO_UNDEFINED := 327 endif 328endif 329 330define so_template 331# Not using a pattern rule here because we don't want to generate empty 332# archives when they are listed as a dependency in files not responsible 333# for creating them. 334# 335# This needs further abstraction for dealing with non-GNU linkers. 336$(1): 337 $(if $(quiet),@echo " [LD] $$@") 338 $(qexec)$$(LD) -shared $$(LDFLAGS) \ 339 $(NO_UNDEFINED) \ 340 -Wl,-soname,$$(SONAME) \ 341 -Wl,--version-script,$$(EXPORTS_FILE) -o $$@ \ 342 $$(filter %.o,$$^) $$(extralibs) 343endef 344 345define dl_template 346# Not using a pattern rule here because we don't want to generate empty 347# archives when they are listed as a dependency in files not responsible 348# for creating them. 349$(1): 350 $(if $(quiet),@echo " [LD] $$@") 351 $(qexec)$$(LD) -dynamiclib $$(LDFLAGS) \ 352 -exported_symbols_list $$(EXPORTS_FILE) \ 353 -Wl,-headerpad_max_install_names,-compatibility_version,1.0,-current_version,$$(VERSION_MAJOR) \ 354 -o $$@ \ 355 $$(filter %.o,$$^) $$(extralibs) 356endef 357 358define dll_template 359# Not using a pattern rule here because we don't want to generate empty 360# archives when they are listed as a dependency in files not responsible 361# for creating them. 362$(1): 363 $(if $(quiet),@echo " [LD] $$@") 364 $(qexec)$$(LD) -Zdll $$(LDFLAGS) \ 365 -o $$@ \ 366 $$(filter %.o,$$^) $$(extralibs) $$(EXPORTS_FILE) 367endef 368 369 370# 371# Get current configuration 372# 373ifneq ($(target),) 374include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk 375endif 376 377skip_deps := $(filter %clean,$(MAKECMDGOALS)) 378skip_deps += $(findstring testdata,$(MAKECMDGOALS)) 379ifeq ($(strip $(skip_deps)),) 380 ifeq ($(CONFIG_DEPENDENCY_TRACKING),yes) 381 # Older versions of make don't like -include directives with no arguments 382 ifneq ($(filter %.d,$(OBJS-yes:.o=.d)),) 383 -include $(filter %.d,$(OBJS-yes:.o=.d)) 384 endif 385 endif 386endif 387 388# 389# Configuration dependent rules 390# 391$(call pairmap,install_map_templates,$(INSTALL_MAPS)) 392 393DOCS=$(call cond_enabled,CONFIG_INSTALL_DOCS,DOCS) 394.docs: $(DOCS) 395 @touch $@ 396 397INSTALL-DOCS=$(call cond_enabled,CONFIG_INSTALL_DOCS,INSTALL-DOCS) 398ifeq ($(MAKECMDGOALS),dist) 399INSTALL-DOCS+=$(call cond_enabled,CONFIG_INSTALL_DOCS,DIST-DOCS) 400endif 401.install-docs: .docs $(addprefix $(DIST_DIR)/,$(INSTALL-DOCS)) 402 @touch $@ 403 404clean:: 405 rm -f .docs .install-docs $(DOCS) 406 407BINS=$(call enabled,BINS) 408.bins: $(BINS) 409 @touch $@ 410 411INSTALL-BINS=$(call cond_enabled,CONFIG_INSTALL_BINS,INSTALL-BINS) 412ifeq ($(MAKECMDGOALS),dist) 413INSTALL-BINS+=$(call cond_enabled,CONFIG_INSTALL_BINS,DIST-BINS) 414endif 415.install-bins: .bins $(addprefix $(DIST_DIR)/,$(INSTALL-BINS)) 416 @touch $@ 417 418clean:: 419 rm -f .bins .install-bins $(BINS) 420 421LIBS=$(call enabled,LIBS) 422.libs: $(LIBS) 423 @touch $@ 424$(foreach lib,$(filter %_g.a,$(LIBS)),$(eval $(call archive_template,$(lib)))) 425$(foreach lib,$(filter %so.$(SO_VERSION_MAJOR).$(SO_VERSION_MINOR).$(SO_VERSION_PATCH),$(LIBS)),$(eval $(call so_template,$(lib)))) 426$(foreach lib,$(filter %$(SO_VERSION_MAJOR).dylib,$(LIBS)),$(eval $(call dl_template,$(lib)))) 427$(foreach lib,$(filter %$(SO_VERSION_MAJOR).dll,$(LIBS)),$(eval $(call dll_template,$(lib)))) 428 429INSTALL-LIBS=$(call cond_enabled,CONFIG_INSTALL_LIBS,INSTALL-LIBS) 430ifeq ($(MAKECMDGOALS),dist) 431INSTALL-LIBS+=$(call cond_enabled,CONFIG_INSTALL_LIBS,DIST-LIBS) 432endif 433.install-libs: .libs $(addprefix $(DIST_DIR)/,$(INSTALL-LIBS)) 434 @touch $@ 435 436clean:: 437 rm -f .libs .install-libs $(LIBS) 438 439ifeq ($(CONFIG_EXTERNAL_BUILD),yes) 440PROJECTS=$(call enabled,PROJECTS) 441.projects: $(PROJECTS) 442 @touch $@ 443 444INSTALL-PROJECTS=$(call cond_enabled,CONFIG_INSTALL_PROJECTS,INSTALL-PROJECTS) 445ifeq ($(MAKECMDGOALS),dist) 446INSTALL-PROJECTS+=$(call cond_enabled,CONFIG_INSTALL_PROJECTS,DIST-PROJECTS) 447endif 448.install-projects: .projects $(addprefix $(DIST_DIR)/,$(INSTALL-PROJECTS)) 449 @touch $@ 450 451clean:: 452 rm -f .projects .install-projects $(PROJECTS) 453endif 454 455# If there are any source files to be distributed, then include the build 456# system too. 457ifneq ($(call enabled,DIST-SRCS),) 458 DIST-SRCS-yes += configure 459 DIST-SRCS-yes += build/make/configure.sh 460 DIST-SRCS-yes += build/make/gen_asm_deps.sh 461 DIST-SRCS-yes += build/make/Makefile 462 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_def.sh 463 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_sln.sh 464 DIST-SRCS-$(CONFIG_MSVS) += build/make/gen_msvs_vcxproj.sh 465 DIST-SRCS-$(CONFIG_MSVS) += build/make/msvs_common.sh 466 DIST-SRCS-$(CONFIG_RVCT) += build/make/armlink_adapter.sh 467 DIST-SRCS-$(VPX_ARCH_ARM) += build/make/ads2gas.pl 468 DIST-SRCS-$(VPX_ARCH_ARM) += build/make/ads2gas_apple.pl 469 DIST-SRCS-$(VPX_ARCH_ARM) += build/make/ads2armasm_ms.pl 470 DIST-SRCS-$(VPX_ARCH_ARM) += build/make/thumb.pm 471 DIST-SRCS-yes += $(target:-$(TOOLCHAIN)=).mk 472endif 473INSTALL-SRCS := $(call cond_enabled,CONFIG_INSTALL_SRCS,INSTALL-SRCS) 474ifeq ($(MAKECMDGOALS),dist) 475INSTALL-SRCS += $(call cond_enabled,CONFIG_INSTALL_SRCS,DIST-SRCS) 476endif 477.install-srcs: $(addprefix $(DIST_DIR)/src/,$(INSTALL-SRCS)) 478 @touch $@ 479 480clean:: 481 rm -f .install-srcs 482 483ifeq ($(CONFIG_EXTERNAL_BUILD),yes) 484 BUILD_TARGETS += .projects 485 INSTALL_TARGETS += .install-projects 486endif 487BUILD_TARGETS += .docs .libs .bins 488INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins 489all: $(BUILD_TARGETS) 490install:: $(INSTALL_TARGETS) 491dist: $(INSTALL_TARGETS) 492test: 493 494.SUFFIXES: # Delete default suffix rules 495