Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104852448
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
Wed, Mar 12, 21:50
Size
660 B
Mime Type
text/x-makefile
Expires
Fri, Mar 14, 21:50 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24854920
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