summaryrefslogtreecommitdiff
path: root/OASIS/C/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'OASIS/C/Makefile')
-rw-r--r--OASIS/C/Makefile35
1 files changed, 0 insertions, 35 deletions
diff --git a/OASIS/C/Makefile b/OASIS/C/Makefile
deleted file mode 100644
index 03022fd..0000000
--- a/OASIS/C/Makefile
+++ /dev/null
@@ -1,35 +0,0 @@
-CC = gcc
-CFLAGS = -g -Wall -rdynamic -ggdb -O3 -fno-omit-frame-pointer -fopenmp -I/usr/include/gnu
-INC_DIR = inc
-SRC_DIR = src
-OBJ_DIR = obj
-TARGET = model
-SRCS = $(wildcard $(SRC_DIR)/*.c)
-OBJS = $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(SRCS))
-DEPS = $(wildcard $(INC_DIR)/*.h)
-
-all: ulimit $(TARGET)
-
-ulimit:
- ulimit -c unlimited
-
-$(TARGET): $(OBJS)
- $(CC) $(CFLAGS) -o $@ $^ -lm -lopenblas
-
-$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(DEPS)
- mkdir -p $(OBJ_DIR)
- $(CC) $(CFLAGS) -c -o $@ $< -I$(INC_DIR)
-
-run: $(TARGET)
- ./$(TARGET)
-
-debug: ulimit $(TARGET)
- gdb -c /tmp/core $(TARGET)
-
-valgrind: $(TARGET)
- valgrind --leak-check=full --track-origins=yes ./$(TARGET)
-
-clean:
- rm -rf $(OBJ_DIR)/*.o $(TARGET) core*
-
-.PHONY: all ulimit run debug valgrind clean