forked from MatteoRagni/ParkAssistant
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (25 loc) · 929 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
CC=g++
CFLAGS=-g -c -I/usr/include/opencv2 -Isrc
LDFLAGS=-L/usr/lib/x86_64-linux-gnu -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_features2d -lopencv_video
all: ParkAssistant utility
# Park Assistant compilation rules
ParkAssistant: main.o
$(CC) $(LDFLAGS) src/libParkAssist.o src/main.o -o ./ParkAssistant
main.o: ParkAssistant.o
$(CC) $(CFLAGS) src/main.cpp -o src/main.o
ParkAssistant.o:
$(CC) $(CFLAGS) src/libParkAssist.cpp -o src/libParkAssist.o
# Utility compilation rules
utility: utility.o
$(CC) $(LDFLAGS) src2/libutility1.o src2/utility1.o -o ./utility
utility.o:
$(CC) $(CFLAGS) src2/libutility1.cpp -o src2/libutility1.o
$(CC) $(CFLAGS) src2/utility1.cpp -o src2/utility1.o
# Cleaning rules
clean-parkassistant:
rm -rf ParkAssistant
rm -rf src/libParkAssist.o src/main.o
clean-utility:
rm -rf utility
rm -rf src2/libUtility1.o src2/utility1.o
clean: clean-utility clean-parkassistant