summaryrefslogtreecommitdiff
path: root/lib/make/make.thornlib
diff options
context:
space:
mode:
Diffstat (limited to 'lib/make/make.thornlib')
-rw-r--r--lib/make/make.thornlib10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/make/make.thornlib b/lib/make/make.thornlib
index cc98eefe..45fa91ac 100644
--- a/lib/make/make.thornlib
+++ b/lib/make/make.thornlib
@@ -17,9 +17,17 @@ DIVIDER = $(DIVEL)$(DIVEL)$(DIVEL)$(DIVEL)
# Include the main make definitions for this configuration
include $(CONFIG)/make.config.defn
+
+# Include the configuration make.code.def for the thorn if it is not cactus or cactusbindings
+INC_DIRS =
+ifneq ($(THORN), CactusBindings)
+ifneq ($(THORN), Cactus)
+-include $(TOP)/bindings/Configuration/$(THORN)/make.configuration.defn
+endif
+endif
# Add appropriate include lines
-INC_DIRS = $(SYS_INC_DIRS) $(SRCDIR) $(SRCDIR)/include $(CONFIG) $(TOP)/bindings/include $(CCTK_HOME)/src/include $(CCTK_HOME)/arrangements
+INC_DIRS += $(SYS_INC_DIRS) $(SRCDIR) $(SRCDIR)/include $(CONFIG) $(TOP)/bindings/include $(CCTK_HOME)/src/include $(CCTK_HOME)/arrangements
# Allow subdirectories to inherit these include directories
export INC_DIRS