]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make compile again.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Oct 2010 14:53:24 +0000 (14:53 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Oct 2010 14:53:24 +0000 (14:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@22534 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-41/Makefile

index 2f59b6f2d797ff568b15ad97473e5bb1e075383b..99cc1c328de4ececd6f046018ba84671e0ea8d31 100644 (file)
@@ -21,7 +21,7 @@ debug-mode = on
 
 # And so does the following variable. You will have to set it to
 # something more reasonable, of course.
-clean-up-files = 
+clean-up-files =
 
 # Finally, here is a variable which tells the `run' rule which
 # parameters to pass to the executable. Usually, this will be the name
@@ -41,13 +41,13 @@ D = ../../
 include $D/common/Make.global_options
 
 
-################################################################ 
+################################################################
 # This example program will only work if Trilinos is installed. If this
 # is not the case, then simply redefine the main targets to do nothing
 ifneq ($(USE_CONTRIB_TRILINOS),yes)
 default run clean:
        @echo
-       @echo "===========================================================" 
+       @echo "==========================================================="
        @echo "=   This program cannot be compiled without Trilinos. Make="
        @echo "=   sure you have Trilinos installed and detected during  ="
        @echo "=   configuration of deal.II                              ="
@@ -67,25 +67,22 @@ cc-files    = $(shell echo source/*.cc)
 o-files     = $(cc-files:source/%.cc=lib/$(deal_II_dimension)d/%.$(OBJEXT))
 go-files    = $(cc-files:source/%.cc=lib/$(deal_II_dimension)d/%.g.$(OBJEXT))
 h-files     = $(wildcard include/*.h)
-lib-h-files = $(shell echo $D/base/include/base/*.h \
-                $D/lac/include/lac/*.h             \
-                $D/deal.II/include/*/*.h)
+lib-h-files = $(shell echo $D/include/deal.II/*/*.h)
 
-# As before, define a list of libraries. This, of course depends on
-# the dimension in which we are working:
-libs.g   = $(lib-deal2-$(deal_II_dimension)d.g) \
-          $(lib-lac.g)                         \
-           $(lib-base.g)
-libs.o   = $(lib-deal2-$(deal_II_dimension)d.o) \
-          $(lib-lac.o)                         \
-           $(lib-base.o)
+# Since the whole project consists of only one file, we need not
+# consider difficult dependencies. We only have to declare the
+# libraries which we want to link to the object file. deal.II has two
+# libraries: one for the debug mode version of the
+# application and one for optimized mode.
+libs.g   := $(lib-deal2.g)
+libs.o   := $(lib-deal2.o)
 
 
 
 # Now use the information from above to define the set of libraries to
 # link with and the flags to be passed to the compiler:
 ifeq ($(debug-mode),on)
-  libraries = $(go-files) $(libs.g) 
+  libraries = $(go-files) $(libs.g)
   flags     = $(CXXFLAGS.g)
 else
   libraries = $(o-files) $(libs.o)
@@ -137,7 +134,6 @@ clean-data:
 .PHONY: clean clean-data clean-lib run
 
 
-
 # Finally produce the list of dependencies. Note that this time, the
 # object files end up in directories of their own, so we have to
 # modify the output a bit. The file with the dependencies is put into

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.