Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Thu, Dec 19, 19:59

Makefile

FC = gfortran
CC = gcc
LD = $(FC)
OPTIM = -O3 -ftree-vectorize -fopenmp
FCFLAGS = $(OPTIM)
LDFLAGS = $(FCFLAGS) -lm
EXEC_SEQ = pi_seq
objects = pi_seq.o second.o
%.o: %.f90
$(FC) -c $(FCFLAGS) $<
%.o: %.c
$(CC) -c $(CCFLAGS) $<
default : all
all: objs pi_seq
objs: $(objects)
pi_seq:
$(LD) $(LDFLAGS) pi_seq.o second.o -o $(EXEC_SEQ)
clean:
-rm $(objects) $(EXEC_SEQ)

Event Timeline