-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (28 loc) · 1.41 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
include Makefile.config
.PHONY: all
all: simple
simple:
g++ $(FLAGS) $(INCLUDE) -c src/dense_flow_gpu.cc
g++ $(FLAGS) $(INCLUDE) -c src/toolbox.cc
g++ -o $(OUT)/denseFlow_gpu dense_flow_gpu.o toolbox.o $(LIB) -lopencv_core -lopencv_cudaoptflow -lopencv_imgcodecs -lopencv_highgui -lopencv_imgproc -lopencv_videoio
rm *.o
serialize:
g++ $(FLAGS) -DSERIALIZE_BUFFER $(INCLUDE) -c src/dense_flow_gpu.cc
g++ $(FLAGS) -DSERIALIZE_BUFFER $(INCLUDE) -c src/toolbox.cc
g++ -o $(OUT)/denseFlow_gpu dense_flow_gpu.o toolbox.o $(LIB) -lopencv_core -lopencv_cudaoptflow -lopencv_imgcodecs -lopencv_highgui -lopencv_imgproc -lopencv_videoio -lboost_serialization
rm *.o
unpacker:
g++ $(FLAGS) -DSERIALIZE_BUFFER $(INCLUDE) -c src/unpack.cc
g++ $(FLAGS) -DSERIALIZE_BUFFER $(INCLUDE) -c src/toolbox.cc
g++ -o $(OUT)/unpack unpack.o toolbox.o $(LIB) -lopencv_core -lopencv_imgcodecs -lopencv_highgui -lboost_serialization
rm *.o
repack:
g++ $(FLAGS) -DSERIALIZE_BUFFER $(INCLUDE) -c src/flow_split.cc
g++ $(FLAGS) -DSERIALIZE_BUFFER $(INCLUDE) -c src/toolbox.cc
g++ -o $(OUT)/repack flow_split.o toolbox.o $(LIB) -lopencv_core -lopencv_imgcodecs -lopencv_highgui -lboost_serialization
rm *.o
packer:
g++ $(FLAGS) -DSERIALIZE_BUFFER $(INCLUDE) -c src/pack.cc
g++ $(FLAGS) -DSERIALIZE_BUFFER $(INCLUDE) -c src/toolbox.cc
g++ -o $(OUT)/pack pack.o toolbox.o $(LIB) -lopencv_core -lopencv_imgcodecs -lopencv_highgui -lboost_serialization
rm *.o