ok im REALLY bad at this, time to watch some youtube tutorials... maybe ill get gud? meh...
This commit is contained in:
parent
c611f0076b
commit
38da40b5f9
8
Makefile
8
Makefile
@ -1,16 +1,22 @@
|
||||
FC=gfortran
|
||||
FFLAGS=
|
||||
BUILD_DIR=build
|
||||
SRC_DIR=src
|
||||
LIBS_DIR=libs
|
||||
|
||||
.phony: all main clean always
|
||||
|
||||
all: always 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:
|
||||
mkdir -p $(BUILD_DIR)
|
||||
mkdir -p $(BUILD_DIR)/include
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD_DIR)
|
||||
Loading…
x
Reference in New Issue
Block a user