ok im REALLY bad at this, time to watch some youtube tutorials... maybe ill get gud? meh...

This commit is contained in:
Tyler McGurrin 2025-06-07 03:32:18 -04:00
parent c611f0076b
commit 38da40b5f9
2 changed files with 8 additions and 2 deletions

View File

@ -1,16 +1,22 @@
FC=gfortran FC=gfortran
FFLAGS=
BUILD_DIR=build BUILD_DIR=build
SRC_DIR=src SRC_DIR=src
LIBS_DIR=libs
.phony: all main clean always .phony: all main clean always
all: always main all: always main
main: main:
$(FC) $(SRC_DIR)/main.f90 -o $(BUILD_DIR)/fcc cd $(LIBS_DIR)/f90getopt; $(FC) -c f90getopt.F90
$(FC) $(FFLAGS) $(SRC_DIR)/main.f90 -o $(BUILD_DIR)/fcc -I./$(LIBS_DIR)/f90getopt/
always: always:
mkdir -p $(BUILD_DIR) mkdir -p $(BUILD_DIR)
mkdir -p $(BUILD_DIR)/include
clean: clean:
rm -rf $(BUILD_DIR) rm -rf $(BUILD_DIR)