Skip to content

Commit d94913e

Browse files
committed
Add Makefile
1 parent e4405e9 commit d94913e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Generate an executable with this name
2+
TARGET = tourexec
3+
4+
# Define the compiler and flags to pass to that compiler
5+
CC = gfortran
6+
CFLAGS = -fno-automatic
7+
8+
# Define the directories for source code and output binary executable
9+
SRC_DIR = src
10+
BIN_DIR = bin
11+
12+
$(BIN_DIR)/$(TARGET): $(SRC_DIR)/*.f
13+
@mkdir -p $(@D)
14+
$(CC) $(CFLAGS) -o $@ $<

0 commit comments

Comments
 (0)