-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
38 lines (28 loc) · 970 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
36
37
# Copyright (c) 2012-2013, NVIDIA Corporation. All rights reserved.
#
# NVIDIA Corporation and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an
# express license agreement from NVIDIA Corporation is strictly prohibited.
# edited by Hyundai Autron
CC = gcc
TARGETS = captureOpenCV
OPT = -Os -O2
CFLAGS = $(OPT) -Wall -I. -I./utils `pkg-config opencv --cflags`
CPPFLAGS = -I./include
OBJS := captureOpenCV.o
OBJS += nvthread.o
LDLIBS :=
LDLIBS += -L ./utils
LDLIBS += -lnvmedia
LDLIBS += -lnvtestutil_board
LDLIBS += -lnvtestutil_capture_input
LDLIBS += -lnvtestutil_i2c
LDLIBS += -lpthread
LDLIBS += `pkg-config opencv --libs`
default : $(TARGETS)
$(TARGETS): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
clobber clean :
rm -rf $(TARGETS) $(OBJS)