X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=f0df92c409bf1ee0a76b50736ad9700257a451ca;hb=0b9cb865c52bc2b6e0a5637d1e1a3cb340ce50f8;hp=51c03e9e6ff86699310c3d409e7578bf7eb447dd;hpb=4cc3e8965ada59e7f5a9e55e8ccbc9563d997b93;p=palacios.releases.git diff --git a/Makefile b/Makefile index 51c03e9..f0df92c 100644 --- a/Makefile +++ b/Makefile @@ -298,9 +298,9 @@ V3_INCLUDE := -Ipalacios/include \ CPPFLAGS := $(V3_INCLUDE) -D__V3VEE__ -CFLAGS := -fno-stack-protector -Wall -O -Werror -fPIC -mno-red-zone +CFLAGS := -fno-stack-protector -Wall -O -Werror -fPIC -mno-red-zone -fno-common -LDFLAGS := --whole-archive +LDFLAGS := --whole-archive ifeq ($(call cc-option-yn, -fgnu89-inline),y) CFLAGS += -fgnu89-inline @@ -682,6 +682,9 @@ MRPROPER_FILES += .config .config.old .version .old_version \ tags TAGS cscope* +# \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ + + # clean - Delete most, but leave enough to build external modules # clean: rm-dirs := $(CLEAN_DIRS) @@ -692,12 +695,13 @@ PHONY += $(clean-dirs) clean archclean $(clean-dirs): $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) + clean: archclean $(clean-dirs) $(call cmd,rmdirs) $(call cmd,rmfiles) @find . $(RCS_FIND_IGNORE) \ \( -name 'lib' \) -prune -o \ - \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ + \( -name '*.[oas]' -o -name '.*.cmd' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \ -type f -print | xargs rm -f @@ -814,7 +818,7 @@ endif ALLSOURCE_ARCHS := $(ARCH) define all-sources - ( find $(__srctree)/palacios $(RCS_FIND_IGNORE) \ + ( find $(__srctree)palacios $(RCS_FIND_IGNORE) \ \( -name lib \) -prune -o \ -name '*.[chS]' -print; ) endef