84 |
|
@MPI_LIB@ \ |
85 |
|
@MPI_F90_LIB@ |
86 |
|
|
87 |
– |
LinkOptions = \ |
88 |
– |
@F90LIBS@ |
89 |
– |
|
87 |
|
OopseHome = @OOPSE_HOME@ |
88 |
|
ForceParamDir = @OOPSE_HOME@/share/forceFields/ |
89 |
|
SampleSimDir = @OOPSE_HOME@/share/samples/ |
106 |
|
BinDir = $(DEV_ROOT)/bin |
107 |
|
DocsDir = $(DEV_ROOT)/docs |
108 |
|
CurrentDir = $(CURDIR) |
109 |
+ |
RPath = $(shell cd $(DEV_ROOT); pwd)/lib:$(OopseHome)/lib |
110 |
+ |
ParallelRPath = $(shell cd $(DEV_ROOT); pwd)/MPIlib:$(OopseHome)/MPIlib |
111 |
+ |
LinkOptions = \ |
112 |
+ |
@F90LIBS@ \ |
113 |
+ |
-Wl,-R$(RPath) |
114 |
|
|
115 |
+ |
ParallelLinkOptions = \ |
116 |
+ |
@F90LIBS@ \ |
117 |
+ |
-Wl,-R$(ParallelRPath) |
118 |
+ |
|
119 |
|
ifdef Source |
120 |
|
#get the relative path of current package to source directory |
121 |
|
# /home/maul/gezelter/src/code/src/UseTheForce/Darkside --> UseTheForce/Darkside |
488 |
|
|
489 |
|
# Executable |
490 |
|
$(Executable) : $(ObjectFiles) |
491 |
< |
$(Linker) $(ObjectFiles) $(LinkOptions) $(LibDirs) $(LibList) $(LibList) $(LibList) -o $@ |
491 |
> |
$(Linker) $(ObjectFiles) $(LinkOptions) $(LibDirs) $(LibList) -o $@ |
492 |
|
|
493 |
|
$(ParallelExecutable) : $(ParallelObjectFiles) |
494 |
< |
$(Linker) $(ParallelObjectFiles) $(LinkOptions) $(ParallelLibDirs) $(ParallelLibList) $(ParallelLibList) $(ParallelLibList) -o $@ |
494 |
> |
$(Linker) $(ParallelObjectFiles) $(ParallelLinkOptions) $(ParallelLibDirs) $(LibList) -o $@ |
495 |
|
|
496 |
|
# Anything else is just copied from source to target |
497 |
|
$(PackageTargetDir)/% : $(PackageSourceDir)/% |
514 |
|
$(RmiStubFiles) \ |
515 |
|
$(RmiSkeletonFiles) \ |
516 |
|
$(OtherTargetFiles) \ |
517 |
+ |
$(SharedLibrary) \ |
518 |
|
$(StaticLibrary) \ |
519 |
+ |
$(ParallelSharedLibrary) \ |
520 |
|
$(ParallelStaticLibrary) \ |
521 |
|
$(JarFile) \ |
522 |
|
$(Executable) \ |
530 |
|
$(RmiStubFiles) \ |
531 |
|
$(RmiSkeletonFiles) \ |
532 |
|
$(OtherTargetFiles) \ |
533 |
+ |
$(SharedLibrary) \ |
534 |
|
$(StaticLibrary) \ |
535 |
|
$(JarFile) \ |
536 |
|
$(Executable) |