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

5
6
SRC = Rank.cpp RankControl.cpp Timing.cpp Wrapper.cpp teaMPI.cpp
DEP = Rank.h RankControl.h Timing.h Wrapper.h Logging.h teaMPI.h
7
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)