PageRenderTime 42ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/MultiPhysics/Poroelasticity/FiniteElasticityDarcy/SameRegionSameMesh/Makefile

http://github.com/xyan075/examples
Makefile | 87 lines | 24 code | 9 blank | 54 comment | 0 complexity | 35b8a1281e09d58c18f477cf57ecbb06 MD5 | raw file
  1. # -*- makefile -*-
  2. #
  3. # For use with GNU make.
  4. #
  5. #
  6. #----------------------------------------------------------------------------------------------------------------------------------
  7. # Makefile for compiling openCMISS examples
  8. #
  9. # Original by Chris Bradley adapted from the CMISS Makefile by Karl Tomlinson
  10. # Changes:
  11. #
  12. #----------------------------------------------------------------------------------------------------------------------------------
  13. #
  14. # LICENSE
  15. #
  16. # Version: MPL 1.1/GPL 2.0/LGPL 2.1
  17. #
  18. # The contents of this file are subject to the Mozilla Public License
  19. # Version 1.1 (the "License"); you may not use this file except in
  20. # compliance with the License. You may obtain a copy of the License at
  21. # http://www.mozilla.org/MPL/
  22. #
  23. # Software distributed under the License is distributed on an "AS IS"
  24. # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  25. # License for the specific language governing rights and limitations
  26. # under the License.
  27. #
  28. # The Original Code is OpenCMISS
  29. #
  30. # The Initial Developer of the Original Code is University of Auckland,
  31. # Auckland, New Zealand and University of Oxford, Oxford, United
  32. # Kingdom. Portions created by the University of Auckland and University
  33. # of Oxford are Copyright (C) 2007 by the University of Auckland and
  34. # the University of Oxford. All Rights Reserved.
  35. #
  36. # Contributor(s):
  37. #
  38. # Alternatively, the contents of this file may be used under the terms of
  39. # either the GNU General Public License Version 2 or later (the "GPL"), or
  40. # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  41. # in which case the provisions of the GPL or the LGPL are applicable instead
  42. # of those above. If you wish to allow use of your version of this file only
  43. # under the terms of either the GPL or the LGPL, and not to allow others to
  44. # use your version of this file under the terms of the MPL, indicate your
  45. # decision by deleting the provisions above and replace them with the notice
  46. # and other provisions required by the GPL or the LGPL. If you do not delete
  47. # the provisions above, a recipient may use your version of this file under
  48. # the terms of any one of the MPL, the GPL or the LGPL.
  49. #
  50. #----------------------------------------------------------------------------------------------------------------------------------
  51. MAKEFLAGS = --no-builtin-rules --warn-undefined-variables
  52. #----------------------------------------------------------------------------------------------------------------------------------
  53. ifndef OPENCMISS_ROOT
  54. OPENCMISS_ROOT := ../../../..
  55. GLOBAL_ROOT := $(CURDIR)/../../../..
  56. else
  57. GLOBAL_ROOT := ${OPENCMISS_ROOT}/cm
  58. endif
  59. #----------------------------------------------------------------------------------------------------------------------------------
  60. EXAMPLE_PATH=MultiPhysics/Poroelasticity/FiniteElasticityDarcy/
  61. EXAMPLE_NAME = SameRegionSameMesh
  62. include $(GLOBAL_ROOT)/ExampleMakefile
  63. # let's assume fluid_mechanics_IO_routines has been built in main_object, copy them over
  64. # redefine preliminaries
  65. preliminaries: $(OBJECT_DIR) $(EXE_DIR)
  66. cp $(MAIN_OBJECT_DIR)/fluid_mechanics_IO_routines.o $(OBJECT_DIR)
  67. cp $(MAIN_OBJECT_DIR)/fluid_mechanics_io_routines.mod $(OBJECT_DIR)
  68. info:
  69. @echo "OBJECTS:"
  70. @echo $(OBJECTS)
  71. @echo "OBJECT_DIR:"
  72. @echo $(OBJECT_DIR)
  73. @echo "MAIN_OBJECT_DIR:"
  74. @echo $(MAIN_OBJECT_DIR)
  75. @echo "EXAMPLE_SOURCE_DIR:"
  76. @echo $(EXAMPLE_SOURCE_DIR)
  77. @echo "MAIN_SOURCE_DIR:"
  78. @echo $(MAIN_SOURCE_DIR)