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

CC=mpic++

LDIR =

OBJ_DORD = main.o

all: md_sym

%.o: %.cpp
incardon's avatar
incardon committed
12
	$(CC) -O3 -g -c --std=c++11 $(OPT) -o $@ $< $(INCLUDE_PATH)
incardon's avatar
incardon committed
13 14 15 16 17

md_sym: $(OBJ_DORD)
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)

run: md_sym
incardon's avatar
incardon committed
18
	mpirun -np 3 ./md_sym
incardon's avatar
incardon committed
19

incardon's avatar
incardon committed
20
.PHONY: clean all run
incardon's avatar
incardon committed
21 22 23 24

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