diff options
author | Eric Dao <eric@erickhangdao.com> | 2023-05-12 14:09:07 -0400 |
---|---|---|
committer | Eric Dao <eric@erickhangdao.com> | 2023-05-12 14:09:07 -0400 |
commit | 191e4bd8beae134295d481773823142d2fdc6a98 (patch) | |
tree | aaca4e7f8e229f9bd551d9bb1583b8ecd7a59d4a /OASIS/C/Makefile | |
parent | 186daed7e179241377c117e9d208ccd301d4d712 (diff) | |
download | ura-master.tar.gz ura-master.tar.bz2 ura-master.zip |
Diffstat (limited to 'OASIS/C/Makefile')
-rw-r--r-- | OASIS/C/Makefile | 35 |
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 |