-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile
74 lines (47 loc) · 2.59 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# define commands to use for compilation
CXX = g++
CFLAGS = -g -w -Wall -Wpedantic -O0 -std=c++11
OPENCV_LIB = -lopencv_ml -lopencv_objdetect -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_video -lopencv_photo -lopencv_imgproc -lopencv_flann -lopencv_core
BOOST = -lboost_system -lboost_filesystem
# libraries
LIB = -L/usr/local/lib -lserial -L/usr/lib/x86_64-linux-gnu
# -lcgicc
# includes
INC = -I/usr/include -I/usr/local/include #-I/usr/local/include/opencv2 -I/usr/local/include/opencv
alignerd: src/alignerd.cpp
$(CXX) $(CFLAGS) src/alignerd.cpp $(LIB) $(OPENCV_LIB) -o bin/alignerd
controller: src/controller.cpp
$(CXX) $(CFLAGS) src/controller.cpp $(LIB) $(OPENCV_LIB) -o bin/controller
colorpicker: src/colorpicker.cpp
$(CXX) $(CFLAGS) src/colorpicker.cpp $(LIB) $(OPENCV_LIB) -o bin/colorpicker
experimentbrowser: src/experimentbrowser.cpp
$(CXX) $(CFLAGS) src/experimentbrowser.cpp -lcgicc -o bin/experimentbrowser
backcatalog: src/backcatalog.cpp
$(CXX) $(CFLAGS) src/backcatalog.cpp -lcgicc -o bin/backcatalog
wormbotstatus: src/wormbotstatus.cpp
$(CXX) $(CFLAGS) src/wormbotstatus.cpp -lcgicc -o bin/wormbotstatus
marker: src/marker.cpp
$(CXX) $(CFLAGS) src/marker.cpp $(OPENCV_LIB) -lcgicc -o bin/marker
scheduler: src/scheduler.cpp
$(CXX) $(CFLAGS) src/scheduler.cpp -lcgicc -o bin/scheduler
cgiccretro: src/cgiccretro.cpp
$(CXX) $(CFLAGS) src/cgiccretro.cpp $(LIB) $(OPENCV_LIB) -lcgicc -o bin/cgiccretro
wormlistupdater: src/wormlistupdater.cpp
$(CXX) $(CFLAGS) src/wormlistupdater.cpp $(LIB) $(OPENCV_LIB) -lcgicc -o bin/wormlistupdater
cropFrames: src/cropFrames.cpp
$(CXX) $(CFLAGS) src/cropFrames.cpp $(LIB) $(OPENCV_LIB) -lcgicc -o bin/cropFrames
experimentuploader: src/experimentuploader.cpp
$(CXX) $(CFLAGS) src/experimentuploader.cpp $(LIB) $(OPENCV_LIB) -lcgicc -o bin/experimentuploader
plateExplorer: src/plateExplorer.cpp
$(CXX) $(CFLAGS) src/plateExplorer.cpp $(LIB) $(OPENCV_LIB) -lcgicc -o bin/plateExplorer
graphmaker: src/graphmaker.cpp
$(CXX) $(CFLAGS) src/graphmaker.cpp $(LIB) $(OPENCV_LIB) -lcgicc -o bin/graphmaker
trainingSetExport: src/trainingSetExport.cpp
$(CXX) $(CFLAGS) src/trainingSetExport.cpp $(LIB) $(OPENCV_LIB) $(BOOST) -lcgicc -o bin/trainingSetExport
all: alignerd controller experimentbrowser marker scheduler cgiccretro wormlistupdater colorpicker wormbotstatus experimentuploader plateExplorer graphmaker backcatalog cropFrames trainingSetExport
clean:
rm bin/*
%.o: %.cpp
echo heyo
cd src
$(CXX) $(CFLAGS) -c $(INC) $<