/FluidMechanics/NavierStokes/1DTransient/Makefile
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 53MAKEFLAGS = --no-builtin-rules --warn-undefined-variables 54 55#---------------------------------------------------------------------------------------------------------------------------------- 56 57-finit-real=nan 58ifndef OPENCMISS_ROOT 59 OPENCMISS_ROOT := ../../../.. 60 GLOBAL_ROOT := $(CURDIR)/../../../.. 61else 62 GLOBAL_ROOT := ${OPENCMISS_ROOT}/cm 63endif 64 65#---------------------------------------------------------------------------------------------------------------------------------- 66 67EXAMPLE_PATH=FluidMechanics/NavierStokes/ 68 69EXAMPLE_NAME = 1DTransient 70 71include $(GLOBAL_ROOT)/ExampleMakefile 72 73# let's assume fluid_mechanics_IO_routines has been built in main_object, copy them over 74# redefine preliminaries 75preliminaries: $(OBJECT_DIR) $(EXE_DIR) 76 cp $(MAIN_OBJECT_DIR)/fluid_mechanics_IO_routines.o $(OBJECT_DIR) 77 cp $(MAIN_OBJECT_DIR)/fluid_mechanics_io_routines.mod $(OBJECT_DIR) 78 79info: 80 @echo "OBJECTS:" 81 @echo $(OBJECTS) 82 @echo "OBJECT_DIR:" 83 @echo $(OBJECT_DIR) 84 @echo "MAIN_OBJECT_DIR:" 85 @echo $(MAIN_OBJECT_DIR) 86 @echo "EXAMPLE_SOURCE_DIR:" 87 @echo $(EXAMPLE_SOURCE_DIR) 88 @echo "MAIN_SOURCE_DIR:" 89 @echo $(MAIN_SOURCE_DIR)