2023-11-27 08:09:46 +00:00
|
|
|
FC:=gfortran
|
|
|
|
FFLAGS:=-Wall
|
|
|
|
BIN:=./bin
|
|
|
|
SRC:=./src
|
2023-11-29 08:55:55 +00:00
|
|
|
BINS:=./bin/test.bin ./bin/day1.bin ./bin/day2.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)
|
|
|
|
|