]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mess around a lot with the make files: do not compile right into a library but rather...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 17 Aug 1998 13:25:59 +0000 (13:25 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 17 Aug 1998 13:25:59 +0000 (13:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@499 0785d39b-7218-0410-832d-ea1e28bc413d

16 files changed:
deal.II/deal.II/Attic/examples/convergence/Makefile
deal.II/deal.II/Attic/examples/dof/Makefile
deal.II/deal.II/Attic/examples/error-estimation/Makefile
deal.II/deal.II/Attic/examples/grid/Makefile
deal.II/deal.II/Attic/examples/poisson/Makefile
deal.II/deal.II/Make.global_options
deal.II/deal.II/Makefile
deal.II/deal.II/source/Makefile
deal.II/deal.II/source/fe/Makefile [deleted file]
deal.II/deal.II/source/grid/Makefile [deleted file]
deal.II/deal.II/source/numerics/Makefile [deleted file]
tests/big-tests/convergence/Makefile
tests/big-tests/dof/Makefile
tests/big-tests/error-estimation/Makefile
tests/big-tests/grid/Makefile
tests/big-tests/poisson/Makefile

index 243fe63c1c91d8c9799ee093c2be4b43e38016df..7f36e65100eb5b1784e063f8e05ea753e8222014 100644 (file)
@@ -47,8 +47,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not
index ff771ea390df1b9d90a3354a7ac699ba05037719..68cdbcd2f7db48ad2ed07b9658245c7527e01589 100644 (file)
@@ -15,7 +15,7 @@ debug-mode = on
 
 # If you want your program to be linked with extra object or library
 # files, specify them here:
-user-libs = ../../lib/libbasic.g.a ../../lib/libgrid.g.a ../../../lac/lib/liblac.g.a ../../lib/libfe.g.a
+user-libs =
 
 # To run the program, use "make run"; to give parameters to the program,
 # give the parameters to the following variable:
@@ -47,8 +47,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not
index c616cebd4dd3ba43c642fdfaae5d29a0d6ec89a9..1bde6b725fdeb9919a3aba334610c06aae63bb97 100644 (file)
@@ -52,8 +52,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not
index 714fc3b6b659ed1b1a111b43ad912858e2adc42f..bb293fbe40b7ee1c04908d8d6c289ab36ff0eecf 100644 (file)
@@ -15,7 +15,7 @@ debug-mode = on
 
 # If you want your program to be linked with extra object or library
 # files, specify them here:
-user-libs = ../../lib/libbasic.g.a ../../lib/libgrid.g.a ../../../lac/lib/liblac.g.a ../../lib/libfe.g.a
+user-libs =
 
 # To run the program, use "make run"; to give parameters to the program,
 # give the parameters to the following variable:
@@ -47,8 +47,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not
index 63cf522641af966878fcee762c2446d72f25b089..bb1be16d9064ce6750d5f77dc6cfb3eeedaeca19 100644 (file)
@@ -15,7 +15,7 @@ debug-mode = off
 
 # If you want your program to be linked with extra object or library
 # files, specify them here:
-user-libs = ../../lib/libfe.g.a
+user-libs =
 
 # To run the program, use "make run"; to give parameters to the program,
 # give the parameters to the following variable:
@@ -47,8 +47,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not
index e27ffc2c0e6e158102fd48672e9fc58c1ad02dac..4359aa1e80069728ca807c482e2d0a38f35fa3e2 100644 (file)
@@ -1,5 +1,6 @@
 # $Id$
-# Global options for all compilations
+# Global options for all compilations (compilations in /source now
+# use other options!)
 
 deal_II_dimension=2
 
index 6b864a04421bd20bc06269fd6d7198deb8886deb..f802bb25bec7fd86895d7aed0b195b79143f75e8 100644 (file)
@@ -3,8 +3,7 @@
 
 all: deal.II doc examples
 
-clean: examples-clean doc-clean source-clean
-       rm -f *~ include/*~ include/*/*~ lib/lib*
+clean: lib-clean doc-clean source-clean examples-clean
 
 
 deal.II:
@@ -16,6 +15,9 @@ doc:
 examples:
        cd examples ; make
 
+lib-clean:
+       rm -f *~ include/*~ include/*/*~ lib/lib* lib/*o lib/st*
+
 
 doc-clean:
        cd doc ; make clean
@@ -29,4 +31,4 @@ source-clean:
 
 
 .PHONY: all deal.II doc examples
-.PHONY: clean doc-clean examples-clean source-clean
+.PHONY: clean lib-clean doc-clean examples-clean source-clean
index 91bd10d5474574c8ec91ab5561ebe186d0d9dde9..48bdfd1d009f71e12e45311f6466b239e42cf636 100644 (file)
 # $Id$
 
 #this file uses many small rules to allow
-#   make -j4
+#   make -j
 #on multiprocessor machines. Feel free to use this feature,
 #it gives you quicker compile time and annoys those FEATFLOW
 #people ;-)
 
+include ../Make.global_options
 
-all: lib.g.a lib.a
 
-lib.g.a: libbasic.g.a libgrid.g.a libfe.g.a libnumerics.g.a
-lib.a:   libbasic.a libgrid.a libfe.a libnumerics.a
+cc-files = $(wildcard */*.cc)
+h-files  = $(wildcard ../include/*/*.h)
 
-libbasic.g.a:
-       @cd basic   ; $(MAKE) lib.g.a
+# strip subdirectories from cc file names, preprend a "../lib/"
+# and change the suffix:
+tmp1     = $(notdir $(cc-files))
+tmp2     = $(addprefix ../lib/, $(tmp1))
+o-files  = $(tmp2:.cc=.o)
+go-files = $(tmp2:.cc=.go)
 
-libgrid.g.a:
-       @cd grid    ; $(MAKE) lib.g.a
 
-libfe.g.a:
-       @cd fe      ; $(MAKE) lib.g.a
+deal_II_dimension=2
 
-libnumerics.g.a:
-       @cd numerics; $(MAKE) lib.g.a
+CXX       = c++
+INCLUDE   = -I../include -I../../lac/include \
+            -I../../base/include -I../../mia/include
+CXXFLAGS.g= -DDEBUG -g -Wall -W -pedantic -Wconversion \
+            -Winline -Woverloaded-virtual -fno-rtti  \
+            $(INCLUDE) -Ddeal_II_dimension=$(deal_II_dimension)
+CXXFLAGS  =-O3 -Wuninitialized -finline-functions -ffast-math \
+           -funroll-loops -felide-constructors -fnonnull-objects \
+           -fno-rtti $(INCLUDE) \
+           -Ddeal_II_dimension=$(deal_II_dimension)
 
-libbasic.a:
-       @cd basic   ; $(MAKE) lib.a
+ifeq ($(shell uname),Linux)
+CXX       = /home/wolf/bin/gcc/bin/c++
+endif
 
-libgrid.a:
-       @cd grid    ; $(MAKE) lib.a
+ifeq ($(shell uname),SunOS)
+CXX       = /usr/local/gcc/egcs-19980803/bin/c++
+endif
 
-libfe.a:
-       @cd fe      ; $(MAKE) lib.a
 
-libnumerics.a:
-       @cd numerics; $(MAKE) lib.a
+%.go :
+       @echo ============================ Compiling with debugging information:   $<
+       @$(CXX) $(CXXFLAGS.g) -c $< -o $@
+%.o :
+       @echo ============================ Compiling with optimization:   $<
+       @$(CXX) $(CXXFLAGS) -c $< -o $@
+
 
 
-clean:
-       @cd basic   ; $(MAKE) clean
-       @cd grid    ; $(MAKE) clean
-       @cd fe      ; $(MAKE) clean
-       @cd numerics; $(MAKE) clean
 
 
 
-.PHONY: all lib.g.a lib.a clean
-.PHONY: libbasic.g.a libgrid.g.a libfe.g.a libnumerics.g.a
-.PHONY: libbasic.a libgrid.a libfe.a libnumerics.a
+all: ../lib/libdeal_II.g.a ../lib/libdeal_II.a
 
+../lib/libdeal_II.g.a: $(go-files)
+       @echo ============================ Updating library:   $@
+       @ar ruv $@ $(go-files)
 
+../lib/libdeal_II.a: $(o-files)
+       @echo ============================ Updating library:   $@
+       @ar ruv $@ $(o-files)
 
+
+clean:
+       @cd basic   ; rm -f *.o *.go *~
+       @cd grid    ; rm -f *.o *.go *~
+       @cd fe      ; rm -f *.o *.go *~
+       @cd numerics; rm -f *.o *.go *~
+
+
+
+.PHONY: all clean
+
+
+#Rule to generate the dependency file. This file is
+#automagically remade whenever needed, i.e. whenever
+#one of the cc-/h-files changed. Make detects whether
+#to remake this file upon inclusion at the bottom
+#of this file.
+#
+#use perl to generate rules for the .go files as well
+#as to make rules not for tria.o and the like, but
+#rather for libgrid.a(tria.o)
+#
+#Later addition: the perl script was made to compile
+#right into a library. Since this is not what we want
+#anymore, but since 1) I am too lazy to change the
+#script and 2) others may use the script as it was,
+#we don't change the script but rather pipe its
+#result through another perl script to get what we
+#want.
+../lib/Makefile.dep: $(cc-files) $(h-files) Makefile ../Make.global_options
+       @echo ============================ Remaking Makefile
+       @perl ../Make_dep.pl ../lib/libgrid $(INCLUDE) $(cc-files) \
+               | perl -p -e 's!^.*\(.*/(.*)\):!../lib/$$1:!g;' \
+               > ../lib/Makefile.dep
+
+
+include ../lib/Makefile.dep
diff --git a/deal.II/deal.II/source/fe/Makefile b/deal.II/deal.II/source/fe/Makefile
deleted file mode 100644 (file)
index 963ef9b..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-# $Id$
-
-include ../../Make.global_options
-
-
-cc-files = $(wildcard *.cc)
-o-files  = $(cc-files:.cc=.o)
-go-files = $(cc-files:.cc=.go)
-h-files  = $(wildcard ../include/*/*.h)
-
-
-lib: lib.g.a lib.a
-
-lib.a: ../../lib/libfe.a($(o-files))
-
-lib.g.a: ../../lib/libfe.g.a($(go-files))
-
-clean:
-       rm -f *.o *.go *~ Makefile.dep
-
-
-
-.PHONY: lib lib.a lib.g.a clean
-
-
-#Rule to generate the dependency file. This file is
-#automagically remade whenever needed, i.e. whenever
-#one of the cc-/h-files changed. Make detects whether
-#to remake this file upon inclusion at the bottom
-#of this file.
-#
-#use perl to generate rules for the .go files as well
-#as to make rules not for tria.o and the like, but
-#rather for libfe.a(tria.o)
-Makefile.dep: $(cc-files) $(h-files)
-       @echo ============================ Remaking Makefile
-       @perl ../../Make_dep.pl ../../lib/libfe $(INCLUDE) $(cc-files) \
-               > Makefile.dep
-
-
-include Makefile.dep
diff --git a/deal.II/deal.II/source/grid/Makefile b/deal.II/deal.II/source/grid/Makefile
deleted file mode 100644 (file)
index 6ca726f..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-# $Id$
-
-include ../../Make.global_options
-
-
-cc-files = $(wildcard *.cc)
-o-files  = $(cc-files:.cc=.o)
-go-files = $(cc-files:.cc=.go)
-h-files  = $(wildcard ../include/*/*.h)
-
-
-lib: lib.g.a lib.a
-
-lib.a: ../../lib/libgrid.a($(o-files))
-
-lib.g.a: ../../lib/libgrid.g.a($(go-files))
-
-clean:
-       rm -f *.o *.go *~ Makefile.dep
-
-
-
-.PHONY: lib lib.a lib.g.a clean
-
-
-#Rule to generate the dependency file. This file is
-#automagically remade whenever needed, i.e. whenever
-#one of the cc-/h-files changed. Make detects whether
-#to remake this file upon inclusion at the bottom
-#of this file.
-#
-#use perl to generate rules for the .go files as well
-#as to make rules not for tria.o and the like, but
-#rather for libgrid.a(tria.o)
-Makefile.dep: $(cc-files) $(h-files)
-       @echo ============================ Remaking Makefile
-       @perl ../../Make_dep.pl ../../lib/libgrid $(INCLUDE) $(cc-files) \
-               > Makefile.dep
-
-
-include Makefile.dep
diff --git a/deal.II/deal.II/source/numerics/Makefile b/deal.II/deal.II/source/numerics/Makefile
deleted file mode 100644 (file)
index f39250f..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-# $Id$
-
-include ../../Make.global_options
-
-
-cc-files = $(wildcard *.cc)
-o-files  = $(cc-files:.cc=.o)
-go-files = $(cc-files:.cc=.go)
-h-files  = $(wildcard ../include/*/*.h)
-
-
-lib: lib.g.a lib.a
-
-lib.a: ../../lib/libnumerics.a($(o-files))
-
-lib.g.a: ../../lib/libnumerics.g.a($(go-files))
-
-clean:
-       rm -f *.o *.go *~ Makefile.dep
-
-
-
-.PHONY: lib lib.a lib.g.a clean
-
-
-#Rule to generate the dependency file. This file is
-#automagically remade whenever needed, i.e. whenever
-#one of the cc-/h-files changed. Make detects whether
-#to remake this file upon inclusion at the bottom
-#of this file.
-#
-#use perl to generate rules for the .go files as well
-#as to make rules not for tria.o and the like, but
-#rather for libnumerics.a(tria.o)
-Makefile.dep: $(cc-files) $(h-files)
-       @echo ============================ Remaking Makefile
-       @perl ../../Make_dep.pl ../../lib/libnumerics $(INCLUDE) $(cc-files) \
-               > Makefile.dep
-
-
-include Makefile.dep
index 243fe63c1c91d8c9799ee093c2be4b43e38016df..7f36e65100eb5b1784e063f8e05ea753e8222014 100644 (file)
@@ -47,8 +47,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not
index ff771ea390df1b9d90a3354a7ac699ba05037719..68cdbcd2f7db48ad2ed07b9658245c7527e01589 100644 (file)
@@ -15,7 +15,7 @@ debug-mode = on
 
 # If you want your program to be linked with extra object or library
 # files, specify them here:
-user-libs = ../../lib/libbasic.g.a ../../lib/libgrid.g.a ../../../lac/lib/liblac.g.a ../../lib/libfe.g.a
+user-libs =
 
 # To run the program, use "make run"; to give parameters to the program,
 # give the parameters to the following variable:
@@ -47,8 +47,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not
index c616cebd4dd3ba43c642fdfaae5d29a0d6ec89a9..1bde6b725fdeb9919a3aba334610c06aae63bb97 100644 (file)
@@ -52,8 +52,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not
index 714fc3b6b659ed1b1a111b43ad912858e2adc42f..bb293fbe40b7ee1c04908d8d6c289ab36ff0eecf 100644 (file)
@@ -15,7 +15,7 @@ debug-mode = on
 
 # If you want your program to be linked with extra object or library
 # files, specify them here:
-user-libs = ../../lib/libbasic.g.a ../../lib/libgrid.g.a ../../../lac/lib/liblac.g.a ../../lib/libfe.g.a
+user-libs =
 
 # To run the program, use "make run"; to give parameters to the program,
 # give the parameters to the following variable:
@@ -47,8 +47,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not
index 63cf522641af966878fcee762c2446d72f25b089..bb1be16d9064ce6750d5f77dc6cfb3eeedaeca19 100644 (file)
@@ -15,7 +15,7 @@ debug-mode = off
 
 # If you want your program to be linked with extra object or library
 # files, specify them here:
-user-libs = ../../lib/libfe.g.a
+user-libs =
 
 # To run the program, use "make run"; to give parameters to the program,
 # give the parameters to the following variable:
@@ -47,8 +47,8 @@ h-files     = $(wildcard *.h)
 lib-h-files = $(wildcard ../../include/*/*.h)
 
 # list of libraries needed to link with
-libs     = ./Obj.a   $(wildcard ../../lib/lib*.a)   ../../../lac/lib/liblac.a
-libs.g   = ./Obj.g.a $(wildcard ../../lib/lib*.g.a) ../../../lac/lib/liblac.g.a
+libs     = ./Obj.a   ../../lib/libdeal_II.a   ../../../lac/lib/liblac.a
+libs.g   = ./Obj.g.a ../../lib/libdeal_II.g.a ../../../lac/lib/liblac.g.a
 
 
 # check whether we use debug mode or not

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.