-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (26 loc) · 943 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
29
30
31
32
33
34
35
LDLIBS := $(shell pkg-config --libs opencv4)
CXXFLAGS := $(shell pkg-config --cflags opencv4 eigen3)
CXXFLAGS += -g -Wall -Wextra -MMD
PREFIX := /usr/local
fix-perspective: intersect-lines-2d.o fix-perspective.cpp
install: fix-perspective
install $< $(PREFIX)/bin
check:
pkg-config --print-errors opencv4 eigen3
clean:
$(RM) *.o *.d fix-perspective
deps-ubuntu:
apt-get --no-install-recommends install pkg-config g++ libeigen3-dev libopencv-dev # needs OpenCV 4
help:
@echo "Targets"
@echo
@echo " deps-ubuntu Install system dependencies (may need su)"
@echo " check Verify that all system dependencies are present"
@echo " install Build fix-perspective and install into PREFIX/bin"
@echo " clean Remove all files generated by previous builds"
@echo
@echo "Variables"
@echo
@echo " PREFIX Path where to install the program into [$(PREFIX)]"
.PHONY: check clean deps-ubuntu help install
-include $(wildcard *.d)