52 |
|
selection \ |
53 |
|
restraints \ |
54 |
|
lattice \ |
55 |
< |
openbabel |
56 |
< |
|
55 |
> |
openbabel\ |
56 |
> |
antlr\ |
57 |
> |
mdParser |
58 |
|
#packages containing applications |
59 |
|
Applications = \ |
60 |
|
applications/oopse \ |
63 |
|
applications/dynamicProps \ |
64 |
|
applications/simpleBuilder\ |
65 |
|
applications/nanoRodBuilder \ |
66 |
< |
applications/mdinConverter |
66 |
> |
applications/atom2mdin |
67 |
|
|
68 |
|
Samples = \ |
69 |
|
samples/argon \ |
336 |
|
CppCompiler = @CXX@ |
337 |
|
Linker = @CXX@ |
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@ |
422 |
|
InstallFiles = $(Executable) |
423 |
|
endif |
424 |
|
InstallCommand = $(InstallProgram) |
425 |
+ |
ifneq "$(words $(LinkTargets))" "0" |
426 |
+ |
MyLinkSource = $(patsubst %, $(MyInstallDir)/%,$(Main)) |
427 |
+ |
MyLinkTargets = $(patsubst %, $(MyInstallDir)/%,$(LinkTargets)) |
428 |
+ |
endif |
429 |
|
endif |
430 |
|
|
431 |
|
ifneq "$(words $(ForcefieldFiles))" "0" |
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 |
813 |
|
install : $(InstallListLoop) |
814 |
|
$(Print) Done Install |
815 |
|
|
816 |
< |
_installall : _buildall _installdata |
816 |
> |
_installall : _buildall _installdata _installlinks |
817 |
|
|
818 |
|
$(MyInstallDir) : |
819 |
|
$(MkDir) $@ |
824 |
|
$(InstallCommand) $(InstallFiles) $(MyInstallDir) |
825 |
|
endif |
826 |
|
|
827 |
+ |
_installlinks : $(MyInstallDir) |
828 |
+ |
ifneq "$(words $(MyLinkTargets))" "0" |
829 |
+ |
@cd $(MyInstallDir) |
830 |
+ |
$(foreach thisLink,$(MyLinkTargets),$(call do_link,$(MyLinkSource),$(thisLink))) |
831 |
+ |
endif |
832 |
+ |
|
833 |
|
# make statistics |
834 |
|
_statisticsall : |
835 |
|
@$(Print) $(patsubst %,$(CurrentDir)/%,$(SourceFiles)) >> $(DEV_ROOT)/files.tmp |