X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=f0df92c409bf1ee0a76b50736ad9700257a451ca;hb=03be513c0df4bd0c559a0613943ef580e054bb3f;hp=a08ed20922c8a5f154c3e9d0cb7c305f7bcf28f6;hpb=72b46c150b774d64c5e971ac4575c86142c5a509;p=palacios.git diff --git a/Makefile b/Makefile index a08ed20..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) @@ -693,7 +696,6 @@ $(clean-dirs): $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) -# \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ clean: archclean $(clean-dirs) $(call cmd,rmdirs) $(call cmd,rmfiles) @@ -816,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