Makefile 365 Bytes
Newer Older
Francois Tessier's avatar
.  
Francois Tessier committed
1
include make.inc/Makefile.bgq
2

3 4 5
CPP_FILES := $(wildcard *.cpp)
OBJ_FILES := $(CPP_FILES:.cpp=.o)

6 7
all:libtapioca.a

8
libtapioca.a:$(OBJ_FILES)
9 10
	ar rcs $@ $?

11
%.o:%.cpp
12
	$(MPICXX) $(MPI_CFLAGS) -c $? -o $@ $(MPI_LDFLAGS)
13 14

install:
15
	cp -r tapioca.hpp topology/*.hpp topology/include/* $(INSTALL_PATH)/include
16 17 18
	cp libtapioca.a $(INSTALL_PATH)/lib

clean:
19
	rm -f *.a *.o