-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
226 lines (196 loc) · 8.93 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
#
# OMNeT++/OMNEST Makefile for Simulation
#
# This file was generated with the command:
# opp_makemake -f --deep -O out -I../inet/src/linklayer/ieee80211/radio -I../inet/src/linklayer/ethernet -I../inet/src/networklayer/common -I../inet/src -I../inet/src/networklayer/icmpv6 -I../inet/src/world/obstacles -I../inet/src/networklayer/contract -I../inet/src/mobility -I../inet/src/networklayer/manetrouting/base -I../inet/src/networklayer/xmipv6 -I../inet/src/linklayer/ieee80211/mgmt -I../inet/src/linklayer/queue -I../inet/src/util -I../inet/src/transport/contract -I../inet/src/linklayer/radio/propagation -I../inet/src/linklayer/ieee80211/radio/errormodel -I../inet/src/world/powercontrol -I../inet/src/linklayer/radio -I../inet/src/util/headerserializers/tcp -I../inet/src/networklayer/ipv4 -I../inet/src/util/headerserializers/ipv4 -I../inet/src/base -I../inet/src/util/headerserializers -I../inet/src/world/radio -I../inet/src/linklayer/ieee80211/mac -I../inet/src/transport/sctp -I../inet/src/networklayer/ipv6 -I../inet/src/util/headerserializers/udp -I../inet/src/networklayer/ipv6tunneling -I../inet/src/battery/models -I../inet/src/applications/pingapp -I../inet/src/linklayer/contract -I../inet/src/util/headerserializers/sctp -I../inet/src/transport/tcp_common -I../inet/src/networklayer/arp -I../inet/src/transport/udp -I../inet/src/linklayer/ethernet/switch -L../inet/out/$(CONFIGNAME)/src -linet -DINET_IMPORT -KINET_PROJ=../inet
#
# Name of target to be created (-o option)
TARGET = Simulation$(EXE_SUFFIX)
# User interface (uncomment one) (-u option)
USERIF_LIBS = $(ALL_ENV_LIBS) # that is, $(TKENV_LIBS) $(CMDENV_LIBS)
#USERIF_LIBS = $(CMDENV_LIBS)
#USERIF_LIBS = $(TKENV_LIBS)
# C++ include paths (with -I)
INCLUDE_PATH = \
-I../inet/src/linklayer/ieee80211/radio \
-I../inet/src/linklayer/ethernet \
-I../inet/src/networklayer/common \
-I../inet/src \
-I../inet/src/networklayer/icmpv6 \
-I../inet/src/world/obstacles \
-I../inet/src/networklayer/contract \
-I../inet/src/mobility \
-I../inet/src/networklayer/manetrouting/base \
-I../inet/src/networklayer/xmipv6 \
-I../inet/src/linklayer/ieee80211/mgmt \
-I../inet/src/linklayer/queue \
-I../inet/src/util \
-I../inet/src/transport/contract \
-I../inet/src/linklayer/radio/propagation \
-I../inet/src/linklayer/ieee80211/radio/errormodel \
-I../inet/src/world/powercontrol \
-I../inet/src/linklayer/radio \
-I../inet/src/util/headerserializers/tcp \
-I../inet/src/networklayer/ipv4 \
-I../inet/src/util/headerserializers/ipv4 \
-I../inet/src/base \
-I../inet/src/util/headerserializers \
-I../inet/src/world/radio \
-I../inet/src/linklayer/ieee80211/mac \
-I../inet/src/transport/sctp \
-I../inet/src/networklayer/ipv6 \
-I../inet/src/util/headerserializers/udp \
-I../inet/src/networklayer/ipv6tunneling \
-I../inet/src/battery/models \
-I../inet/src/applications/pingapp \
-I../inet/src/linklayer/contract \
-I../inet/src/util/headerserializers/sctp \
-I../inet/src/transport/tcp_common \
-I../inet/src/networklayer/arp \
-I../inet/src/transport/udp \
-I../inet/src/linklayer/ethernet/switch \
-I. \
-Iresults
# Additional object and library files to link with
EXTRA_OBJS =
# Additional libraries (-L, -l options)
LIBS = -L../inet/out/$(CONFIGNAME)/src -linet
LIBS += -Wl,-rpath,`abspath ../inet/out/$(CONFIGNAME)/src`
# Output directory
PROJECT_OUTPUT_DIR = out
PROJECTRELATIVE_PATH =
O = $(PROJECT_OUTPUT_DIR)/$(CONFIGNAME)/$(PROJECTRELATIVE_PATH)
# Object files for local .cc and .msg files
OBJS = \
$O/DropTailPriorityQueue.o \
$O/PriorityCompare.o \
$O/PriorityFrameEncap.o \
$O/PriorityMACRelayUnitNP.o \
$O/PriorityMACRelayUnitNPAccessPoint.o \
$O/PriorityTrafficGenerator.o \
$O/PriorityEtherFrame_m.o
# Message files
MSGFILES = \
PriorityEtherFrame.msg
# Other makefile variables (-K)
INET_PROJ=../inet
#------------------------------------------------------------------------------
# Pull in OMNeT++ configuration (Makefile.inc or configuser.vc)
ifneq ("$(OMNETPP_CONFIGFILE)","")
CONFIGFILE = $(OMNETPP_CONFIGFILE)
else
ifneq ("$(OMNETPP_ROOT)","")
CONFIGFILE = $(OMNETPP_ROOT)/Makefile.inc
else
CONFIGFILE = $(shell opp_configfilepath)
endif
endif
ifeq ("$(wildcard $(CONFIGFILE))","")
$(error Config file '$(CONFIGFILE)' does not exist -- add the OMNeT++ bin directory to the path so that opp_configfilepath can be found, or set the OMNETPP_CONFIGFILE variable to point to Makefile.inc)
endif
include $(CONFIGFILE)
# Simulation kernel and user interface libraries
OMNETPP_LIB_SUBDIR = $(OMNETPP_LIB_DIR)/$(TOOLCHAIN_NAME)
OMNETPP_LIBS = -L"$(OMNETPP_LIB_SUBDIR)" -L"$(OMNETPP_LIB_DIR)" -loppmain$D $(USERIF_LIBS) $(KERNEL_LIBS) $(SYS_LIBS)
COPTS = $(CFLAGS) -DINET_IMPORT $(INCLUDE_PATH) -I$(OMNETPP_INCL_DIR)
MSGCOPTS = $(INCLUDE_PATH)
# we want to recompile everything if COPTS changes,
# so we store COPTS into $COPTS_FILE and have object
# files depend on it (except when "make depend" was called)
COPTS_FILE = $O/.last-copts
ifneq ($(MAKECMDGOALS),depend)
ifneq ("$(COPTS)","$(shell cat $(COPTS_FILE) 2>/dev/null || echo '')")
$(shell $(MKPATH) "$O" && echo "$(COPTS)" >$(COPTS_FILE))
endif
endif
#------------------------------------------------------------------------------
# User-supplied makefile fragment(s)
# >>>
# <<<
#------------------------------------------------------------------------------
# Main target
all: $O/$(TARGET)
$(Q)$(LN) $O/$(TARGET) .
$O/$(TARGET): $(OBJS) $(wildcard $(EXTRA_OBJS)) Makefile
@$(MKPATH) $O
@echo Creating executable: $@
$(Q)$(CXX) $(LDFLAGS) -o $O/$(TARGET) $(OBJS) $(EXTRA_OBJS) $(AS_NEEDED_OFF) $(WHOLE_ARCHIVE_ON) $(LIBS) $(WHOLE_ARCHIVE_OFF) $(OMNETPP_LIBS)
.PHONY: all clean cleanall depend msgheaders
.SUFFIXES: .cc
$O/%.o: %.cc $(COPTS_FILE)
@$(MKPATH) $(dir $@)
$(qecho) "$<"
$(Q)$(CXX) -c $(COPTS) -o $@ $<
%_m.cc %_m.h: %.msg
$(qecho) MSGC: $<
$(Q)$(MSGC) -s _m.cc $(MSGCOPTS) $?
msgheaders: $(MSGFILES:.msg=_m.h)
clean:
$(qecho) Cleaning...
$(Q)-rm -rf $O
$(Q)-rm -f Simulation Simulation.exe libSimulation.so libSimulation.a libSimulation.dll libSimulation.dylib
$(Q)-rm -f ./*_m.cc ./*_m.h
$(Q)-rm -f results/*_m.cc results/*_m.h
cleanall: clean
$(Q)-rm -rf $(PROJECT_OUTPUT_DIR)
depend:
$(qecho) Creating dependencies...
$(Q)$(MAKEDEPEND) $(INCLUDE_PATH) -f Makefile -P\$$O/ -- $(MSG_CC_FILES) ./*.cc results/*.cc
# DO NOT DELETE THIS LINE -- make depend depends on it.
$O/DropTailPriorityQueue.o: DropTailPriorityQueue.cc \
DropTailPriorityQueue.h \
PriorityCompare.h \
PriorityEtherFrame_m.h \
$(INET_PROJ)/src/base/INETDefs.h \
$(INET_PROJ)/src/base/IPassiveQueue.h \
$(INET_PROJ)/src/base/PassiveQueueBase.h \
$(INET_PROJ)/src/linklayer/contract/Ieee802Ctrl_m.h \
$(INET_PROJ)/src/linklayer/contract/MACAddress.h \
$(INET_PROJ)/src/linklayer/ethernet/EtherFrame_m.h \
$(INET_PROJ)/src/linklayer/ethernet/Ethernet.h \
$(INET_PROJ)/src/linklayer/queue/DropTailQueue.h
$O/PriorityCompare.o: PriorityCompare.cc \
PriorityCompare.h \
PriorityEtherFrame_m.h \
$(INET_PROJ)/src/base/INETDefs.h \
$(INET_PROJ)/src/linklayer/contract/Ieee802Ctrl_m.h \
$(INET_PROJ)/src/linklayer/contract/MACAddress.h \
$(INET_PROJ)/src/linklayer/ethernet/EtherFrame_m.h \
$(INET_PROJ)/src/linklayer/ethernet/Ethernet.h
$O/PriorityEtherFrame_m.o: PriorityEtherFrame_m.cc \
PriorityEtherFrame_m.h \
$(INET_PROJ)/src/base/INETDefs.h \
$(INET_PROJ)/src/linklayer/contract/Ieee802Ctrl_m.h \
$(INET_PROJ)/src/linklayer/contract/MACAddress.h \
$(INET_PROJ)/src/linklayer/ethernet/EtherFrame_m.h \
$(INET_PROJ)/src/linklayer/ethernet/Ethernet.h
$O/PriorityFrameEncap.o: PriorityFrameEncap.cc \
PriorityEtherFrame_m.h \
PriorityFrameEncap.h \
$(INET_PROJ)/src/base/INETDefs.h \
$(INET_PROJ)/src/linklayer/contract/Ieee802Ctrl_m.h \
$(INET_PROJ)/src/linklayer/contract/MACAddress.h \
$(INET_PROJ)/src/linklayer/ethernet/EtherFrame_m.h \
$(INET_PROJ)/src/linklayer/ethernet/Ethernet.h
$O/PriorityMACRelayUnitNP.o: PriorityMACRelayUnitNP.cc \
PriorityCompare.h \
PriorityMACRelayUnitNP.h \
$(INET_PROJ)/src/base/INETDefs.h \
$(INET_PROJ)/src/linklayer/contract/MACAddress.h \
$(INET_PROJ)/src/linklayer/ethernet/switch/MACRelayUnitBase.h \
$(INET_PROJ)/src/linklayer/ethernet/switch/MACRelayUnitNP.h
$O/PriorityMACRelayUnitNPAccessPoint.o: PriorityMACRelayUnitNPAccessPoint.cc \
PriorityMACRelayUnitNP.h \
PriorityMACRelayUnitNPAccessPoint.h \
$(INET_PROJ)/src/base/INETDefs.h \
$(INET_PROJ)/src/linklayer/contract/Ieee802Ctrl_m.h \
$(INET_PROJ)/src/linklayer/contract/MACAddress.h \
$(INET_PROJ)/src/linklayer/ethernet/EtherFrame_m.h \
$(INET_PROJ)/src/linklayer/ethernet/Ethernet.h \
$(INET_PROJ)/src/linklayer/ethernet/switch/MACRelayUnitBase.h \
$(INET_PROJ)/src/linklayer/ethernet/switch/MACRelayUnitNP.h
$O/PriorityTrafficGenerator.o: PriorityTrafficGenerator.cc \
PriorityTrafficGenerator.h \
$(INET_PROJ)/src/base/INETDefs.h \
$(INET_PROJ)/src/linklayer/contract/Ieee802Ctrl_m.h \
$(INET_PROJ)/src/linklayer/contract/MACAddress.h