Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Thu, Dec 19, 20:07

Makefile

FC = mpif90 -ggdb
CC = mpicc -ggdb
LD = $(FC)
OPTIM = -O3 -ftree-vectorize
FCFLAGS = $(OPTIM) -fopenmp -Wall -Wtabs
LDFLAGS = $(FCFLAGS) -lm
objects = pi_gather.o pi_hybrid.o pi_io_at.o pi_p2p_async_ring.o pi_p2p_derived_type.o pi_p2p_permanent_ring.o pi_p2p_ring.o pi_p2p_sendrecv_ring.o pi_reduce.o
%.o: %.f90
$(FC) -c $(FCFLAGS) $<
%.o: %.c
$(CC) -c $(CCFLAGS) $<
default : all
all: objs pi_gather pi_hybrid pi_io_at pi_p2p_async_ring pi_p2p_derived_type pi_p2p_permanent_ring pi_p2p_ring pi_p2p_sendrecv_ring pi_reduce
objs: $(objects)
pi_gather:
$(LD) $(LDFLAGS) pi_gather.o -o pi_gather
pi_hybrid:
$(LD) $(LDFLAGS) pi_hybrid.o -o pi_hybrid
pi_io_at:
$(LD) $(LDFLAGS) pi_io_at.o -o pi_io_at
pi_p2p_async_ring:
$(LD) $(LDFLAGS) pi_p2p_async_ring.o -o pi_p2p_async_ring
pi_p2p_derived_type:
$(LD) $(LDFLAGS) pi_p2p_derived_type.o -o pi_p2p_derived_type
pi_p2p_permanent_ring:
$(LD) $(LDFLAGS) pi_p2p_permanent_ring.o -o pi_p2p_permanent_ring
pi_p2p_ring:
$(LD) $(LDFLAGS) pi_p2p_ring.o -o pi_p2p_ring
pi_p2p_sendrecv_ring:
$(LD) $(LDFLAGS) pi_p2p_sendrecv_ring.o -o pi_p2p_sendrecv_ring
pi_reduce:
$(LD) $(LDFLAGS) pi_reduce.o -o pi_reduce
clean:
-rm -f $(objects) pi_gather pi_hybrid pi_io_at pi_p2p_async_ring pi_p2p_derived_type pi_p2p_permanent_ring pi_p2p_ring pi_p2p_sendrecv_ring pi_reduce
-rm -f pi.dat

Event Timeline