Makefile 329 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

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

all: pse_1d

Pietro Incardona's avatar
Pietro Incardona committed
17 18 19 20
run: all
	source $$HOME/openfpm_vars; ./pse_1d

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

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