From 400270798e6e3d62337b560cb20af6617fe90fd3 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 28 Oct 2010 15:00:43 +0000 Subject: [PATCH] Bring Makefiles up to date. git-svn-id: https://svn.dealii.org/trunk@22535 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-1/Makefile | 29 ++++++++++--------------- deal.II/examples/step-10/Makefile | 29 ++++++++++--------------- deal.II/examples/step-11/Makefile | 29 ++++++++++--------------- deal.II/examples/step-12/Makefile | 29 ++++++++++--------------- deal.II/examples/step-13/Makefile | 29 ++++++++++--------------- deal.II/examples/step-14/Makefile | 29 ++++++++++--------------- deal.II/examples/step-15/Makefile | 29 ++++++++++--------------- deal.II/examples/step-16/Makefile | 29 ++++++++++--------------- deal.II/examples/step-17/Makefile | 29 ++++++++++--------------- deal.II/examples/step-18/Makefile | 35 +++++++++++++------------------ deal.II/examples/step-19/Makefile | 29 ++++++++++--------------- deal.II/examples/step-2/Makefile | 29 ++++++++++--------------- deal.II/examples/step-20/Makefile | 29 ++++++++++--------------- deal.II/examples/step-21/Makefile | 29 ++++++++++--------------- deal.II/examples/step-22/Makefile | 29 ++++++++++--------------- deal.II/examples/step-23/Makefile | 29 ++++++++++--------------- deal.II/examples/step-24/Makefile | 29 ++++++++++--------------- deal.II/examples/step-25/Makefile | 29 ++++++++++--------------- deal.II/examples/step-26/Makefile | 29 ++++++++++--------------- deal.II/examples/step-27/Makefile | 29 ++++++++++--------------- deal.II/examples/step-28/Makefile | 29 ++++++++++--------------- deal.II/examples/step-29/Makefile | 29 ++++++++++--------------- deal.II/examples/step-3/Makefile | 29 ++++++++++--------------- deal.II/examples/step-30/Makefile | 29 ++++++++++--------------- deal.II/examples/step-31/Makefile | 29 ++++++++++--------------- deal.II/examples/step-32/Makefile | 29 ++++++++++--------------- deal.II/examples/step-33/Makefile | 29 ++++++++++--------------- deal.II/examples/step-34/Makefile | 29 ++++++++++--------------- deal.II/examples/step-35/Makefile | 29 ++++++++++--------------- deal.II/examples/step-36/Makefile | 29 ++++++++++--------------- deal.II/examples/step-37/Makefile | 29 ++++++++++--------------- deal.II/examples/step-39/Makefile | 29 ++++++++++--------------- deal.II/examples/step-4/Makefile | 29 ++++++++++--------------- deal.II/examples/step-40/Makefile | 29 ++++++++++--------------- deal.II/examples/step-42/Makefile | 29 ++++++++++--------------- deal.II/examples/step-45/Makefile | 29 ++++++++++--------------- deal.II/examples/step-5/Makefile | 29 ++++++++++--------------- deal.II/examples/step-6/Makefile | 29 ++++++++++--------------- deal.II/examples/step-7/Makefile | 29 ++++++++++--------------- deal.II/examples/step-8/Makefile | 29 ++++++++++--------------- deal.II/examples/step-9/Makefile | 29 ++++++++++--------------- 41 files changed, 454 insertions(+), 741 deletions(-) diff --git a/deal.II/examples/step-1/Makefile b/deal.II/examples/step-1/Makefile index 242b6f8a4c..486944be22 100644 --- a/deal.II/examples/step-1/Makefile +++ b/deal.II/examples/step-1/Makefile @@ -48,17 +48,11 @@ include $D/common/Make.global_options # 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, and there need -# to be two sets of libraries: one for the debug mode version of the -# application and one for the optimized mode. Here we have selected -# the versions for 2d. Note that the order in which the libraries are -# given here is important and that your applications won't link -# properly if they are given in another order. -# -# You may need to augment the lists of libraries when compiling your -# program for other dimensions, or when using third party libraries -libs.g = $(lib-deal2.g) -libs.o = $(lib-deal2.o) +# 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) # We now use the variable defined above which switch between debug and @@ -66,8 +60,8 @@ libs.o = $(lib-deal2.o) # in the list of libraries is the name of the object file which we # will produce from the single C++ file. Note that by default we use # the extension .g.o for object files compiled in debug mode and .o for -# object files in optimized mode (or whatever the local default on your -# system is instead of .o). +# object files in optimized mode (or whatever local default on your +# system is instead of .o) ifeq ($(debug-mode),on) libraries = $(target).g.$(OBJEXT) $(libs.g) else @@ -79,9 +73,9 @@ endif # file produced from the single C++ file into the executable. Since # this is the first rule in the Makefile, it is the one `make' selects # if you call it without arguments. -$(target) : $(libraries) +$(target)$(EXEEXT) : $(libraries) @echo ============================ Linking $@ - @$(CXX) -o $@$(EXEEXT) $^ $(LIBS) $(LDFLAGS) + @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS) # To make running the application somewhat independent of the actual @@ -90,7 +84,7 @@ $(target) : $(libraries) # useful if you want to call the executable with arguments which do # not change frequently. You may then want to add them to the # following rule: -run: $(target) +run: $(target)$(EXEEXT) @echo ============================ Running $< @./$(target)$(EXEEXT) @@ -113,7 +107,7 @@ clean: @echo ==============debug========= $(