aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/make.configuration.defn4
-rw-r--r--src/make.configuration.deps13
2 files changed, 17 insertions, 0 deletions
diff --git a/src/make.configuration.defn b/src/make.configuration.defn
new file mode 100644
index 0000000..c502b3f
--- /dev/null
+++ b/src/make.configuration.defn
@@ -0,0 +1,4 @@
+# make.configuration.defn for FlexIO
+
+# add the ioinfo program to the Cactus utitlity tools
+ALL_UTILS += ioinfo
diff --git a/src/make.configuration.deps b/src/make.configuration.deps
new file mode 100644
index 0000000..83f7e43
--- /dev/null
+++ b/src/make.configuration.deps
@@ -0,0 +1,13 @@
+# make.configuration.deps for FlexIO
+# makefile rules to build FlexIO utilities
+
+$(UTIL_DIR)$(DIRSEP)ioinfo: $(BUILD_DIR)$(DIRSEP)FlexIO$(DIRSEP)ioinfo.o $(CCTK_LIBDIR)/$(LIBNAME_PREFIX)FlexIO$(LIBNAME_SUFFIX)
+ @echo Creating ioinfo in $(UTIL_DIR) from $<
+ if [ ! -d $(UTIL_DIR) ]; then $(MKDIR) $(MKDIRFLAGS) $(UTIL_DIR) ; fi
+ $(LD) $(CREATEEXE)$(OPTIONSEP)$@ $(DEBUG_LD) $(LDFLAGS) $(EXTRAFLAGS) -L$(CCTK_LIBDIR) $< -lFlexIO
+
+$(BUILD_DIR)$(DIRSEP)FlexIO$(DIRSEP)ioinfo.o: $(PACKAGE_DIR)$(DIRSEP)CactusExternal$(DIRSEP)FlexIO$(DIRSEP)src$(DIRSEP)ioinfo.cc
+ @echo Compiling $<
+ if [ ! -d $(BUILD_DIR)$(DIRSEP)FlexIO ]; then $(MKDIR) $(MKDIRFLAGS) $(BUILD_DIR)$(DIRSEP)FlexIO ; fi
+ cd $(BUILD_DIR)$(DIRSEP)FlexIO
+ $(CXX) $< $(CXXFLAGS) -I$(PACKAGE_DIR)$(DIRSEP)CactusExternal$(DIRSEP)FlexIO$(DIRSEP)src $(CCOMPILEONLY)$(OPTIONSEP)$@