summaryrefslogtreecommitdiff
path: root/src/anyrtpproxy/Makefile
blob: 948a4c85df827fe20734ab27587280748415aeca (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
57
58
59
60
61
62
63
64
65
66
67
68
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 \
       commandHandler.o \
       portWindow.o \
       callIdQueue.o \
       options.o

EXECUTABLE = anyrtpproxy

all: $(EXECUTABLE)

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

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

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

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

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

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

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

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