/FluidMechanics/NavierStokes/1DTransient/Makefile

http://github.com/xyan075/examples · Makefile · 89 lines · 25 code · 9 blank · 55 comment · 0 complexity · 1d263eb3d263f364d29867f4303503c3 MD5 · raw file

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