Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92098692
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 17, 08:27
Size
660 B
Mime Type
text/x-makefile
Expires
Tue, Nov 19, 08:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22374341
Attached To
rSCINTROPAR Introduction to parallelism
Makefile
View Options
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
Log In to Comment