Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Sun, Nov 17, 08:27

Makefile

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

Event Timeline