-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (22 loc) · 847 Bytes
/
Makefile
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
# CS61064 - High Perfomance Parallel Programming
# OpenMP/MPI - Assignment 1
# Parallel Image morphing by affine transformations
#
# Author: Utkarsh Patel (18EC35034)
# top-level rule to compile the whole program.
all: main
# program is made of several source files.
main: main.o utils.o atx.o
g++ main.o utils.o atx.o -o main -fopenmp `pkg-config --cflags --libs opencv4`
# rule for file "main.o".
main.o: main.cpp utils.hpp atx.hpp
g++ -g -Wall -c main.cpp -fopenmp `pkg-config --cflags --libs opencv4`
# rule for file "file1.o".
utils.o: utils.cpp utils.hpp
g++ -g -Wall -c utils.cpp `pkg-config --cflags --libs opencv4`
# rule for file "file2.o".
atx.o: atx.cpp atx.hpp
g++ -g -Wall -c atx.cpp `pkg-config --cflags --libs opencv4`
# rule for cleaning files generated during compilations.
clean:
/bin/rm -f main main.o utils.o atx.o