-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakeMPI
More file actions
executable file
·35 lines (21 loc) · 755 Bytes
/
Copy pathmakeMPI
File metadata and controls
executable file
·35 lines (21 loc) · 755 Bytes
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
26
27
28
29
30
31
32
.SUFFIXES:
.SUFFIXES: .o .cpp
#============================================================
TARGET1 = edgeDetectMPI
C_OBJS1 = mainMPI.o utilities.o
C_SOURCES = mainMPI.cpp utilities.cpp
MY_INCLUDES = stb_image.h stb_image_write.h utilities.h
CXX = mpicxx
CXXFLAGS = -std=c++11
#============================================================
all: $(TARGET1)
.o:.cpp $(MY_INCLUDES)
$(CCX) -c $(CXXFLAGS) $<
$(TARGET1) : $(C_OBJS1)
$(CXX) $(CXXFLAGS) $^ $(LIBDIRS) -o $@
# Implicit rules: $@ = target name, $< = first prerequisite name, $^ = name of all prerequisites
#============================================================
ALL_SOURCES = Makefile $(C_SOURCES) $(MY_INCLUDES)
NOTES =
clean:
rm -f $(TARGET1) $(C_OBJS1) *~