Makefile 459 Bytes
Newer Older
1 2 3
MPICXX = mpicxx

MPI_CFLAGS   = -g -O3 -I./topology/
Francois Tessier's avatar
Francois Tessier committed
4
MPI_CFLAGS  += -DBGQ #-DDEBUG -DTIMING
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
MPI_CFLAGS  += -I/bgsys/drivers/ppcfloor -I/bgsys/drivers/ppcfloor/spi/include/kernel/cnk

INSTALL_PATH  = $(HOME)/install_bgq

all:libtapioca.a

libtapioca.a:tapioca.o
	ar rcs $@ $?

tapioca.o:tapioca.cpp
	$(MPICXX) $(MPI_CFLAGS) -c $? -o $@

install:
	cp tapioca.hpp topology/*.hpp $(INSTALL_PATH)/include
	cp libtapioca.a $(INSTALL_PATH)/lib

clean:
	rm -f *.a *.o