../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
# 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
%.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 $@
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
endif
target1: $(target1-o-files) $(libraries)
- $(CXX) $(flags) -o $@ $^
+ $(CXX) $(CXXFLAGS) $(flags) -o $@ $^
############################################################
# Continue with other targets if needed
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,
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
# 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 $@
../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