21 lines
558 B
Makefile
21 lines
558 B
Makefile
all: main arithmetic hello contour
|
|
g++ main.o arithmetic.o -L/usr/lib/x86_64-linux-gnu -lopencv_core
|
|
|
|
g++ contour_detection.o -o contour -L/usr/lib/x86_64-linux-gnu -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_videoio -lopencv_imgcodecs
|
|
|
|
main: main.cpp
|
|
g++ -c main.cpp -I/usr/include/opencv4
|
|
|
|
arithmetic: arithmetic.cpp arithmetic.h
|
|
g++ -c arithmetic.cpp
|
|
|
|
hello: hello_world.cpp
|
|
g++ -c hello_world.cpp -I/usr/include/opencv4
|
|
|
|
contour: contour_detection.cpp
|
|
g++ -c contour_detection.cpp -I/usr/include/opencv4
|
|
|
|
clean:
|
|
rm *.o
|
|
rm a.out
|