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
|
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)
|
||||||
Loading…
x
Reference in New Issue
Block a user