]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
New parallel make structure
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Apr 2002 16:01:17 +0000 (16:01 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Apr 2002 16:01:17 +0000 (16:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@5671 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/Makefile
deal.II/base/Makefile
deal.II/deal.II/Makefile
deal.II/lac/Makefile

index 864f16493b33651f144120bd17eea75e3deb555b..aee757dcb82e81fce61a5eb57ed38669310c5ae6 100644 (file)
@@ -13,9 +13,12 @@ help:
        @echo "=                                                                      ="
        @echo "= The following targets exist:                                         ="
        @echo "=    baseg lacg : debug libraries \"base\" and \"lac\"                     ="
+       @echo "=    baseo laco : optimized libraries \"base\" and \"lac\"                 ="
        @echo "=    base lac   : debug and optimized libraries \"base\" and \"lac\"       ="
        @echo "=    1dg 2dg 3dg: deal.II debug version for specified dimension        ="
+       @echo "=    1do 2do 3do: deal.II optimized version for specified dimension    ="
        @echo "=    1d 2d 3d   : deal.II debug and optimized for specified dimension  ="
+       @echo "=    forward    : forward_declarations.h for all libraries             ="
        @echo "=                                                                      ="
        @echo "=    contrib    : additional libraries in contrib, if there are any    ="
        @echo "=                                                                      ="
@@ -35,15 +38,13 @@ help:
 baseg:
        cd $D/base ; $(MAKE) $(MAKEOPTIONS) libg
 
-base:
-       cd $D/base ; $(MAKE) $(MAKEOPTIONS) libg
+baseo:
        cd $D/base ; $(MAKE) $(MAKEOPTIONS) lib
 
 lacg: 
        cd $D/lac ; $(MAKE) $(MAKEOPTIONS) libg
 
-lac:
-       cd $D/lac ; $(MAKE) $(MAKEOPTIONS) libg
+laco:
        cd $D/lac ; $(MAKE) $(MAKEOPTIONS) lib
 
 1dg:
@@ -55,48 +56,34 @@ lac:
 3dg:
        cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 3dg
 
-1d:
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 1dg
+1do:
        cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 1d
 
-2d:
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 2dg
+2do:
        cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 2d
 
-3d:
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 3dg
+3do:
        cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 3d
 
+base: baseg baseo
+lac: lacg laco
+1d: 1dg 1do
+2d: 2dg 2do
+3d: 3dg 3do
+
+forward:
+       cd $D/base ; $(MAKE) $(MAKEOPTIONS) forward
+       cd $D/lac ; $(MAKE) $(MAKEOPTIONS) forward
+       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) forward
+
 $(LIBDIR):
        mkdir $@
 
 baseg base lacg lac 1dg 1d 2dg 2d 3dg 3d all debug contrib : $(LIBDIR)
 
-all: contrib
-       cd $D/base ; $(MAKE) $(MAKEOPTIONS) libg
-       cd $D/base ; $(MAKE) $(MAKEOPTIONS) lib
-       cd $D/lac ; $(MAKE) $(MAKEOPTIONS) libg
-       cd $D/lac ; $(MAKE) $(MAKEOPTIONS) lib
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 2dg
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 2d
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 1dg
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 1d
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 3dg
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 3d
-
-debug: contrib
-       cd $D/base ; $(MAKE) $(MAKEOPTIONS) libg
-       cd $D/lac ; $(MAKE) $(MAKEOPTIONS) libg
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 2dg
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 1dg
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 3dg
-
-optimized:
-       cd $D/base ; $(MAKE) $(MAKEOPTIONS) libo
-       cd $D/lac ; $(MAKE) $(MAKEOPTIONS) libo
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 2d
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 1d
-       cd $D/deal.II ; $(MAKE) $(MAKEOPTIONS) 3d
+all: contrib base lac 2d 1d 3d forward
+debug: contrib baseg lacg 2dg 1dg 3dg forward
+optimized: contrib baseo laco 2do 1do 3do forward
 
 contrib:
        cd $D/contrib ; $(MAKE)
index 483f978c80a0c53fe274deb5338c8b65b0ee3db4..6cabf0cc9aa82eaaf07e11c4c9ba3161ff7d07b5 100644 (file)
@@ -76,21 +76,22 @@ else
   libo: $(LIBDIR)/libbase.a
 endif
 
+forward: $(forward-declarations)
 
-$(LIBDIR)/libbase.a: $(forward-declarations) $(o-files)
+$(LIBDIR)/libbase.a: $(o-files)
        @echo =====base=============optimized==$(MT)== Linking library:   $(@F)
        @ar ru $@ $(o-files)
 
-$(LIBDIR)/libbase.g.a: $(forward-declarations) $(go-files)
+$(LIBDIR)/libbase.g.a: $(go-files)
        @echo =====base=============debug======$(MT)== Linking library:   $(@F)
        @ar ru $@ $(go-files)
 
 
-$(LIBDIR)/libbase.so: $(forward-declarations) $(o-files)
+$(LIBDIR)/libbase.so: $(o-files)
        @echo =====base=============optimized==$(MT)== Linking library:   $(@F)
        @$(CC) $(LDFLAGS) -shared -o $@ $(o-files)
 
-$(LIBDIR)/libbase.g.so: $(forward-declarations) $(go-files)
+$(LIBDIR)/libbase.g.so: $(go-files)
        @echo =====base=============debug======$(MT)== Linking library:   $(@F)
        @$(CC) $(LDFLAGS) -shared -o $@ $(go-files)
 
@@ -110,7 +111,7 @@ clean:
 #note that here we translate file names with data_out_base
 #to three file names with the dimension for which we compile
 #appended
-Makefile.dep: $(cc-files) $(forward-declarations) $(h-files) Makefile
+Makefile.dep: $(cc-files) $(h-files) Makefile
        @echo ============================ Remaking Makefile
        @$(PERL) $D/common/scripts/make_dependencies.pl $(INCLUDE) "-B\$$(LIBDIR)/base" $(cc-files) \
                | $(PERL) -p -e 's!(.*/base/data_out_base)((.g)?.o)!$$1_1d$$2 $$1_2d$$2 $$1_3d$$2 $$1_4d$$2!g;' \
index 58fc4fa56bd29c22e73c68e885881395f27b3f21..ae0a9266de039abe59485511879567a37958af83 100644 (file)
@@ -32,13 +32,14 @@ else
   3d : $(LIBDIR)/libdeal_II_3d.a
 endif
 
-
 # create lists of file names
 cc-files     = $(shell echo source/*/*.cc)
 h-files      = $(sort $(shell echo include/*/*.h))
 
 forward-declarations = $D/deal.II/include/grid/forward_declarations.h
 
