Remove unused imports and linker flags

This commit is contained in:
2023-02-13 18:13:02 +01:00
parent 48d2620a43
commit f652017466
2 changed files with 9 additions and 11 deletions
+6 -7
View File
@@ -1,17 +1,16 @@
CC=gcc
CXX=g++
RM=rm -f
SRCS=autofocus.cc
SRCS=capture.cc
OBJS=$(subst .cc,.o,$(SRCS))
all: $(SRCS)
$(CXX) -std=c++11 -Wall -I/usr/lib/opencv -I/usr/include/opencv4 $< -L/usr/lib -lopencv_core -lopencv_highgui -lopencv_videoio -lopencv_imgproc -lopencv_imgcodecs -o autofocus
$(CXX) -std=c++11 -Wall -I/usr/lib/opencv -I/usr/include/opencv4 $< -L/usr/lib -lopencv_core -lopencv_videoio -lopencv_imgcodecs -o capture
run: autofocus
LD_PRELOAD=/usr/lib/aarch64-linux-gnu/tegra/libnvjpeg.so ./autofocus
run: capture
LD_PRELOAD=/usr/lib/aarch64-linux-gnu/tegra/libnvjpeg.so ./capture
clean:
$(RM) $(OBJS)
rm -f $(OBJS)
distclean: clean
$(RM) autofocus
rm -f capture