Makefile 455 Bytes
Newer Older
1
include make.inc/Makefile.$(ARCHI)
2

3
CPP_FILES := $(wildcard *.cpp) $(wildcard architectures/$(ARCHI)/*.cpp)
4 5
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 tp_utils.hpp $(TP_INCLUDE) $(INSTALL_PATH)/include
16 17 18
	cp libtapioca.a $(INSTALL_PATH)/lib

clean:
19
	rm -f *.a *.o architectures/$(ARCHI)/*.o bindings/tapioca_capi.o