
# This is the Makefile containing configuration options for all Make projects.
#

#
# Get the operating system
#
OPERATING_SYSTEM = $(shell uname)

#
# Get the CPU type (architecture)
#
ARCH = $(shell uname -m)

#
# Commands specific for the operating system
#
ifeq ($(OPERATING_SYSTEM),windows32)
	include Makefile-win32-NT
endif
ifeq ($(OPERATING_SYSTEM),Linux)
	include Makefile-linux
endif
#
# Debug or release ? 
# Warning: this option does have an impact on the compiler options
#
VERSION = debug
#VERSION = release
#VERSION = profiled

ifeq ($(VERSION),debug)
	FOPTS_BASE += -g -D_DEBUG  
	LOPTS_BASE += -g
endif
ifeq ($(VERSION),release)
	FOPTS_BASE +=   -O2
	LOPTS_BASE = 
endif
ifeq ($(VERSION),optimized)
	FOPTS_BASE += -O3 -mtune=pentium4   
	LOPTS_BASE += -O3
endif
ifeq ($(VERSION),profiled)
	FOPTS_BASE += -pg
	LOPTS_BASE += -pg
endif

#
# Options specific to the fortran compiler
#
include Makefile-g95
#include Makefile-gfortran

