-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 1.3 KB
/
Copy pathMakefile
File metadata and controls
32 lines (24 loc) · 1.3 KB
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
#A makefile for the senior design project
CC=g++
#compiler flags
CFLAGS= -Wall -ggdb
EXE= project
TEST_EXE= vertextest vec2vertexTest drawtest imageProcTest scaleTest drawLineTest imageProcUnitTests quittest relaxtest
#location directory of opencv library files
LFLAGS= -L /usr/local/lib
#opencv library files being used
LIBS= -l opencv_core -l opencv_highgui -l opencv_imgproc
#compile all project code
all :
$(CC) $(CFLAGS) src/*.cpp -o project $(LIBS) $(LFLAGS)
#compile all test code
test:
$(CC) $(CFLAGS) src/point.cpp tests/vertexTests.cpp -o vertextest
$(CC) $(CFLAGS) src/point.cpp src/Line.cpp tests/LineTests.cpp -o LineTest
$(CC) $(CFLAGS) src/relaxCommand.cpp src/RobotComm.cpp src/commandInterface.cpp tests/robotRelaxTest.cpp -o relaxtest
$(CC) $(CFLAGS) src/quitCommand.cpp src/RobotComm.cpp src/commandInterface.cpp tests/robotQuitTest.cpp -o quittest
$(CC) $(CFLAGS) src/point.cpp src/Line.cpp src/RobotComm.cpp src/commandInterface.cpp src/drawLineCommand.cpp tests/drawLineTest.cpp -o drawLineTest $(LIBS) $(LFLAGS)
$(CC) $(CFLAGS) src/imageProcessor.cpp src/drawing.cpp src/point.cpp src/Line.cpp tests/imageProcUnitTests.cpp -o imageProcUnitTests $(LIBS) $(LFLAGS)
#clean the project directory of all object & executable files
clean:
rm -f */*.o */*.exe *~ */*.cpp~ */*.h~ $(EXE) $(TEST_EXE)