AdventOfFortran/2019/Makefile

20 lines
259 B
Makefile

FC:=gfortran
FFLAGS:=-Wall
BIN:=./bin
SRC:=./src
BINS:=./bin/test.bin ./bin/day1.bin ./bin/day2.bin
all: aoc19
$(SRC)/%.o: $(SRC)/%.f90
$(FC) $(FFLAGS) -c -o $@ $<
$(BIN)/%.bin: $(SRC)/%.o
$(FC) $(FFLAGS) -o $@ $<
aoc19: $(BINS)
clean:
rm -f $(BINS)