Makefile 738 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
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)
C_OBJ_FILES := $(C_CPP_FILES:.cpp=.o)

F90_CPP_FILES := $(wildcard F90/*.cpp)
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)

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