X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile.rules;h=888c5bdf04069571ef42764bb01d6825f156f822;hb=f61e6457a5c70eb890fd5b77b82f124ed420e8af;hp=142b62e421ef424056967bdf8e830fc396c114d2;hpb=fd3542f84ded13a83f31ed895b46d54a7659be27;p=oota-llvm.git diff --git a/Makefile.rules b/Makefile.rules index 142b62e421e..888c5bdf040 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -244,6 +244,11 @@ ifndef REQUIRES_EH CXX.Flags += -fno-exceptions endif +# IF REQUIRES_RTTI=1 is specified then don't disable run-time type id +ifndef REQUIRES_RTTI +# CXX.Flags += -fno-rtti +endif + # If DISABLE_ASSERTIONS=1 is specified (make command line or configured), # then disable assertions by defining the appropriate preprocessor symbols. ifdef DISABLE_ASSERTIONS @@ -1691,7 +1696,8 @@ install-local:: $(Verb) if test -d "$(PROJ_SRC_ROOT)/include" ; then \ cd $(PROJ_SRC_ROOT)/include && \ for hdr in `find . -type f '!' '(' -name '*~' -o -name '.cvsignore' \ - -o -name '.#*' -o -name '*.in' ')' -print | grep -v CVS ` ; do \ + -o -name '.#*' -o -name '*.in' ')' -print | grep -v CVS | \ + grep -v .svn` ; do \ instdir=`dirname "$(PROJ_includedir)/$$hdr"` ; \ if test \! -d "$$instdir" ; then \ $(EchoCmd) Making install directory $$instdir ; \ @@ -1724,6 +1730,20 @@ uninstall-local:: endif endif +check-line-length: + @egrep -n '.{81}' $(Sources) + +check-for-tabs: + @egrep -n ' ' $(Sources) +check-footprint: + @ls -l $(LibDir) | awk '\ + BEGIN { sum = 0; } \ + { sum += $$5; } \ + END { printf("Libraries: %6.3f MBytes\n", sum/(1024.0*1024.0)); }' + @ls -l $(ToolDir) | awk '\ + BEGIN { sum = 0; } \ + { sum += $$5; } \ + END { printf("Programs: %6.3f MBytes\n", sum/(1024.0*1024.0)); }' #------------------------------------------------------------------------ # Print out the directories used for building #------------------------------------------------------------------------ @@ -1760,3 +1780,5 @@ printvars:: $(Echo) "Module : " '$(Module)' $(Echo) "FilesToConfig: " '$(FilesToConfigPATH)' $(Echo) "SubDirs : " '$(SubDirs)' + $(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)' + $(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)'