# $Revision: 1.2 $
# Makefile for cntnm
# From cntnm/build directory, type: gmake -f make_cntnm <TARGET>

# Include file containing user input. Directory is referenced to 
# parent directory and common build rules
include makefile.common

###############################
# Set variables/
###############################
#Set version name.  Used in the default OUTPUT and CDOTO variables.  If you
# change those two variables from what is provided here, no need to set this variable.

PRODUCT = cntnm
VERSION = v2.5.2

# Set name of CNTNM executable.  
OUTPUT = ${PRODUCT}_$(VERSION)_$(PLTFRM)_$(FC_TYPE)_$(P_TYPE)

# Set directory for object files.  
CDOTO = ${PRODUCT}_$(VERSION)_$(PLTFRM)_$(FC_TYPE)_$(P_TYPE).obj

# Set directory containing source files, relative to main directory from which
# you are executing the makefile
CPATH = ../src

# Files contained in src directory.  If additional .f files are added,
# add to this list. 
SRCS = cntnm_progr.f

# Define makefile name
MAKEFILE=make_$(PRODUCT)

# Object file names
OBPATH = ${SRCS:.f=.o}

build : $(OBPATH)      	
	$(FC) $(FCFLAG) -o ../$(OUTPUT) ${CDOTO}/*.o

## Define dependancies

$(OBPATH):${CPATH}/contnm.f
