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

CC=mpic++

LDIR =

OBJ = main.o

%.o: %.cpp
incardon's avatar
incardon committed
10
	$(CC) -fext-numeric-literals -O3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
incardon's avatar
incardon committed
11

incardon's avatar
incardon committed
12
vect: $(OBJ)
incardon's avatar
incardon committed
13 14
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)

incardon's avatar
incardon committed
15
all: vect
incardon's avatar
incardon committed
16

Pietro Incardona's avatar
Pietro Incardona committed
17 18 19 20
run: all
	source $$HOME/openfpm_vars; mpirun -np 2 ./vect

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

clean:
incardon's avatar
incardon committed
23
	rm -f *.o *~ core vect
incardon's avatar
incardon committed
24