-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile.tx
54 lines (37 loc) · 1.26 KB
/
Makefile.tx
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
# Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
#
TARGET = ./ArRtspTool
C++ = g++
CC = gcc
INCLUDE_FLAG = -include
INCPATH = -I./ -I./include
LIBPATH = -lpthread -lz -L./lib_tx -lRtspClient -lRtcLite -lRtxNvCap -lboringssl
CCFLAGS += -Wall -D_GNU_SOURCE -DNDEBUG -O2 -DPOSIX -DARRTC_EXPORT -DRTX_NV_CAP -DNO_DL -DFEATURE_ENABLE_SSL -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS
LFLAGS = -w -lrt -ldl
# EACH DIRECTORY WITH HEADERS MUST BE APPENDED IN THIS MANNER TO THE CCFLAGS
C++FLAGS = $(CCFLAGS)
CFILES = \
CPPFILES = \
./config.cpp \
./main.cpp \
./PullToRtc1xN.cpp \
./PullToRtcNxN.cpp \
./XUtil.cpp
CCFILES = \
all: $(TARGET)
$(TARGET): $(CFILES:.c=.o) $(CCFILES:.cc=.o) $(CPPFILES:.cpp=.o)
$(CXX) $(LFLAGS) $(CFILES:.c=.o) $(CCFILES:.cc=.o) $(CPPFILES:.cpp=.o) -o $(TARGET) $(LIBPATH)
install:
# install -m 664 ArRtspTool ../out/Linux
rm -rf ./lib_run
mkdir ./lib_run
cp ./lib_tx/* ./lib_run/
clean:
rm -f $(TARGET) $(CFILES:.c=.o) $(CCFILES:.cc=.o) $(CPPFILES:.cpp=.o)
.SUFFIXES: .cpp .cc .c .o
.cpp.o:
$(C++) -c -o $*.o $(DEFINES) -std=c++11 $(C++FLAGS) $*.cpp $(INCPATH)
.cc.o:
$(C++) -c -o $*.o $(DEFINES) -std=c++11 $(C++FLAGS) $*.cc $(INCPATH)
.c.o:
$(CC) -c -o $*.o $(DEFINES) -std=c99 $(CCFLAGS) $*.c $(INCPATH)