Makefile 342 Bytes
Newer Older
Pietro Incardona's avatar
Pietro Incardona 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)
Pietro Incardona's avatar
Pietro Incardona committed
11 12 13 14 15 16

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

all: diff_1d

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

Pietro Incardona's avatar
Pietro Incardona committed
20 21 22 23 24
.PHONY: clean all

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