Makefile 901 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
include ../make.inc/Makefile.$(ARCHI)

MPI_CFLAGS   = -g -O3 -I../ -I. -I../architectures -I../architectures/$(ARCHI)
MPI_CFLAGS  += -DDBG -DCOLOR #-DTIMING

TP_INCLUDE   = ../architectures/tp_network_interface.hpp \
               ../architectures/tp_memory_interface.hpp \
               ../architectures/$(ARCHI)/*

C_CPP_FILES := $(wildcard C/*.cpp)
11
C_HDR_FILES := $(wildcard C/*.h )
12 13 14
C_OBJ_FILES := $(C_CPP_FILES:.cpp=.o)

F90_CPP_FILES := $(wildcard F90/*.cpp)
15
F90_HDR_FILES := $(wildcard F90/*.h)
16 17 18 19 20 21 22 23 24 25
F90_OBJ_FILES := $(F90_CPP_FILES:.cpp=.o)

all:c_bindings f90_bindings

c_bindings:$(C_CPP_FILES)
	$(MPICXX) $(MPI_CFLAGS) -c $? -o $(C_OBJ_FILES) $(MPI_LDFLAGS)

f90_bindings:$(F90_CPP_FILES)
	$(MPICXX) $(MPI_CFLAGS) -c $? -o $(F90_OBJ_FILES) $(MPI_LDFLAGS)

26 27 28
install:
	cp tapioca_singleton.hpp $(C_HDR_FILES) $(F90_HDR_FILES) $(INSTALL_PATH)/include

29 30
clean:
	rm -f $(F90_OBJ_FILES) $(C_OBJ_FILES)