-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 711 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 711 Bytes
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
# Makefile for YOLO
# Created by Hammad Jutt, March 4 2018
PROG = YOLO
CC = g++
CPPFLAGS = -std=c++11 -Wall
OCV_INCLUDES = -I/usr/local/include/
OCV_LIBDIRS = -L/usr/local/lib
OCV_LIBS = -lopencv_core -lopencv_highgui -lopencv_imgproc
TESTS = $(PROG)-test
TEST_RUNNER = testRunner
all: $(PROG).o
test: $(TESTS)
$(PROG).o: $(PROG).cpp
$(CC) $(CPPFLAGS) $(OCV_LIBDIRS) $(OCV_INCLUDES) $(PROG).cpp -c -o $(PROG).o $(OCV_LIBS)
$(TESTS): $(TESTS).cpp $(TEST_RUNNER).o $(PROG).o
$(CC) $(CPPFLAGS) $(PROG).o $(TEST_RUNNER).o $(TESTS).cpp -o $(TESTS)
$(TEST_RUNNER).o: $(TEST_RUNNER).cpp
$(CC) $(CPPFLAGS) $(TEST_RUNNER).cpp -c -o $(TEST_RUNNER).o
clean:
rm -f $(PROG) $(PROG).o $(TESTS) $(TEST_RUNNER).o