2023-12-01 06:07:13 +00:00
|
|
|
FC:=gfortran
|
2023-12-13 06:23:23 +00:00
|
|
|
FFLAGS:=-Wall -Wno-maybe-uninitialized -O2
|
2023-12-01 06:07:13 +00:00
|
|
|
BIN:=./bin
|
|
|
|
SRC:=./src
|
2023-12-15 06:40:07 +00:00
|
|
|
BINS:=./bin/day01.bin ./bin/day01b.bin ./bin/day02.bin ./bin/day03.bin ./bin/day04.bin ./bin/day05.bin ./bin/day05b.bin ./bin/day06.bin ./bin/day07.bin ./bin/day07b.bin ./bin/day08.bin ./bin/day08b.bin ./bin/day09.bin ./bin/day10.bin ./bin/day11.bin ./bin/day12.bin ./bin/day13.bin ./bin/day14.bin ./bin/day14b.bin ./bin/day15.bin
|
2023-12-01 06:07:13 +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)
|
|
|
|
|