Makefile 257 Bytes
Newer Older
Pietro Incardona's avatar
Pietro Incardona committed
1 2 3 4 5 6 7 8 9 10 11
include ../../example.mk

CC=mpic++

LDIR =

OBJ = main.o

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

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

Pietro Incardona's avatar
Pietro Incardona committed
15
all: periodic
Pietro Incardona's avatar
Pietro Incardona committed
16 17 18 19

.PHONY: clean all

clean:
Pietro Incardona's avatar
Pietro Incardona committed
20
	rm -f *.o *~ core periodic
Pietro Incardona's avatar
Pietro Incardona committed
21