From e5b4177315870ce1cb70127f012f31a2551dd561 Mon Sep 17 00:00:00 2001 From: minhqdao Date: Tue, 27 Feb 2024 00:01:06 +0300 Subject: [PATCH] Add conditional for nvfortran --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d176287..a2e1d89 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,11 @@ all: $(STATIC) $(STATIC): $(SRC) mkdir -p $(MOD-DIR) $(OBJ-DIR) - $(FC) $(FFLAGS) -c $(SRC) -J$(MOD-DIR) -o $(OBJ-DIR)/$(FILENAME).o + ifeq ($(FC),nvfortran) + $(FC) $(FFLAGS) -c $(SRC) -module $(MOD-DIR) -o $(OBJ-DIR)/$(FILENAME).o + else + $(FC) $(FFLAGS) -c $(SRC) -J$(MOD-DIR) -o $(OBJ-DIR)/$(FILENAME).o + endif $(AR) $(ARFLAGS) $(STATIC) $(OBJ-DIR)/$(FILENAME).o test: $(TEST-SRC) $(STATIC)