-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (48 loc) · 1002 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
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
include ../Makefile.inc
ifeq ($(UNAME),Darwin)
LIBS=\
-L/opt/local/lib \
$(addprefix -L,$(wildcard /opt/local/lib/live/*)) \
-lboost_thread-mt \
-lboost_system-mt
INCLUDE=\
-I/usr/local/include \
-I/opt/local/include \
$(addprefix -I,$(wildcard /opt/local/lib/live/*/include))
else
LIBS=\
-lboost_thread \
-lboost_system \
-lrt
INCLUDE=\
-I/usr/include/liveMedia \
-I/usr/include/groupsock \
-I/usr/include/UsageEnvironment \
-I/usr/include/BasicUsageEnvironment
EXTRA_FLAGS= -Wl,--no-as-needed
endif
LIBS+=\
-lx264 \
-lavcodec \
-lavdevice \
-lavfilter \
-lavformat \
-lavutil \
-lswscale \
-lliveMedia \
-lgroupsock \
-lBasicUsageEnvironment \
-lUsageEnvironment \
-lpthread \
-lm
SRC=\
MyDeviceSource.cpp \
AlloServer.c \
serverUni.cpp \
H264VideoOnDemandServerMediaSubsession.cpp
all: clean
g++ -O2 -o AlloServer -g $(EXTRA_FLAGS) $(SRC) $(LIBS) $(INCLUDE)
pedantic: clean
g++ -pedantic -o AlloServer -g $(EXTRA_FLAGS) $(SRC) $(LIBS) $(INCLUDE)
clean:
rm -rf AlloServer AlloServer.dSYM