Makefile 311 Bytes
Newer Older
incardon's avatar
incardon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
include ../../example.mk

CC=mpic++

LDIR =

OBJ_DORD = main.o

all: md_sym

%.o: %.cpp
	$(CC) -O3 -g -c --std=c++11 $(OPT) -o $@ $< $(INCLUDE_PATH)

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

run: md_sym
	mpirun -np 3 ./md_sym

.PHONY: clean all run

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