summaryrefslogtreecommitdiff
path: root/anyrtpproxy/Makefile
blob: 6f13a900a526e99cf676a337fdb20039f4836c80 (plain) (blame)
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
C = gcc
CFLAGS = -g -Wall
CFLAGS += -DSOCKETS_NAMESPACE=sockets
CFLAGS += -DSOCKETS_NAMESPACE_STR='"sockets"'
C++ = g++
CCFLAGS = -g -Wall
CCFLAGS += -DSOCKETS_NAMESPACE=sockets
CCFLAGS += -DSOCKETS_NAMESPACE_STR='"sockets"'
LD = g++
LDFLAGS = -g -Wall -O2 -lpthread -lssl -lboost_serialization

OBJS = anyrtpproxy.o \
       ../signalController.o \
       ../PracticalSocket.o \
       ../log.o \
       ../buffer.o \
       ../rtpSessionTable.o \
       ../rtpSession.o \
       connectionList.o \
       ../syncSocketHandler.o \
       ../syncClientSocket.o \
       ../syncQueue.o \
       ../syncSocket.o \
       ../seqWindow.o \
       ../connectionParam.o \
       ../routingTable.o \
       ../syncBuffer.o \
       ../syncCommand.o \
       ../syncRouteCommand.o \
       ../syncRtpCommand.o \
       ../syncConnectionCommand.o \
       ../networkAddress.o \
       ../networkPrefix.o \
       ../Sockets/libSockets.a \
       options.o

EXECUTABLE = anyrtpproxy

all: $(EXECUTABLE)

anyrtpproxy: $(OBJS)
	$(LD) $(OBJS) -o $@ $(LDFLAGS)

options.o: options.cpp options.h
	$(C++) $(CCFLAGS) $< -c

connectionList.o: connectionList.cpp connectionList.h
	$(C++) $(CCFLAGS) $< -c

anyrtpproxy.o: anyrtpproxy.cpp
	$(C++) $(CCFLAGS) $< -c

clean:
	rm -f *.o
	rm -f $(EXECUTABLE)