]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix Makefile for the case of static libraries in which case the order of libs was...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 20 Aug 2007 22:49:43 +0000 (22:49 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 20 Aug 2007 22:49:43 +0000 (22:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@15000 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/doxygen/Makefile

index 422270a3e26cd7721e9f572b859a19e393063200..1ed195f86c1fc543d1898c1fd819812aa1e14567 100644 (file)
@@ -2,7 +2,7 @@
 #    $Id$
 #    Version: $Name$
 #
-#    Copyright (C) 1998 - 2006 by the deal.II authors
+#    Copyright (C) 1998 - 2007 by the deal.II authors
 #
 #    This file is subject to QPL and may not be  distributed
 #    without copyright and license information. Please refer
@@ -19,25 +19,28 @@ all: product_matrix$(EXEEXT) block_matrix_array$(EXEEXT) \
 # Compilation of source code
 ######################################################################
 
-%.$(OBJEXT) :
-       @echo =====debug======$(MT)== $<
-       @$(CXX) $(CXXFLAGS.g) $(CXXFLAGS) -c $< -o $@
+./%.g.$(OBJEXT) :
+       @echo ==============debug========= $(<F)
+       @$(CXX) $(CXXFLAGS.g) -c $< -o $@
+./%.$(OBJEXT) :
+       @echo ==============optimized===== $(<F)
+       @$(CXX) $(CXXFLAGS.o) -c $< -o $@
 
 ######################################################################
 # Specific targets
 ######################################################################
 
-block_matrix_array$(EXEEXT): block_matrix_array.$(OBJEXT) $(lib-lac.g) $(lib-base.g)
-       @echo =====linking====$(MT)== $<
-       @$(CXX) $(CXXFLAGS.g) $(LDFLAGS) -o $@ $^ $(LIBS)
+block_matrix_array$(EXEEXT): block_matrix_array.g.$(OBJEXT) $(lib-lac.g) $(lib-base.g)
+       @echo ============================ Linking $@
+       @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
 
-product_matrix$(EXEEXT): product_matrix.$(OBJEXT) $(lib-lac.g) $(lib-base.g)
-       @echo =====linking====$(MT)== $<
-       @$(CXX) $(CXXFLAGS.g) $(LDFLAGS) -o $@ $^ $(LIBS)
+product_matrix$(EXEEXT): product_matrix.g.$(OBJEXT) $(lib-lac.g) $(lib-base.g)
+       @echo ============================ Linking $@
+       @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
 
-compressed_block_sparsity_pattern$(EXEEXT): compressed_block_sparsity_pattern.$(OBJEXT) $(lib-deal2-2d.g) $(lib-lac.g) $(lib-base.g)
-       @echo =====linking====$(MT)== $<
-       @$(CXX) $(CXXFLAGS.g) $(LDFLAGS) -o $@ $^ $(LIBS)
+compressed_block_sparsity_pattern$(EXEEXT): compressed_block_sparsity_pattern.g.$(OBJEXT) $(lib-deal2-2d.g) $(lib-lac.g) $(lib-base.g)
+       @echo ============================ Linking $@
+       @$(CXX) -o $@ $^ $(LIBS) $(LDFLAGS)
 
 ######################################################################
 # Pseudo target for cleaning directory

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.