Makefile_var 1.35 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# this is <Makefile_var>
# ----------------------------------------------------------------------------
# 
# Copyright (c) 2015 by Thomas Forbriger (BFO Schiltach) 
# 
# set variables expected by vendor Makefiles
# 
# REVISIONS and CHANGES 
#    02/11/2015   V1.0   Thomas Forbriger
# 
# ============================================================================
#
# This file is included (via make include statement) by Makefiles in
# aff, fourier, stfinv, and libcseife
#
# Its purpose is to set make variables which are expected by vendor Makefiles.
#
# The current file itself expects a variable CONTRIBDIR, which defines the
# directory where Makefile_var is located.
#
# ============================================================================
Tilman Steinweg's avatar
Tilman Steinweg committed
22

23 24 25
# define make functions to test variable settings
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
Tilman Steinweg's avatar
Tilman Steinweg committed
26

27 28 29 30 31 32 33 34 35
# check for required variables
$(call CHECKVARS,CONTRIBDIR)

# ----------------------------------------------------------------------------
# set values required by vendor Makefiles
LOCINCLUDEDIR=$(CONTRIBDIR)/header

LOCLIBDIR=$(CONTRIBDIR)/bin
LOCBINDIR=$(CONTRIBDIR)/bin
Tilman Steinweg's avatar
Tilman Steinweg committed
36

37
TF_WWWBASEDIR=$(HOME)/public_html/txt/cxx
Tilman Steinweg's avatar
Tilman Steinweg committed
38 39 40

TF_BROWSER=firefox

41 42
# set Fortran compiler if not yet set in environment
ifndef FC
Tilman Steinweg's avatar
Tilman Steinweg committed
43
FC=/usr/bin/g77-3.3
44
endif
45 46

# ----- END OF Makefile_var -----