Working makefile

main
Petra 2023-11-27 21:09:46 +13:00
parent a5fb9b64bc
commit a22c78c7cb
3 changed files with 23 additions and 1 deletions

19
2019/Makefile 100644
View File

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

View File

@ -0,0 +1,3 @@
program test
print *, 'Hellord!'
end program test

View File

@ -3,7 +3,7 @@ Files for Advent of Code 2023, and related stuff. Hoping to work with Fortran as
Structure:
* 2019
* Makefile
* src/
* obj/
* bin/