Makefile 298 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
include ../../example.mk

CC=mpic++

LDIR =
OPT=

OBJ = main.o

all: hdf5


%.o: %.cpp
incardon's avatar
incardon committed
14
	$(CC) -O3 $(OPT) -g -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
15 16 17 18 19 20 21 22 23 24 25 26 27

hdf5: $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)


run: hdf5
	mpirun -np 2 ./hdf5

.PHONY: clean all run

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