Changeset 9757 for issm/trunk/src/ad/Makefile.am
- Timestamp:
- 09/10/11 09:10:51 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/ad/Makefile.am
r9727 r9757 6 6 #Compilation can still be blocked if user has not activated --with-adic compilation 7 7 8 #Library declaration {{{1 9 8 10 if NOPARALLEL 9 11 lib_LIBRARIES = 10 12 else 13 lib_LIBRARIES = libpISSM.a libOverload.a 14 endif 15 11 16 if AD 12 lib_LIBRARIES = libpISSM.a libAD.a libOverload.a 13 else 14 lib_LIBRARIES = 15 endif 16 endif 17 18 #Overload library, to overload any non-standard symbols. 17 lib_LIBRARIES += libAD.a 18 endif 19 20 if DAKOTA 21 lib_LIBRARIES += libDAKOTA.a 22 endif 23 24 #}}} 25 #Overload library, to overload any non-standard symbols. {{{1 19 26 libOverload_a_SOURCES = ./shared/String/stricmp.c 20 27 libOverload_a_CFLAGS = -fPIC -D_PARALLEL_ -D_C_ $(COPTFLAGS) 21 22 #AD library, for automatic differentiation 23 if AD 24 #libAD_a_SOURCES = ./mini1.ad.c 25 libAD_a_SOURCES = 26 else 27 libAD_a_SOURCES = 28 endif 29 libAD_a_CFLAGS = -fPIC -D_PARALLEL_ -D_C_ $(COPTFLAGS) 30 28 #}}} 31 29 #ISSM library {{{1 32 30 libpISSM_a_SOURCES = ./include/macros.h\ 33 31 ./include/typedefs.h\ 34 32 ./include/types.h\ 35 ./include/globals.h\36 33 ./include/include.h\ 37 34 ./objects/objects.h\ … … 202 199 ./shared/Alloc/alloc.h\ 203 200 ./shared/Alloc/alloc.cpp\ 204 ./shared/Matlab/matlabshared.h\205 ./shared/Matlab/PrintfFunction.cpp\206 ./shared/Matlab/ModuleBoot.cpp\207 ./shared/Matlab/mxGetAssignedField.cpp\208 ./shared/Matlab/mxGetField.cpp\209 ./shared/Matlab/CheckNumMatlabArguments.cpp\210 201 ./shared/Matrix/matrix.h\ 211 202 ./shared/Matrix/MatrixUtils.cpp\ … … 238 229 ./shared/Elements/GetGlobalDofList.cpp\ 239 230 ./shared/Elements/GetNumberOfDofs.cpp\ 240 ./shared/String/DescriptorIndex.cpp\241 231 ./shared/String/sharedstring.h\ 242 232 ./toolkits/petsc\ … … 283 273 ./io/Disk/pfopen.cpp\ 284 274 ./io/Disk/pfclose.cpp\ 285 ./io/Matlab/matlabio.h\ 286 ./io/Matlab/WriteMatlabData.cpp\ 287 ./io/Matlab/FetchMatlabData.cpp\ 288 ./io/Matlab/OptionParse.cpp\ 275 ./io/PrintfFunction.cpp\ 289 276 ./EnumDefinitions/EnumDefinitions.h\ 290 277 ./EnumDefinitions/EnumToModelField.cpp\ … … 455 442 ./modules/HoleFillerx/HoleFillerx.cpp\ 456 443 ./modules/HoleFillerx/HoleFillerx.h\ 457 ./modules/AverageFilterx/AverageFilterx.cpp\458 ./modules/AverageFilterx/AverageFilterx.h\459 ./modules/AverageOntoPartitionx/AverageOntoPartitionx.cpp\460 ./modules/AverageOntoPartitionx/AverageOntoPartitionx.h\461 444 ./modules/MeshPartitionx/MeshPartitionx.cpp\ 462 445 ./modules/MeshPartitionx/MeshPartitionx.h\ … … 561 544 ./solvers/solver_thermal_nonlinear.cpp 562 545 546 547 libpISSM_a_CXXFLAGS = -fPIC -D_PARALLEL_ -D_C_ $(CXXOPTFLAGS) 563 548 #}}} 564 565 libpISSM_a_CXXFLAGS = -fPIC -D_PARALLEL_ -D_C_ $(CXXOPTFLAGS) 549 #AD library, for automatic differentiation {{{1 550 if AD 551 #libAD_a_SOURCES = ./mini1.ad.c 552 libAD_a_SOURCES = 553 libAD_a_CFLAGS = -fPIC -D_PARALLEL_ -D_C_ $(COPTFLAGS) 554 555 556 #Automatic differentiation rules: 557 %.ad.c: %.c 558 adic2 -mforward $< --nary 559 endif 560 #}}} 561 #DAKOTA library {{{1 562 563 if DAKOTA 564 libDAKOTA_a_SOURCES = ./objects/DakotaPlugin.h\ 565 ./objects/DakotaPlugin.cpp\ 566 ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.h\ 567 ./modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp\ 568 ./modules/DakotaResponsesx/DakotaResponsesx.h\ 569 ./modules/DakotaResponsesx/DakotaResponsesx.cpp\ 570 ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.h\ 571 ./modules/InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.cpp\ 572 ./modules/AverageOntoPartitionx/AverageOntoPartitionx.cpp\ 573 ./modules/AverageOntoPartitionx/AverageOntoPartitionx.h\ 574 ./modules/Dakotax/Dakotax.h\ 575 ./modules/Dakotax/Dakotax.cpp\ 576 ./modules/Dakotax/DakotaMPI_Bcast.cpp\ 577 ./modules/Dakotax/DakotaFree.cpp\ 578 ./modules/Dakotax/SpawnCore.cpp\ 579 ./modules/Dakotax/SpawnCoreParallel.cpp\ 580 ./modules/Dakotax/DescriptorIndex.cpp\ 581 ./modules/AverageOntoPartitionx/AverageOntoPartitionx.cpp\ 582 ./modules/AverageOntoPartitionx/AverageOntoPartitionx.h 583 584 585 libDAKOTA_a_CXXFLAGS = -fPIC -D_PARALLEL_ -D_C_ $(CXXOPTFLAGS) 586 endif 587 588 #}}} 589 #Executable {{{1 566 590 567 591 if NOPARALLEL … … 571 595 endif 572 596 573 LDADD = ./libpISSM.a $(PETSCLIB) $(TAOLIB) $(FLIBS) $(PLAPACKLIB) $(MUMPSLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MKLLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) libOverload.a $(MULTITHREADINGLIB) $(ADICLIB) libAD.a 597 #Standard library 598 LDADD = ./libpISSM.a ./libOverload.a 599 600 if AD 601 LDADD += ./libAD.a 602 endif 603 604 if DAKOTA 605 LDADD += ./libDAKOTA.a 606 endif 607 608 #External packages 609 LDADD += $(PETSCLIB) $(TAOLIB) $(FLIBS) $(PLAPACKLIB) $(MUMPSLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MKLLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(ADICLIB) 610 574 611 575 612 issm_exe_SOURCES = solutions/issm.cpp 576 613 issm_exe_CXXFLAGS= -fPIC -D_PARALLEL_ $(CXXOPTFLAGS) $(COPTFLAGS) 577 614 578 #Automatic differentiation rules: 579 %.ad.c: %.c 580 adic2 -mforward $< --nary 615 #}}}
Note:
See TracChangeset
for help on using the changeset viewer.