]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use CXXFLAGS for special configuration
authorcvs <cvs@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Oct 1999 16:05:44 +0000 (16:05 +0000)
committercvs <cvs@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Oct 1999 16:05:44 +0000 (16:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@1782 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/Makefile
deal.II/common/Make.global_options
deal.II/common/Makefile.template
deal.II/common/README
deal.II/deal.II/source/Makefile
deal.II/lac/source/Makefile

index 037ddf93a05cff67ca588d6af7ab0d856808732e..5d5d5b4dd323bccc7f8f3237f42a1a8946b901dc 100644 (file)
@@ -46,11 +46,11 @@ maybe-define-dimension  = $(patsubst %,-Ddata_out_dimension=%,$(maybe-define-dim
 ../lib/go/%.go :
        @echo =================== Compiling with debugging information:   $< \
              "   " $(patsubst -Ddata_out_dimension=%,dimension=%,$(maybe-define-dimension))
-       @$(CXX) $(CXXFLAGS.g) $(maybe-define-dimension) -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.g) $(maybe-define-dimension) -c $< -o $@
 ../lib/o/%.o :
        @echo =================== Compiling with optimization:   $< \
              "   " $(patsubst -Ddata_out_dimension=%,dimension=%,$(maybe-define-dimension))
-       @$(CXX) $(CXXFLAGS.o) $(maybe-define-dimension) -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.o) $(maybe-define-dimension) -c $< -o $@
 
 
 lib: ../lib/libbase.g.a ../lib/libbase.a
index c5fbcbc0c9c28443f309c422d2096e953ba9f513..d73b982d948d6fe8b8c817c7ce9b68238ae825c9 100644 (file)
@@ -5,6 +5,9 @@
 # that is, the parent directory of this directory.
 #
 # Please set $D to the right path before including this file!
+#
+# For special compiler flags please do not edit this file but look up
+# README, section Compiler flags, for further information.
 
 vpath %.a $D/base/lib
 vpath %.a $D/lac/lib
@@ -34,8 +37,8 @@ endif
 
 %.go : %.cc #Makefile
        @echo =====debug========= $<
-       @$(CXX) $(flags) -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(flags) -c $< -o $@
 %.o : %.cc #Makefile
        @echo =====optimized===== $<
-       @$(CXX) $(flags) -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(flags) -c $< -o $@
 
index 5647da35d1de822d8e31486c4c122a8a98962f78..5e692866c97bda38f8cd1bc714625254171f5c41 100644 (file)
@@ -33,12 +33,12 @@ libs.g = -ldeal_II_2d.g -llac.g -lbase.g
 
 ifeq ($(debug-mode),on)
 libraries = $(libs.g)
-flags     = $(CXXFLAGS.g) $(CXXFLAGS)
+flags     = $(CXXFLAGS.g)
 endif
 
 ifeq ($(debug-mode),off)
 libraries = $(libs)
-flags     = $(CXXFLAGS.o) $(CXXFLAGS)
+flags     = $(CXXFLAGS.o)
 endif
 
 
@@ -64,7 +64,7 @@ target1-o-files = $(target1-cc-files:.cc=.o)
 endif
 
 target1: $(target1-o-files) $(libraries)
-       $(CXX) $(flags) -o $@ $^
+       $(CXX) $(CXXFLAGS) $(flags) -o $@ $^
 
 ############################################################
 # Continue with other targets if needed
index 8e0f200876ad3a3334c3d4e44872fcd9c49ca97d..a9ac0ef6d5de2ac24dba19f0ee4685e2016910f9 100644 (file)
@@ -72,8 +72,26 @@ way to minimize cross-dependencies, this speeds up compilation by
 about the factor given after '-j', at least if you have as many
 processors. 
 
+3) Compiler flags:
+------------------
 
