summaryrefslogtreecommitdiff
path: root/lib/make/make.configuration
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-05-06 14:09:47 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-05-06 14:09:47 +0000
commit28989ff924ecec08722cf52a6cd66ff0428a3aa6 (patch)
treee091a0e9bb656e4af3c3f5e7561b4e4bcf76a994 /lib/make/make.configuration
parentac52b51d99043c7bd5cd26c5e3ee4341385efb1a (diff)
Print a warning message if the user specified a configuration option at
compile time. This closes PR Compiler/1669: "Should deal with inappropriate make command-line options". git-svn-id: http://svn.cactuscode.org/flesh/trunk@3695 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/make.configuration')
-rw-r--r--lib/make/make.configuration22
1 files changed, 18 insertions, 4 deletions
diff --git a/lib/make/make.configuration b/lib/make/make.configuration
index f1f6832f..6780aba2 100644
--- a/lib/make/make.configuration
+++ b/lib/make/make.configuration
@@ -18,13 +18,27 @@ FLESH_DIR = $(CCTK_HOME)/src
# Some empty strings yye00 fills from configuration.ccl files
#ConfigInc =
-#ConfigLibdir =
-#ConfigLib =
+#ConfigLibdir =
+#ConfigLib =
# Scratch build area - need this to make sure F90 module files end up all
# in one directory.
export SCRATCH_BUILD=$(TOP)/scratch
+
+# Check if the user specified options which are only used at configure time
+# We only check some obvious configuration options here.
+ifneq ($(strip $(DEBUG)), )
+ $(warning "You specified 'DEBUG=$(DEBUG)'. This option is evaluated only at configuration time and will be ignored at compile time.")
+endif
+ifneq ($(strip $(OPTIMISE)), )
+ $(warning "You specified 'OPTIMISE=$(OPTIMISE)'. This option is evaluated only at configuration time and will be ignored at compile time.")
+endif
+ifneq ($(strip $(OPTIMIZE)), )
+ $(warning "You specified 'OPTIMIZE=$(OPTIMIZE)'. This option is evaluated only at configuration time and will be ignored at compile time.")
+endif
+
+
DATESTAMP = $(CCTK_HOME)/src/datestamp.c
export MAKE_DIR = $(CCTK_HOME)/lib/make
@@ -83,7 +97,7 @@ endif
# pretty confusing during a make clean !
ifeq ($(strip $(MAKECMDGOALS)),)
--include $(CONFIG)/make.thornlist
+-include $(CONFIG)/make.thornlist
endif
ifeq ($(strip $(MAKECMDGOALS)), utils)
@@ -96,7 +110,7 @@ endif
# Allow each thorn to include some global definitions
ifneq ($(strip $(THORNS)),)
--include $(THORNS:%=$(PACKAGE_DIR)/%/src/make.configuration.defn)
+-include $(THORNS:%=$(PACKAGE_DIR)/%/src/make.configuration.defn)
endif
ifeq ($(strip $(UTILS)),)