maybe-define-dimension = $(patsubst %,-Ddata_out_dimension=%,$(maybe-define-dimension1))
# production rules
+ifneq ($(with-multithreading),no)
+ MT = MT
+else
+ MT = ==
+endif
+
lib/go/%.go :
- @echo =====base=============debug========= $(<F) \
+ @echo =====base=============debug======$(MT)== $(<F) \
" " $(patsubst -Ddata_out_dimension=%,dimension=%,$(maybe-define-dimension))
@$(CXX) $(CXXFLAGS.g) $(maybe-define-dimension) -c $< -o $@
lib/o/%.o :
- @echo =====base=============optimized===== $(<F) \
+ @echo =====base=============optimized==$(MT)== $(<F) \
" " $(patsubst -Ddata_out_dimension=%,dimension=%,$(maybe-define-dimension))
@$(CXX) $(CXXFLAGS.o) $(maybe-define-dimension) -c $< -o $@
# Targets for compilation
############################################################
+ifneq ($(with-multithreading),no)
+ MT = MT
+else
+ MT = ==
+endif
+
%.g.o : %.cc
- @echo =====debug========= $<
+ @echo =====debug======$(MT)== $<
@$(CXX) $(CXXFLAGS.g) $(CXXFLAGS) -c $< -o $@
%.o : %.cc
- @echo =====optimized===== $<
+ @echo =====optimized==$(MT)== $<
@$(CXX) $(CXXFLAGS.o) $(CXXFLAGS) -c $< -o $@
############################################################
# rules how to generate object files from source files. note that
# there are some files which needs exceptional rules; these are
# listed immediately below
+ifneq ($(with-multithreading),no)
+ MT = MT
+else
+ MT = ==
+endif
+
lib/1d/go/%.go :
- @echo =====deal.II====1d====debug========= $(<:source/%=%)
+ @echo =====deal.II====1d====debug======$(MT)== $(<:source/%=%)
@$(CXX) $(CXXFLAGS.g) -Ddeal_II_dimension=1 -c $< -o $@
lib/1d/o/%.o :
- @echo =====deal.II====1d====optimized===== $(<:source/%=%)
+ @echo =====deal.II====1d====optimized==$(MT)== $(<:source/%=%)
@$(CXX) $(CXXFLAGS.o) -Ddeal_II_dimension=1 -c $< -o $@
lib/2d/go/%.go :
- @echo =====deal.II====2d====debug========= $(<:source/%=%)
+ @echo =====deal.II====2d====debug======$(MT)== $(<:source/%=%)
@$(CXX) $(CXXFLAGS.g) -Ddeal_II_dimension=2 -c $< -o $@
lib/2d/o/%.o :
- @echo =====deal.II====2d====optimized===== $(<:source/%=%)
+ @echo =====deal.II====2d====optimized==$(MT)== $(<:source/%=%)
@$(CXX) $(CXXFLAGS.o) -Ddeal_II_dimension=2 -c $< -o $@
lib/3d/go/%.go :
- @echo =====deal.II====3d====debug========= $(<:source/%=%)
+ @echo =====deal.II====3d====debug======$(MT)== $(<:source/%=%)
@$(CXX) $(CXXFLAGS.g) -Ddeal_II_dimension=3 -c $< -o $@
lib/3d/o/%.o :
- @echo =====deal.II====3d====optimized===== $(<:source/%=%)
+ @echo =====deal.II====3d====optimized==$(MT)== $(<:source/%=%)
@$(CXX) $(CXXFLAGS.o) -Ddeal_II_dimension=3 -c $< -o $@
# production rules
+ifneq ($(with-multithreading),no)
+ MT = MT
+else
+ MT = ==
+endif
+
lib/go/%.go :
- @echo =====lac==============debug========= $(<F)
+ @echo =====lac==============debug======$(MT)== $(<F)
@$(CXX) $(CXXFLAGS.g) -c $< -o $@
lib/o/%.o :
- @echo =====lac==============optimized===== $(<F)
+ @echo =====lac==============optimized==$(MT)== $(<F)
@$(CXX) $(CXXFLAGS.o) -c $< -o $@