-3) Problems, questions, further information:
+Since the ISO C++ standard is still quite new and compilers still
+change a lot, you might need to provide special options for the
+compiler. You can do this by entering a value into the environment
+variable CXXFLAGS of your shell. An example for (t)csh is
+
+setenv CXXFLAGS '-option1 -option2 value'
+
+Bash-users will know what to do instead. These options then will be
+handed to the compiler and the linker during translation of the
+library and your programs.
+
+A list of necessary flags follows:
+
+XXXX
+
+
+4) Problems, questions, further information:
 --------------------------------------------
 Feel free to ask if you have any problems with deal.II. If a
 question is of general interest, you may want to use our mailing list,
@@ -90,8 +108,7 @@ are also very much interested in incorporating any work and bug fixes
 by third parties into the library; you will of course be credited by
 name for this.
 
-
-4) License:
+5) License:
 -----------
 Note that we have not yet fully finished the license under which we
 will distribute the library. However, we will keep to the following
index 0ef33ef457574897157c40b15a92cfb6b8839f4b..7d90422931099505a810f0b050557d81adfd71fb 100644 (file)
@@ -63,29 +63,29 @@ debug: 2dg 1dg 3dg
 # listed immediately below
 ../lib/1d/go/%.go :
        @echo ==============1d======debug============= $<
-       @$(CXX) $(CXXFLAGS.g) -Ddeal_II_dimension=1 -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.g) -Ddeal_II_dimension=1 -c $< -o $@
 ../lib/1d/o/%.o :
        @echo ==============1d======optimized========= $<
-       @$(CXX) $(CXXFLAGS.o) -Ddeal_II_dimension=1 -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.o) -Ddeal_II_dimension=1 -c $< -o $@
 
 ../lib/2d/go/%.go :
        @echo ==============2d======debug============= $<
-       @$(CXX) $(CXXFLAGS.g) -Ddeal_II_dimension=2 -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.g) -Ddeal_II_dimension=2 -c $< -o $@
 ../lib/2d/o/%.o :
        @echo ==============2d======optimized========= $<
-       @$(CXX) $(CXXFLAGS.o) -Ddeal_II_dimension=2 -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.o) -Ddeal_II_dimension=2 -c $< -o $@
 
 ../lib/3d/go/%.go :
        @echo ==============3d======debug============= $<
-       @$(CXX) $(CXXFLAGS.g) -Ddeal_II_dimension=3 -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.g) -Ddeal_II_dimension=3 -c $< -o $@
 ../lib/3d/o/%.o :
        @echo ==============3d======optimized========= $<
-       @$(CXX) $(CXXFLAGS.o) -Ddeal_II_dimension=3 -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.o) -Ddeal_II_dimension=3 -c $< -o $@
 
 # special rules for exceptional files
 ../lib/3d/o/q1_mapping_jacobians_3d.o:
        @echo "==============3d======opt==(special)====" $<
-       @$(CXX) $(filter-out -O2 -Wuninitialized,$(CXXFLAGS.o)) -Ddeal_II_dimension=3 -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(filter-out -O2 -Wuninitialized,$(CXXFLAGS.o)) -Ddeal_II_dimension=3 -c $< -o $@
 
 
 
index 5b9d6b560d9420310b284661224ef0efbfe89cbe..e2e965daf2b4b0a3a2582d5b09d0609de7723352 100644 (file)
@@ -14,10 +14,10 @@ include $D/common/Make.global_options
 
 ../lib/go/%.go :
        @echo ============================ Compiling with debugging information:   $<
-       @$(CXX) $(CXXFLAGS.g) -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.g) -c $< -o $@
 ../lib/o/%.o :
        @echo ============================ Compiling with optimization:   $<
-       @$(CXX) $(CXXFLAGS.o) -c $< -o $@
+       @$(CXX) $(CXXFLAGS) $(CXXFLAGS.o) -c $< -o $@
 
 
 lib: ../lib/liblac.g.a ../lib/liblac.a

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.