Makefile 586 Bytes
Newer Older
incardon's avatar
incardon committed
1 2 3 4 5 6 7 8 9 10 11 12
include ../../example.mk

CC=mpic++

LDIR =

OBJ = main.o update_new.o

%.o: %.f90
	mpif90 -ffree-line-length-none -fno-range-check -fno-second-underscore  -fimplicit-none  -mavx -O3 -c -g -o $@ $<

%.o: %.cpp
incardon's avatar
incardon committed
13
	$(CC) -O3 -mavx  -g -c --std=c++11 -Wno-ignored-attributes  -o  $@ $< $(INCLUDE_PATH) -I/where/is/vc/installation/include
incardon's avatar
incardon committed
14 15

gray_scott: $(OBJ)
incardon's avatar
incardon committed
16
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS) -L/where/is/vc/installation/lib  # -lVc (Add -lVc if you use VCDevel)
incardon's avatar
incardon committed
17 18 19 20 21 22 23 24 25 26 27

all: gray_scott

run: all
	mpirun -np 4 ./gray_scott

.PHONY: clean all run

clean:
	rm -f *.o *~ core gray_scott