forked from ronkashi/assignment3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
31 lines (26 loc) · 1.1 KB
/
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
29
30
31
CC = gcc
CPP = g++
OBJS = main.o main_aux.o sp_image_proc_util.o SPPoint.o SPBPriorityQueue.o
EXEC = ex3
INCLUDEPATH=/usr/local/lib/opencv-3.1.0/include/
LIBPATH=/usr/local/lib/opencv-3.1.0/lib/
LIBS=-lopencv_xfeatures2d -lopencv_features2d \
-lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_core
CPP_COMP_FLAG = -std=c++11 -Wall -Wextra \
-Werror -pedantic-errors -DNDEBUG
C_COMP_FLAG = -std=c99 -Wall -Wextra \
-Werror -pedantic-errors -DNDEBUG
$(EXEC): $(OBJS)
$(C++) $(OBJS) -L$(LIBPATH) $(LIBS) -o $@
main.o: main.cpp main_aux.h sp_image_proc_util.h SPPoint.h SPBPriorityQueue.h
$(C++) $(CPP_COMP_FLAG) -I$(INCLUDEPATH) -c $*.cpp
main_aux.o: main_aux.h main_aux.cpp SPPoint.h SPBPriorityQueue.h
$(C++) $(CPP_COMP_FLAG) -I$(INCLUDEPATH) -c $*.cpp
sp_image_proc_util.o: sp_image_proc_util.h sp_image_proc_util.cpp SPPoint.h SPBPriorityQueue.h
$(C++) $(CPP_COMP_FLAG) -I$(INCLUDEPATH) -c $*.cpp
SPPoint.o: SPPoint.c SPPoint.h
$(CC) $(C_COMP_FLAG) -c $*.c
SPBPriorityQueue.o: SPBPriorityQueue.c SPBPriorityQueue.h
$(CC) $(C_COMP_FLAG) -c $*.c
clean:
rm -f $(OBJS) $(EXEC)