]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Shave 4 seconds off the startup time of previously 17 seconds by using
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Oct 2010 22:59:30 +0000 (22:59 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Oct 2010 22:59:30 +0000 (22:59 +0000)
singly-expanded variables.

git-svn-id: https://svn.dealii.org/trunk@22480 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/Makefile

index 7087d252c0a7c84317a69dfd27184f9b9197091c..c66fb7beff3fd9868e630c043545e5638d972674 100644 (file)
@@ -19,42 +19,42 @@ default all: debug optimized
 
 
 # list the dimension dependent and dimension independent directories
-dim-dep-dirs   = dofs fe grid hp multigrid numerics distributed
-dim-indep-dirs = base lac
-all-dirs       = $(dim-dep-dirs) $(dim-indep-dirs)
+dim-dep-dirs   := dofs fe grid hp multigrid numerics distributed
+dim-indep-dirs := base lac
+all-dirs       := $(dim-dep-dirs) $(dim-indep-dirs)
 
 # create lists of file names.
-dim-indep-cc-files = $(shell for i in $(dim-indep-dirs) ; do echo $D/source/$$i/*.cc ; done) \
-                     $(shell for i in $(dim-dep-dirs) ; do for j in $D/source/$$i/*.cc ; do \
+dim-indep-cc-files := $(shell for i in $(dim-indep-dirs) ; do echo $D/source/$$i/*.cc ; done) \
+                      $(shell for i in $(dim-dep-dirs) ; do for j in $D/source/$$i/*.cc ; do \
                                                        (echo $$j | grep all_dimensions); done ; done)
-dim-dep-cc-files   = $(filter-out \
+dim-dep-cc-files   := $(filter-out \
                         %.all_dimensions.cc, \
                         $(shell for i in $(dim-dep-dirs) ; do echo $D/source/$$i/*.cc ; done))
-h-files      = $(sort $(shell echo $D/include/deal.II/*/*.h))
+h-files      := $(sort $(shell echo $D/include/deal.II/*/*.h))
 
-inst-in-files= $(shell echo */*.inst.in)
-inst-files   = $(inst-in-files:%.in=%)
+inst-in-files := $(shell echo */*.inst.in)
+inst-files    := $(inst-in-files:%.in=%)
 
 
 # for the dimension independent files, build unique object file names
-tmp1        = $(shell echo $(dim-indep-cc-files) | $(PERL) -pi -e 's,$D/source/,,g; s,/,_,g;')
-tmp-o-files-indep  = $(addprefix $(LIBDIR)/optimized/, $(tmp1:.cc=.$(OBJEXT)) )
-tmp-go-files-indep = $(addprefix $(LIBDIR)/debug/, $(tmp1:.cc=.$(OBJEXT)))
+tmp1        := $(shell echo $(dim-indep-cc-files) | $(PERL) -pi -e 's,$D/source/,,g; s,/,_,g;')
+tmp-o-files-indep  := $(addprefix $(LIBDIR)/optimized/, $(tmp1:.cc=.$(OBJEXT)) )
+tmp-go-files-indep := $(addprefix $(LIBDIR)/debug/, $(tmp1:.cc=.$(OBJEXT)))
 
 # for the dimension dependent files, build unique object file names for each
 # dimension
-tmp2        = $(shell echo $(dim-dep-cc-files) | $(PERL) -pi -e 's,$D/source/,,g; s,/,_,g;')
-tmp-o-files-1d  = $(addprefix $(LIBDIR)/optimized/1d_, $(tmp2:.cc=.$(OBJEXT)) )
-tmp-go-files-1d = $(addprefix $(LIBDIR)/debug/1d_, $(tmp2:.cc=.$(OBJEXT)))
-tmp-o-files-2d  = $(addprefix $(LIBDIR)/optimized/2d_, $(tmp2:.cc=.$(OBJEXT)) )
-tmp-go-files-2d = $(addprefix $(LIBDIR)/debug/2d_, $(tmp2:.cc=.$(OBJEXT)))
-tmp-o-files-3d  = $(addprefix $(LIBDIR)/optimized/3d_, $(tmp2:.cc=.$(OBJEXT)) )
-tmp-go-files-3d = $(addprefix $(LIBDIR)/debug/3d_, $(tmp2:.cc=.$(OBJEXT)))
-
-o-files  = $(tmp-o-files-indep) \
-          $(tmp-o-files-1d)  $(tmp-o-files-2d)  $(tmp-o-files-3d)
-go-files = $(tmp-go-files-indep) \
-          $(tmp-go-files-1d) $(tmp-go-files-2d) $(tmp-go-files-3d)
+tmp2        := $(shell echo $(dim-dep-cc-files) | $(PERL) -pi -e 's,$D/source/,,g; s,/,_,g;')
+tmp-o-files-1d  := $(addprefix $(LIBDIR)/optimized/1d_, $(tmp2:.cc=.$(OBJEXT)) )
+tmp-go-files-1d := $(addprefix $(LIBDIR)/debug/1d_, $(tmp2:.cc=.$(OBJEXT)))
+tmp-o-files-2d  := $(addprefix $(LIBDIR)/optimized/2d_, $(tmp2:.cc=.$(OBJEXT)) )
+tmp-go-files-2d := $(addprefix $(LIBDIR)/debug/2d_, $(tmp2:.cc=.$(OBJEXT)))
+tmp-o-files-3d  := $(addprefix $(LIBDIR)/optimized/3d_, $(tmp2:.cc=.$(OBJEXT)) )
+tmp-go-files-3d := $(addprefix $(LIBDIR)/debug/3d_, $(tmp2:.cc=.$(OBJEXT)))
+
+o-files  := $(tmp-o-files-indep) \
+           $(tmp-o-files-1d)  $(tmp-o-files-2d)  $(tmp-o-files-3d)
+go-files := $(tmp-go-files-indep) \
+           $(tmp-go-files-1d) $(tmp-go-files-2d) $(tmp-go-files-3d)
 
 
 debug: $(LIBDIR)/libdeal_II.g$(lib-suffix)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.