-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
executable file
·92 lines (52 loc) · 2.45 KB
/
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#---------------Final Target----------------#
all: ran mme hss sgw pgw sink
#-------------------------------------------#
#-----------------Variables-----------------#
G++ = g++ -std=c++0x -std=gnu++0x -ggdb
RAN_H = utils.h packet.h client.h ue.h enodeb.h
RAN_CPP = utils.cpp packet.cpp client.cpp ue.cpp enodeb.cpp
MME_H = utils.h packet.h thread_pool.h server.h client.h mme.h
MME_CPP = utils.cpp packet.cpp thread_pool.cpp server.cpp client.cpp mme.cpp
HSS_H = utils.h packet.h thread_pool.h server.h db_mysql.h hss.h
HSS_CPP = utils.cpp packet.cpp thread_pool.cpp server.cpp db_mysql.cpp hss.cpp
SGW_H = utils.h packet.h thread_pool.h server.h client.h sgwc.h sgwu.h
SGW_CPP = utils.cpp packet.cpp thread_pool.cpp server.cpp client.cpp sgwc.cpp sgwu.cpp
PGW_H = utils.h packet.h thread_pool.h server.h client.h raw_socket.h pgwc.h pgwc_monitor.h pgwu.h
PGW_CPP = utils.cpp packet.cpp thread_pool.cpp server.cpp client.cpp raw_socket.cpp pgwc.cpp pgwc_monitor.cpp pgwu.cpp
SINK_H = utils.h packet.h thread_pool.h server.h client.h sink_monitor.h
SINK_CPP = utils.cpp packet.cpp thread_pool.cpp server.cpp client.cpp sink_monitor.cpp
TAGS = -w -o
#-------------------------------------------#
#---------Prerequisites and Recipes---------#
RAN_P = ran.h ran.cpp $(RAN_H) $(RAN_CPP)
RAN_R = $(G++) ran.cpp $(TAGS) ran $(RAN_CPP) -lpthread
MME_P = mme_server.h mme_server.cpp $(MME_H) $(MME_CPP)
MME_R = $(G++) mme_server.cpp $(TAGS) mme $(MME_CPP) -lpthread
HSS_P = hss_server.h hss_server.cpp $(HSS_H) $(HSS_CPP)
HSS_R = $(G++) hss_server.cpp $(TAGS) hss $(HSS_CPP) `mysql_config --cflags --libs`
SGW_P = sgw_server.h sgw_server.cpp $(SGW_H) $(SGW_CPP)
SGW_R = $(G++) sgw_server.cpp $(TAGS) sgw $(SGW_CPP) -lpthread
PGW_P = pgw_server.h pgw_server.cpp $(PGW_H) $(PGW_CPP)
PGW_R = $(G++) pgw_server.cpp $(TAGS) pgw $(PGW_CPP) -lpthread
SINK_P = sink_server.h sink_server.cpp $(SINK_H) $(SINK_CPP)
SINK_R = $(G++) sink_server.cpp $(TAGS) sink $(SINK_CPP) -lpthread
#-------------------------------------------#
#---------------Make Statements-------------#
ran: $(RAN_P)
$(RAN_R)
mme: $(MME_P)
$(MME_R)
hss: $(HSS_P)
$(HSS_R)
sgw: $(SGW_P)
$(SGW_R)
pgw: $(PGW_P)
$(PGW_R)
sink: $(SINK_P)
$(SINK_R)
clean:
rm -f ran mme hss sgw pgw tem *~
#-------------------------------------------#
#----------Special Commands-----------------#
# make -k (To keep going even after encountering errors in making a former target)
#-------------------------------------------#