338 |
|
MakeDepend = makedepend |
339 |
|
LN_S = @LN_S@ |
340 |
|
INSTALL = @INSTALL@ |
341 |
+ |
EGREP = @EGREP@ |
342 |
|
InstallProgram = @INSTALL_PROGRAM@ |
343 |
|
InstallScript = @INSTALL_SCRIPT@ |
344 |
|
InstallData = @INSTALL_DATA@ |
644 |
|
$(Doxygen) $(DEV_ROOT)/make/Doxyfile |
645 |
|
|
646 |
|
#GUN make funtions to merge the libraries |
647 |
< |
find_objs = $(shell $(StaticArchiver) -t $(1)) |
647 |
> |
find_objs = $(shell $(StaticArchiver) -t $(1) | $(EGREP) -v "SYMDEF") |
648 |
|
extract_objs = $(shell $(StaticArchiver) -x $(1) $(call find_objs, $(1))) |
649 |
|
create_archive = $(shell $(StaticArchiver) $(StaticArchiverOptions) $(2) $(call find_objs, $(1))) |
650 |
|
remove_objs = $(shell $(Delete) $(call find_objs, $(1))) |
651 |
|
do_create = $(call extract_objs,$(1))$(call create_archive,$(1),$(2))$(call remove_objs,$(1)) |
652 |
|
do_link = $(shell $(LN_S) $(1) $(2)) |
653 |
+ |
all_objs = $(foreach thisLib,$(LibNames), $(call find_objs, $(thisLib))) |
654 |
+ |
all_parallel_objs = $(foreach thisLib,$(ParallelLibNames), $(call find_objs, $(thisLib))) |
655 |
+ |
all_lib_objs = $(patsubst %,$(TargetDir)/%,$(call all_objs)) |
656 |
+ |
all_lib_parallel_objs = $(patsubst %,$(TargetDir)/%,$(call all_parallel_objs)) |
657 |
|
|
658 |
|
$(CombinedStaticLib) : $(LibDir)/.stamp_UP |
659 |
< |
$(Print) create $@ |
660 |
< |
$(foreach thisLib,$(LibNames),$(call do_create,$(thisLib),$@)) |
659 |
> |
$(Print) creating $@ |
660 |
> |
$(StaticArchiver) $(StaticArchiverOptions) $@ $(call all_lib_objs) |
661 |
|
$(Ranlib) $(CombinedStaticLib) |
662 |
|
|
663 |
|
$(CombinedParallelStaticLib) : $(LibDir)/.stamp_MPI |
664 |
< |
$(Print) create $@ |
665 |
< |
$(foreach thisLib,$(ParallelLibNames), $(call do_create, $(thisLib), $@)) |
664 |
> |
$(Print) creating $@ |
665 |
> |
$(StaticArchiver) $(StaticArchiverOptions) $@ $(call all_lib_parallel_objs) |
666 |
|
$(Ranlib) $(CombinedParallelStaticLib) |
667 |
|
|
668 |
|
# Executable |