all: lac
clean: source-clean
- rm -f *~ include/*~ include/*/*~ lib/lib*
+ rm -f *~ include/*~ include/*/*~ lib/lib* include/base/forward-declarations.h*
lac:
cd source ; make
D=../..
-include $D/deal.II/Make.global_options
-
cc-files = $(wildcard *.cc)
o-files = $(cc-files:.cc=.o)
go-files = $(cc-files:.cc=.go)
h-files = $(wildcard ../include/*/*.h)
+forward-declarations = ../include/base/forward-declarations.h
+
+include $D/deal.II/Make.global_options
+include $D/deal.II/Make.forward-declarations
+
+
%.go : %.cc Makefile
@echo ======== DEBUG =================== $<
clean:
rm -f *.o *.go *~ Makefile.dep ../lib/lib*
-# rule how to make the file containing all the forward declarations
-../include/base/forward-declarations.h: $(filter-out %forward-declarations.h,$(h-files))
- @echo ============================ Generating $@
- @perl ../../deal.II/Make_forward_declarations $(filter-out %forward-declarations.h,$(h-files)) > $@
.PHONY: lib lib.a lib.g.a clean
#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 libbasic.a(tria.o)
-../lib/Makefile.dep: $(cc-files) $(h-files)
+../lib/Makefile.dep: $(cc-files) $(filter-out $(forward-declarations),$(h-files)) Makefile
@echo ============================ Remaking Makefile
@perl ../Make_dep.pl ../lib/libbase $(INCLUDE) $(cc-files) \
> ../lib/Makefile.dep
D=../..
-include $D/deal.II/Make.global_options
-
cc-files = $(wildcard */*.cc)
h-files = $(wildcard ../include/*/*.h)
forward-declarations = ../include/basic/forward-declarations.h
+include $D/deal.II/Make.global_options
+include $D/deal.II/Make.forward-declarations
+
+
+
+
# strip subdirectories from cc file names, preprend a "../lib/[g]o"
# and change the suffix. We place the object files with or without
# debug info in different directories, since we want to use the
all: lac
clean: source-clean
- rm -f *~ include/*~ include/*/*~ lib/lib* lib/Makefile.dep
+ rm -f *~ include/*~ include/*/*~ lib/lib* lib/Makefile.dep include/lac/forward-declarations.h*
lac:
cd source ; make
go-files = $(cc-files:.cc=.go)
h-files = $(wildcard ../include/*/*.h)
+forward-declarations = ../include/lac/forward-declarations.h
+
+D=../..
+include $D/deal.II/Make.forward-declarations
+
%.go : %.cc Makefile
@echo ============================ Compiling with debugging information: $<
rm -f *.o *.go *~ Makefile.dep ../lib/lib*
-# rule how to make the file containing all the forward declarations
-../include/lac/forward-declarations.h: $(filter-out %forward-declarations.h,$(h-files))
- @echo ============================ Generating $@
- @perl ../../deal.II/Make_forward_declarations $(filter-out %forward-declarations.h,$(h-files)) > $@
-
#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 libbasic.a(tria.o)
-../lib/Makefile.dep: $(cc-files) $(h-files)
+../lib/Makefile.dep: $(cc-files) $(filter-out $(forward-declarations),$(h-files)) Makefile
@echo ============================ Remaking Makefile
@perl ../Make_dep.pl ../lib/liblac $(INCLUDE) $(cc-files) \
> ../lib/Makefile.dep