|
FC:=gfortran
|
|
FFLAGS:=-Wall -Wno-maybe-uninitialized
|
|
BIN:=./bin
|
|
SRC:=./src
|
|
BINS:=./bin/day01.bin ./bin/day01b.bin
|
|
|
|
all: aoc19
|
|
|
|
$(SRC)/%.o: $(SRC)/%.f90
|
|
$(FC) $(FFLAGS) -c -o $@ $<
|
|
|
|
$(BIN)/%.bin: $(SRC)/%.o
|
|
$(FC) $(FFLAGS) -o $@ $<
|
|
|
|
aoc19: $(BINS)
|
|
|
|
clean:
|
|
rm -f $(BINS)
|
|
|