Blame view

build/gb28181/Makefile 1.69 KB
c8285c8d   Hu Chunming   GB28181 UDP 有重大进展...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  XX = g++
  
  
  PROJECT_ROOT= /home/cmhu/vpt_ascend_arm
  
  DEPEND_DIR = $(PROJECT_ROOT)/bin
  
  TARGET= $(PROJECT_ROOT)/bin/test_sip
  
  DEFS = -DLinux
  
  
  THIRDPARTY_ROOT = $(PROJECT_ROOT)/3rdparty
  SPDLOG_ROOT = $(THIRDPARTY_ROOT)/spdlog-1.9.2/release
  
  GB28181_ROOT = /home/cmhu/vpt_ascend_arm/3rdparty/gb28181_3rd
  JRTP_ROOT = $(GB28181_ROOT)/jrtp_export
5b86d771   Hu Chunming   实现GB28181 UDP 基于d...
18
  SIP_SDK = $(GB28181_ROOT)/release
c8285c8d   Hu Chunming   GB28181 UDP 有重大进展...
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
75
76
77
78
  
  
  SRC_ROOT = /home/cmhu/vpt_ascend_arm/src/decoder/gb28181
  SIP_ROOT = $(SRC_ROOT)/sip
  RTP_ROOT = $(SRC_ROOT)/rtp
  
  
  INCLUDE=-I $(SPDLOG_ROOT)/include \
  			-I $(JRTP_ROOT)/jrtplib/include/jrtplib3 \
  			-I $(SIP_SDK)/include \
  			-I $(SIP_ROOT) \
  			-I $(RTP_ROOT) \
  			
  
  
  LIBS= -L $(SPDLOG_ROOT)/lib -l:libspdlog.a \
     	-L $(JRTP_ROOT)/jrtplib/lib -l:libjrtp.a \
  	-L $(SIP_SDK)/lib -l:libeXosip2.a -l:libosipparser2.a -l:libosip2.a -lcares\
     	
  
  
  CXXFLAGS= -g -O0 -fPIC $(INCLUDE) $(LIBS) $(DEFS) -lpthread -lrt -lz -fexceptions -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -fvisibility=hidden -Wall -Wno-deprecated -Wdeprecated-declarations -Wl,-Bsymbolic -ldl
  
  
  
  SRCS:=$(wildcard $(SIP_ROOT)/Utils/*.cpp) \
  		$(wildcard $(SIP_ROOT)/Message/*.cpp) \
  		$(wildcard $(SIP_ROOT)/tinyxml2/*.cpp) \
  		$(wildcard $(SIP_ROOT)/*.cpp) \
  		$(wildcard $(RTP_ROOT)/*.cpp) \
  		$(wildcard $(SRC_ROOT)/*.cpp) \
  
  OBJS = $(patsubst %.cpp, %.o, $(notdir $(SRCS)))
  
  
  $(TARGET):$(OBJS)
  	rm -f $(TARGET)
  	$(XX) -o $@ $^ $(CXXFLAGS)
  # rm -f *.o
  
  %.o:$(SIP_ROOT)/Utils/%.cpp
  	$(XX) $(CXXFLAGS) -c $<
  
  %.o:$(SIP_ROOT)/Message/%.cpp
  	$(XX) $(CXXFLAGS) -c $<
  
  %.o:$(SIP_ROOT)/tinyxml2/%.cpp
  	$(XX) $(CXXFLAGS) -c $<
  
  %.o:$(SIP_ROOT)/%.cpp
  	$(XX) $(CXXFLAGS) -c $<
  
  %.o:$(RTP_ROOT)/%.cpp
  	$(XX) $(CXXFLAGS) -c $<
  
  %.o:$(SRC_ROOT)/%.cpp
  	$(XX) $(CXXFLAGS) -c $<
  
  clean:
  	rm -f *.o $(TARGET)