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
# 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:
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
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
# 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:
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
# 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:
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
# $Id$
-# Global options for all compilations
+# Global options for all compilations (compilations in /source now
+# use other options!)
deal_II_dimension=2
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:
examples:
cd examples ; make
+lib-clean:
+ rm -f *~ include/*~ include/*/*~ lib/lib* lib/*o lib/st*
+
doc-clean:
cd doc ; make 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
# $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
+++ /dev/null
-# $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
+++ /dev/null
-# $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
+++ /dev/null
-# $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
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
# 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:
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
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
# 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:
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
# 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:
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