X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=Makefile;h=2723efbbebfd404eb5bb004768aa43fa8de5c582;hb=819c7d4a35b7b11a832d8e52d34b6f5b32e24cc4;hp=c5438979f75799fb9cdbd274f4cc7afdaaaa29d6;hpb=616da1ee7fc45bed76e420fb5060939ef0d77ea1;p=coreboot.git diff --git a/Makefile b/Makefile index c5438979f..2723efbbe 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ include $(HAVE_DOTCONFIG) ifneq ($(INNER_SCANBUILD),y) ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y) -CC:=clang -m32 +CC:=clang -m32 -mno-mmx -mno-sse HOSTCC:=clang endif endif @@ -204,6 +204,9 @@ evaluate_subdirs= \ subdirs:=$(TOPLEVEL) $(eval $(call evaluate_subdirs)) +# Eliminate duplicate mentions of source files in a class +$(foreach class,$(classes),$(eval $(class)-srcs:=$(sort $($(class)-srcs)))) + src-to-obj=$(addsuffix .$(1).o, $(basename $(patsubst src/%, $(obj)/%, $($(1)-srcs)))) $(foreach class,$(classes),$(eval $(class)-objs:=$(call src-to-obj,$(class)))) @@ -273,7 +276,7 @@ clean: clean-for-update clean-target clean-cscope: rm -f cscope.out -distclean: clean-cscope +distclean: rm -rf $(obj) rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig* .ccwrap .xcompile