-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
26 lines (15 loc) · 932 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
DIRSERV = ProgServer
DIRCLI = ProgClient
DIRSYS = System
DIREXE = Executable
FLAGRASP = -I/usr/local/include/ -lraspicam -lraspicam_cv
FLAGOPENCV = `pkg-config --cflags --libs opencv`
all: $(DIRSERV)/mctr_server.exe $(DIREXE)/mctr_client.exe $(DIREXE)/QTstream.exe
$(DIRSERV)/mctr_server.exe : $(DIRSYS)/invoke.cpp $(DIRSERV)/mctr_server.cpp
g++ $(DIRSYS)/invoke.cpp $(DIRSYS)/usercall.cpp $(DIRSERV)/mctr_server.cpp -pthread -o $(DIREXE)/mctr_server.exe $(FLAGOPENCV) $(FLAGRASP)
$(DIREXE)/mctr_client.exe : $(DIRSYS)/invoke.cpp $(DIRCLI)/mctr_client.cpp
g++ $(DIRSYS)/invoke.cpp $(DIRSYS)/usercall.cpp $(DIRCLI)/mctr_client.cpp -pthread -o $(DIREXE)/mctr_client.exe $(FLAGOPENCV) $(FLAGRASP)
$(DIREXE)/QTstream.exe : $(DIRSYS)/invoke.cpp $(DIRSERV)/QTstream.cpp
g++ $(DIRSYS)/invoke.cpp $(DIRSYS)/usercall.cpp $(DIRSERV)/QTstream.cpp -pthread -o $(DIREXE)/QTstream.exe $(FLAGOPENCV) $(FLAGRASP)
clean:
rm */*.exe