+forward: $(forward-declarations)
+
 
 # strip subdirectories from cc file names, preprend a "lib/[g]o"
 # and change the suffix. We place the object files with or without
@@ -151,7 +152,7 @@ $(LIBDIR)/libdeal_II_3d.so: $(o-files-3d)
 #one of the cc-/h-files changed. Make detects whether
 #to remake this file upon inclusion at the bottom
 #of this file.
-Makefile.dep: $(cc-files) $(forward-declarations) $(h-files) Makefile
+Makefile.dep: $(cc-files) $(h-files) Makefile
        @echo ============================ Remaking Makefile
        @$(PERL) $D/common/scripts/make_dependencies.pl $(INCLUDE) "-B\$$(LIBDIR)" $(cc-files) \
                | $(PERL) -p -e 's!LIBDIR\)/(.*):!LIBDIR)/DIM_PLACEHOLDER/$$1:!g;' \
index a1bf983b752c3eeb04d9beaa3dc9c6eb6f92b826..e6bbde9dbf4ef90e2e5a27cac8c598f4fd1de37d 100644 (file)
@@ -49,22 +49,22 @@ else
   libo: $(LIBDIR)/liblac.a
 endif
 
+forward: $(forward-declarations)
 
-
-$(LIBDIR)/liblac.a: $(forward-declarations) $(o-files)
+$(LIBDIR)/liblac.a: $(o-files)
        @echo =====lac==============optimized==$(MT)== Linking library:   $(@F)
        @ar ru $@ $(o-files)
 
-$(LIBDIR)/liblac.g.a: $(forward-declarations) $(go-files)
+$(LIBDIR)/liblac.g.a: $(go-files)
        @echo =====lac==============debug======$(MT)== Linking library:   $(@F)
        @ar ru $@ $(go-files)
 
 
-$(LIBDIR)/liblac.so: $(forward-declarations) $(o-files)
+$(LIBDIR)/liblac.so: $(o-files)
        @echo =====lac==============optimized==$(MT)== Linking library:   $(@F)
        @$(CC) $(LDFLAGS) -shared -o $@ $(o-files)
 
-$(LIBDIR)/liblac.g.so: $(forward-declarations) $(go-files)
+$(LIBDIR)/liblac.g.so: $(go-files)
        @echo =====lac==============debug======$(MT)== Linking library:   $(@F)
        @$(CC) $(LDFLAGS) -shared -o $@ $(go-files)
 
@@ -79,7 +79,7 @@ clean:
 #one of the cc-/h-files changed. Make detects whether
 #to remake this file upon inclusion at the bottom
 #of this file.
-Makefile.dep: $(cc-files) $(forward-declarations) $(h-files) Makefile
+Makefile.dep: $(cc-files) $(h-files) Makefile
        @echo ============================ Remaking Makefile
        @$(PERL) $D/common/scripts/make_dependencies.pl $(INCLUDE) "-B\$$(LIBDIR)/lac" $(cc-files) \
                > Makefile.dep

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.