HOME=/home/kay
CFLAGS= -I$(HOME)/include -g
#CPPFLAGS= -I$(HOME)/include -I/usr/include/g++-2 -Wall -g
CPPFLAGS= -I$(HOME)/include -Wall -O3
LDFLAGS= -L$(HOME)/lib -lphnx -lpthread -lm #-lefence

all : nbody

nbody :  msg.o is.o receiver.o manager.o fraction.o NBody.o nbody.o
	g++ $(CPPFLAGS) $(LDFLAGS) -o $@ $^

.cc.o : 
	g++ $(CPPFLAGS) -c $<
clean :
	rm -f *.o
