Makefile 412 Bytes
Newer Older
1
CC=mpiicpc
Ben Hazelwood's avatar
Ben Hazelwood committed
2
CFLAGS += -fPIC -g -Wall -std=c++11 -DTMPI_TIMING
Ben Hazelwood's avatar
Ben Hazelwood committed
3
LDFLAGS += -shared
4

5
6
7
SRC = RankOperations.cpp Timing.cpp Wrapper.cpp
DEP = RankOperations.h Timing.h Wrapper.h TMPIConstants.h Logging.h
OBJECTS = $(SRC:.cpp=.o)
Ben Hazelwood's avatar
Ben Hazelwood committed
8

9
10
TARGET = libtmpi.so

Ben Hazelwood's avatar
Ben Hazelwood committed
11
12
.PHONY : clean

13
all: $(TARGET)
Ben Hazelwood's avatar
Ben Hazelwood committed
14

15
%.o: %.cpp $(DEP)
Ben Hazelwood's avatar
Ben Hazelwood committed
16
	$(CC) $(CFLAGS) -c $< -o $@
17

Ben Hazelwood's avatar
Ben Hazelwood committed
18
	
19
$(TARGET) : $(OBJECTS)
20
	$(CC) $(LDFLAGS) $^ -o $@
Ben Hazelwood's avatar
Ben Hazelwood committed
21
22
23

clean:
	rm -f $(OBJECTS) $(TARGET)