Skip to content
Snippets Groups Projects
Commit 5de9f066 authored by Mathieu Peybernes's avatar Mathieu Peybernes
Browse files

update Makefile

parent 577b6de6
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ FFLAGS= # Fortran flags
all: $(EXEC)
my_exec: saxpy.o main.o
$(FC) -o my_exec saxpy.o main.o
$(FC) -o $(EXEC) saxpy.o main.o
saxpy.o: saxpy.F90
$(FC) -c saxpy.F90
......@@ -14,7 +14,7 @@ main.o: main.F90
$(FC) -c main.F90
clean:
rm -f *.o
rm -f *.o *~ *.mod
mrproper: clean
rm -f $(EXEC)
FC=gfortran # set Fortran compiler
EXEC=my_exec # set executable name
FFLAGS= # Fortran flags
LDFLAGS= # linking flags
all: $(EXEC)
my_exec: saxpy.o main.o
$(FC) -o $@ $^ $(LDFLAGS)
%.o: %.F90
$(FC) -c $< $(FFLAGS)
clean:
rm -f *.o *~ *.mod
mrproper: clean
rm -f $(EXEC)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment