AdventOfFortran/2019/Makefile

20 lines
303 B
Makefile
Raw Normal View History

2023-11-27 08:09:46 +00:00
FC:=gfortran
2023-11-30 00:59:16 +00:00
FFLAGS:=-Wall -Wno-maybe-uninitialized
2023-11-27 08:09:46 +00:00
BIN:=./bin
SRC:=./src
2023-11-30 00:59:16 +00:00
BINS:=./bin/test.bin ./bin/day01.bin ./bin/day02.bin ./bin/day02b.bin
2023-11-27 08:09:46 +00:00
all: aoc19
$(SRC)/%.o: $(SRC)/%.f90
$(FC) $(FFLAGS) -c -o $@ $<
$(BIN)/%.bin: $(SRC)/%.o
$(FC) $(FFLAGS) -o $@ $<
aoc19: $(BINS)
clean:
rm -f $(BINS)