Makefile.in
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:19k
源码类别:

通讯编程

开发平台:

Visual C++

  1. #  Copyright (c) 1994, 1995, 1996
  2. #  The Regents of the University of California.  All rights reserved.
  3. #
  4. #  Redistribution and use in source and binary forms, with or without
  5. #  modification, are permitted provided that: (1) source code distributions
  6. #  retain the above copyright notice and this paragraph in its entirety, (2)
  7. #  distributions including binary code include the above copyright notice and
  8. #  this paragraph in its entirety in the documentation or other materials
  9. #  provided with the distribution, and (3) all advertising materials mentioning
  10. #  features or use of this software display the following acknowledgement:
  11. #  ``This product includes software developed by the University of California,
  12. #  Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
  13. #  the University nor the names of its contributors may be used to endorse
  14. #  or promote products derived from this software without specific prior
  15. #  written permission.
  16. #  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  17. #  WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  18. #  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  19. #
  20. # @(#) $Header: 2002/10/09 15:34:11
  21. #
  22. # Various configurable paths (remember to edit Makefile.in, not Makefile)
  23. #
  24. # Top level hierarchy
  25. prefix = @prefix@
  26. # Pathname of directory to install the binary
  27. BINDEST = @prefix@/bin
  28. # Pathname of directory to install the man page
  29. MANDEST = @prefix@/man
  30. BLANK = # make a blank space.  DO NOT add anything to this line
  31. # The following will be redefined under Windows (see WIN32 lable below)
  32. CC = @CC@
  33. CPP = @CXX@
  34. LINK = $(CPP)
  35. LINK_SHLIB = @SHLIB_LD@
  36. MKDEP = ./conf/mkdep
  37. TCLSH = @V_TCLSH@
  38. TCL2C = @V_TCL2CPP@
  39. AR = ar rc $(BLANK)
  40. RANLIB = @V_RANLIB@
  41. INSTALL = @INSTALL@
  42. LN = ln
  43. TEST = test
  44. RM = rm -f
  45. MV      = mv
  46. PERL = @PERL@
  47. # for diffusion
  48. #DIFF_INCLUDES = "./diffusion3/main ./diffusion3/lib ./diffusion3/nr ./diffusion3/ns"
  49. CCOPT = @V_CCOPT@ 
  50. STATIC = @V_STATIC@
  51. #LDFLAGS = $(STATIC)
  52. LDFLAGS = @LDFLAGS@ 
  53. LDOUT = -o $(BLANK)
  54. DEFINE = -DTCP_DELAY_BIND_ALL -DNO_TK @V_DEFINE@ @V_DEFINES@ @DEFS@ -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=@CPP_NAMESPACE@ -DUSE_SINGLE_ADDRESS_SPACE -Drng_test
  55. INCLUDES = 
  56. -I. @V_INCLUDE_X11@ 
  57. -I. 
  58. @V_INCLUDES@ 
  59. -I./tcp -I./sctp -I./common -I./link -I./queue 
  60. -I./adc -I./apps -I./mac -I./mobile -I./trace 
  61. -I./routing -I./tools -I./classifier -I./mcast 
  62. -I./diffusion3/lib/main -I./diffusion3/lib 
  63. -I./diffusion3/lib/nr -I./diffusion3/ns 
  64. -I./diffusion3/filter_core -I./asim/ -I./qs 
  65. -I./diffserv -I./satellite 
  66. -I./wpan
  67. LIB = 
  68. @V_LIBS@ 
  69. @V_LIB_X11@ 
  70. @V_LIB@ 
  71. -lm @LIBS@
  72. # -L@libdir@ 
  73. CFLAGS += $(CCOPT) $(DEFINE) 
  74. # Explicitly define compilation rules since SunOS 4's make doesn't like gcc.
  75. # Also, gcc does not remove the .o before forking 'as', which can be a
  76. # problem if you don't own the file but can write to the directory.
  77. .SUFFIXES: .cc # $(.SUFFIXES)
  78. .cc.o:
  79. @rm -f $@
  80. $(CPP) -c $(CFLAGS) $(INCLUDES) -o $@ $*.cc
  81. .c.o:
  82. @rm -f $@
  83. $(CC) -c $(CFLAGS) $(INCLUDES) -o $@ $*.c
  84. GEN_DIR = gen/
  85. LIB_DIR = lib/
  86. NS = ns
  87. NSLIB   = @NSLIB@
  88. NSX = nsx
  89. NSE = nse
  90. NSTK = nstk
  91. # To allow conf/makefile.win overwrite this macro
  92. # We will set these two macros to empty in conf/makefile.win since VC6.0
  93. # does not seem to support the STL in gcc 2.8 and up. 
  94. OBJ_STL = diffusion3/lib/nr/nr.o diffusion3/lib/dr.o 
  95. diffusion3/filters/diffusion/one_phase_pull.o 
  96. diffusion3/filters/diffusion/two_phase_pull.o 
  97. diffusion3/lib/diffapp.o 
  98. diffusion3/ns/diffagent.o diffusion3/ns/diffrtg.o 
  99. diffusion3/ns/difftimer.o 
  100. diffusion3/filter_core/filter_core.o 
  101. diffusion3/filter_core/iolog.o 
  102. diffusion3/filter_core/iostats.o 
  103. diffusion3/lib/main/attrs.o 
  104. diffusion3/lib/main/events.o 
  105. diffusion3/lib/main/iodev.o 
  106. diffusion3/lib/main/iohook.o 
  107. diffusion3/lib/main/timers.o 
  108. diffusion3/lib/main/message.o 
  109. diffusion3/lib/main/tools.o 
  110. diffusion3/apps/gear_examples/gear_common.o 
  111. diffusion3/apps/gear_examples/gear_receiver.o 
  112. diffusion3/apps/gear_examples/gear_sender.o 
  113. diffusion3/apps/rmst_examples/rmst_sink.o 
  114. diffusion3/apps/rmst_examples/rmst_source.o 
  115. diffusion3/apps/ping/1pp_ping_sender.o 
  116. diffusion3/apps/ping/1pp_ping_receiver.o 
  117. diffusion3/apps/ping/2pp_ping_sender.o 
  118. diffusion3/apps/ping/2pp_ping_receiver.o 
  119. diffusion3/apps/ping/ping_common.o 
  120. diffusion3/apps/ping/push_receiver.o 
  121. diffusion3/apps/ping/push_sender.o 
  122. diffusion3/filters/gear/gear_attr.o 
  123. diffusion3/filters/gear/gear.o 
  124. diffusion3/filters/gear/gear_tools.o 
  125. diffusion3/filters/misc/log.o 
  126. diffusion3/filters/misc/srcrt.o 
  127. diffusion3/filters/misc/tag.o 
  128. diffusion3/filters/rmst/rmst.o 
  129. diffusion3/filters/rmst/rmst_filter.o 
  130. delaybox/delaybox.o 
  131. packmime/packmime_HTTP.o packmime/packmime_HTTP_rng.o 
  132. packmime/packmime_OL.o packmime/packmime_OL_ranvar.o
  133. packmime/packmime_ranvar.o
  134. NS_TCL_LIB_STL = tcl/lib/ns-diffusion.tcl 
  135. tcl/delaybox/delaybox.tcl 
  136. tcl/packmime/packmime.tcl
  137. # WIN32: uncomment the following line to include specific make for VC++
  138. # !include <conf/makefile.win>
  139. OBJ_CC = 
  140. tools/random.o tools/rng.o tools/ranvar.o common/misc.o common/timer-handler.o 
  141. common/scheduler.o common/object.o common/packet.o 
  142. common/ip.o routing/route.o common/connector.o common/ttl.o 
  143. trace/trace.o trace/trace-ip.o 
  144. classifier/classifier.o classifier/classifier-addr.o 
  145. classifier/classifier-hash.o 
  146. classifier/classifier-virtual.o 
  147. classifier/classifier-mcast.o 
  148. classifier/classifier-bst.o 
  149. classifier/classifier-mpath.o mcast/replicator.o 
  150. classifier/classifier-mac.o 
  151. classifier/classifier-qs.o 
  152. classifier/classifier-port.o src_rtg/classifier-sr.o 
  153.         src_rtg/sragent.o src_rtg/hdr_src.o adc/ump.o 
  154. qs/qsagent.o qs/hdr_qs.o 
  155. apps/app.o apps/telnet.o tcp/tcplib-telnet.o 
  156. tools/trafgen.o trace/traffictrace.o tools/pareto.o 
  157. tools/expoo.o tools/cbr_traffic.o 
  158. adc/tbf.o adc/resv.o adc/sa.o tcp/saack.o 
  159. tools/measuremod.o adc/estimator.o adc/adc.o adc/ms-adc.o 
  160. adc/timewindow-est.o adc/acto-adc.o 
  161.         adc/pointsample-est.o adc/salink.o adc/actp-adc.o 
  162. adc/hb-adc.o adc/expavg-est.o
  163. adc/param-adc.o adc/null-estimator.o 
  164. adc/adaptive-receiver.o apps/vatrcvr.o adc/consrcvr.o 
  165. common/agent.o common/message.o apps/udp.o 
  166. common/session-rtp.o apps/rtp.o tcp/rtcp.o 
  167. common/ivs.o 
  168. common/messpass.o common/tp.o common/tpm.o apps/worm.o 
  169. tcp/tcp.o tcp/tcp-sink.o tcp/tcp-reno.o 
  170. tcp/tcp-newreno.o 
  171. tcp/tcp-vegas.o tcp/tcp-rbp.o tcp/tcp-full.o tcp/rq.o 
  172. baytcp/tcp-full-bay.o baytcp/ftpc.o baytcp/ftps.o 
  173. tcp/scoreboard.o tcp/scoreboard-rq.o tcp/tcp-sack1.o tcp/tcp-fack.o 
  174. tcp/linux/tcp_naivereno.o
  175. tcp/linux/src/tcp_cong.o
  176. tcp/linux/src/tcp_highspeed.o tcp/linux/src/tcp_bic.o tcp/linux/src/tcp_htcp.o tcp/linux/src/tcp_scalable.o tcp/linux/src/tcp_cubic.o
  177. tcp/linux/src/tcp_westwood.o tcp/linux/src/tcp_vegas.o tcp/linux/src/tcp_hybla.o
  178. tcp/linux/src/tcp_illinois.o tcp/linux/src/tcp_yeah.o 
  179. tcp/linux/src/tcp_veno.o tcp/linux/src/tcp_compound.o tcp/linux/src/tcp_lp.o
  180. tcp/scoreboard1.o tcp/tcp-linux.o tcp/linux/ns-linux-util.o tcp/linux/ns-linux-c.o tcp/linux/ns-linux-param.o
  181. tcp/tcp-asym.o tcp/tcp-asym-sink.o tcp/tcp-fs.o 
  182. tcp/tcp-asym-fs.o 
  183. tcp/tcp-int.o tcp/chost.o tcp/tcp-session.o 
  184. tcp/nilist.o 
  185. sctp/sctp.o apps/sctp_app1.o
  186. sctp/sctp-timestamp.o sctp/sctp-hbAfterRto.o 
  187. sctp/sctp-multipleFastRtx.o sctp/sctp-mfrHbAfterRto.o 
  188. sctp/sctp-mfrTimestamp.o 
  189. sctp/sctp-cmt.o 
  190. sctp/sctpDebug.o 
  191. tools/integrator.o tools/queue-monitor.o 
  192. tools/flowmon.o tools/loss-monitor.o 
  193. queue/queue.o queue/drop-tail.o 
  194. adc/simple-intserv-sched.o queue/red.o 
  195. queue/semantic-packetqueue.o queue/semantic-red.o 
  196. tcp/ack-recons.o 
  197. queue/sfq.o queue/fq.o queue/drr.o queue/srr.o queue/cbq.o 
  198. queue/jobs.o queue/marker.o queue/demarker.o 
  199. link/hackloss.o queue/errmodel.o queue/fec.o
  200. link/delay.o tcp/snoop.o 
  201. gaf/gaf.o 
  202. link/dynalink.o routing/rtProtoDV.o common/net-interface.o 
  203. mcast/ctrMcast.o mcast/mcast_ctrl.o mcast/srm.o 
  204. common/sessionhelper.o queue/delaymodel.o 
  205. mcast/srm-ssm.o mcast/srm-topo.o 
  206. routing/alloc-address.o routing/address.o 
  207. $(LIB_DIR)int.Vec.o $(LIB_DIR)int.RVec.o 
  208. $(LIB_DIR)dmalloc_support.o 
  209. webcache/http.o webcache/tcp-simple.o webcache/pagepool.o 
  210. webcache/inval-agent.o webcache/tcpapp.o webcache/http-aux.o 
  211. webcache/mcache.o webcache/webtraf.o 
  212. webcache/webserver.o 
  213. webcache/logweb.o 
  214. empweb/empweb.o 
  215. empweb/empftp.o 
  216. realaudio/realaudio.o 
  217. mac/lanRouter.o classifier/filter.o 
  218. common/pkt-counter.o 
  219. common/Decapsulator.o common/Encapsulator.o 
  220. common/encap.o 
  221. mac/channel.o mac/mac.o mac/ll.o mac/mac-802_11.o 
  222. mac/mac-802_11Ext.o 
  223. mac/mac-802_3.o mac/mac-tdma.o mac/smac.o 
  224. mobile/mip.o mobile/mip-reg.o mobile/gridkeeper.o 
  225. mobile/propagation.o mobile/tworayground.o 
  226. mobile/nakagami.o 
  227. mobile/antenna.o mobile/omni-antenna.o 
  228. mobile/shadowing.o mobile/shadowing-vis.o mobile/dumb-agent.o 
  229. common/bi-connector.o common/node.o 
  230. common/mobilenode.o 
  231. mac/arp.o mobile/god.o mobile/dem.o 
  232. mobile/topography.o mobile/modulation.o 
  233. queue/priqueue.o queue/dsr-priqueue.o 
  234. mac/phy.o mac/wired-phy.o mac/wireless-phy.o 
  235. mac/wireless-phyExt.o 
  236. mac/mac-timers.o trace/cmu-trace.o mac/varp.o 
  237. mac/mac-simple.o 
  238. satellite/sat-hdlc.o 
  239. dsdv/dsdv.o dsdv/rtable.o queue/rtqueue.o 
  240. routing/rttable.o 
  241. imep/imep.o imep/dest_queue.o imep/imep_api.o 
  242. imep/imep_rt.o imep/rxmit_queue.o imep/imep_timers.o 
  243. imep/imep_util.o imep/imep_io.o 
  244. tora/tora.o tora/tora_api.o tora/tora_dest.o 
  245. tora/tora_io.o tora/tora_logs.o tora/tora_neighbor.o 
  246. dsr/dsragent.o dsr/hdr_sr.o dsr/mobicache.o dsr/path.o 
  247. dsr/requesttable.o dsr/routecache.o dsr/add_sr.o 
  248. dsr/dsr_proto.o dsr/flowstruct.o dsr/linkcache.o 
  249. dsr/simplecache.o dsr/sr_forwarder.o 
  250. aodv/aodv_logs.o aodv/aodv.o 
  251. aodv/aodv_rtable.o aodv/aodv_rqueue.o 
  252. common/ns-process.o 
  253. satellite/satgeometry.o satellite/sathandoff.o 
  254. satellite/satlink.o satellite/satnode.o 
  255. satellite/satposition.o satellite/satroute.o 
  256. satellite/sattrace.o 
  257. rap/raplist.o rap/rap.o rap/media-app.o rap/utilities.o 
  258. common/fsm.o tcp/tcp-abs.o 
  259. diffusion/diffusion.o diffusion/diff_rate.o diffusion/diff_prob.o 
  260. diffusion/diff_sink.o diffusion/flooding.o diffusion/omni_mcast.o 
  261. diffusion/hash_table.o diffusion/routing_table.o diffusion/iflist.o 
  262. tcp/tfrc.o tcp/tfrc-sink.o mobile/energy-model.o apps/ping.o tcp/tcp-rfc793edu.o 
  263. queue/rio.o queue/semantic-rio.o tcp/tcp-sack-rh.o tcp/scoreboard-rh.o 
  264. plm/loss-monitor-plm.o plm/cbr-traffic-PP.o 
  265. linkstate/hdr-ls.o 
  266. mpls/classifier-addr-mpls.o mpls/ldp.o mpls/mpls-module.o 
  267. routing/rtmodule.o classifier/classifier-hier.o 
  268. routing/addr-params.o 
  269.          nix/hdr_nv.o nix/classifier-nix.o 
  270.          nix/nixnode.o 
  271.          routealgo/rnode.o 
  272.          routealgo/bfs.o 
  273.          routealgo/rbitmap.o 
  274.          routealgo/rlookup.o 
  275.          routealgo/routealgo.o 
  276.          nix/nixvec.o 
  277. nix/nixroute.o 
  278. diffserv/dsred.o diffserv/dsredq.o 
  279. diffserv/dsEdge.o diffserv/dsCore.o 
  280. diffserv/dsPolicy.o diffserv/ew.o diffserv/dewp.o 
  281. queue/red-pd.o queue/pi.o queue/vq.o queue/rem.o 
  282. queue/gk.o 
  283. pushback/rate-limit.o pushback/rate-limit-strategy.o 
  284. pushback/ident-tree.o pushback/agg-spec.o 
  285. pushback/logging-data-struct.o 
  286. pushback/rate-estimator.o 
  287. pushback/pushback-queue.o pushback/pushback.o 
  288. common/parentnode.o trace/basetrace.o 
  289. common/simulator.o asim/asim.o 
  290. common/scheduler-map.o common/splay-scheduler.o 
  291. linkstate/ls.o linkstate/rtProtoLS.o 
  292. pgm/classifier-pgm.o pgm/pgm-agent.o pgm/pgm-sender.o 
  293. pgm/pgm-receiver.o mcast/rcvbuf.o 
  294. mcast/classifier-lms.o mcast/lms-agent.o mcast/lms-receiver.o 
  295. mcast/lms-sender.o 
  296. queue/delayer.o 
  297. xcp/xcpq.o xcp/xcp.o xcp/xcp-end-sys.o 
  298. wpan/p802_15_4csmaca.o wpan/p802_15_4fail.o 
  299. wpan/p802_15_4hlist.o wpan/p802_15_4mac.o 
  300. wpan/p802_15_4nam.o wpan/p802_15_4phy.o 
  301. wpan/p802_15_4sscs.o wpan/p802_15_4timer.o 
  302. wpan/p802_15_4trace.o wpan/p802_15_4transac.o 
  303. apps/pbc.o 
  304. @V_STLOBJ@
  305. # don't allow comments to follow continuation lines
  306. #  mac-csma.o mac-multihop.o
  307. # sensor-nets/landmark.o mac-simple-wireless.o 
  308. # sensor-nets/tags.o sensor-nets/sensor-query.o 
  309. # sensor-nets/flood-agent.o 
  310. # what was here before is now in emulate/
  311. OBJ_C =
  312. OBJ_COMPAT = $(OBJ_GETOPT) common/win32.o
  313. #XXX compat/win32x.o compat/tkConsole.o
  314. OBJ_EMULATE_CC = 
  315. emulate/net-ip.o 
  316. emulate/net.o 
  317. emulate/tap.o 
  318. emulate/ether.o 
  319. emulate/internet.o 
  320. emulate/ping_responder.o 
  321. emulate/arp.o 
  322. emulate/icmp.o 
  323. emulate/net-pcap.o 
  324. emulate/nat.o  
  325. emulate/iptap.o 
  326. emulate/tcptap.o
  327. OBJ_EMULATE_C = 
  328. emulate/inet.o
  329. OBJ_GEN = $(GEN_DIR)version.o $(GEN_DIR)ns_tcl.o $(GEN_DIR)ptypes.o
  330. SRC = $(OBJ_C:.o=.c) $(OBJ_CC:.o=.cc) 
  331. $(OBJ_EMULATE_C:.o=.c) $(OBJ_EMULATE_CC:.o=.cc) 
  332. common/tclAppInit.cc common/tkAppInit.cc 
  333. OBJ = $(OBJ_C) $(OBJ_CC) $(OBJ_GEN) $(OBJ_COMPAT)
  334. CLEANFILES = ns nse nsx ns.dyn $(OBJ) $(OBJ_EMULATE_CC) 
  335. $(OBJ_EMULATE_C) common/tclAppInit.o 
  336. common/tkAppInit.o nstk 
  337. $(GEN_DIR)* $(NS).core core core.$(NS) core.$(NSX) core.$(NSE) 
  338. common/ptypes2tcl common/ptypes2tcl.o 
  339. SUBDIRS=
  340. indep-utils/cmu-scen-gen/setdest 
  341. indep-utils/webtrace-conv/dec 
  342. indep-utils/webtrace-conv/epa 
  343. indep-utils/webtrace-conv/nlanr 
  344. indep-utils/webtrace-conv/ucb
  345. BUILD_NSE = @build_nse@
  346. all: $(NS) $(BUILD_NSE) $(NSTK) all-recursive Makefile
  347. all-recursive:
  348. for i in $(SUBDIRS); do ( cd $$i; $(MAKE) all; ) done
  349. ifeq ($(NSLIB),libns.dll)
  350. # This is for cygwin
  351. NS_CPPFLAGS = -DNSLIBNAME="$(NSLIB)" 
  352. NS_LIBS =  @DL_LIBS@
  353. $(NSLIB): $(OBJ) common/tclAppInit.o 
  354. $(LINK) -shared $(LDFLAGS) 
  355. $(LDOUT)$@  
  356. -Wl,--export-all-symbols 
  357. -Wl,--enable-auto-import 
  358. -Wl,--out-implib=$@.a 
  359. -Wl,--whole-archive $^ 
  360. -Wl,--no-whole-archive @V_IMPORT_LIBS@ 
  361. $(NS): $(NSLIB) common/main-modular.cc 
  362. $(LINK) $(NS_CPPFLAGS) $(LDFLAGS) $(LDOUT)$@ common/main-modular.cc $(NS_LIBS)
  363. else 
  364. # default for all systems but cygwin
  365. $(NS): $(OBJ) common/tclAppInit.o common/main-monolithic.o
  366. $(LINK) $(LDFLAGS) $(LDOUT)$@ $^ $(LIB)
  367. endif 
  368. Makefile: Makefile.in
  369. @echo "Makefile.in is newer than Makefile."
  370. @echo "You need to re-run configure."
  371. false
  372. $(NSE): $(OBJ) common/tclAppInit.o common/main-monolithic.o $(OBJ_EMULATE_CC) $(OBJ_EMULATE_C)
  373. $(LINK) $(LDFLAGS) $(LDOUT)$@ $^ $(LIB) 
  374. $(NSTK): $(OBJ) common/tkAppInit.o 
  375. $(LINK) $(LDFLAGS) $(LDOUT)$@ $^ $(LIB)
  376. ns.dyn: $(OBJ) common/tclAppInit.o common/main-monolithic.o 
  377. $(LINK) $(LDFLAGS) -o $@ $^ $(LIB)
  378. PURIFY = purify -cache-dir=/tmp
  379. ns-pure: $(OBJ) common/tclAppInit.o common/main-monolithic.o 
  380. $(PURIFY) $(LINK) $(LDFLAGS) -o $@ $^ $(LIB)
  381. NS_TCL_LIB = 
  382. tcl/lib/ns-compat.tcl 
  383. tcl/lib/ns-default.tcl 
  384. tcl/lib/ns-errmodel.tcl 
  385. tcl/lib/ns-lib.tcl 
  386. tcl/lib/ns-link.tcl 
  387. tcl/lib/ns-mobilenode.tcl 
  388. tcl/lib/ns-sat.tcl 
  389. tcl/lib/ns-cmutrace.tcl 
  390. tcl/lib/ns-node.tcl 
  391. tcl/lib/ns-rtmodule.tcl 
  392. tcl/lib/ns-hiernode.tcl 
  393. tcl/lib/ns-packet.tcl 
  394. tcl/lib/ns-queue.tcl 
  395. tcl/lib/ns-source.tcl 
  396. tcl/lib/ns-nam.tcl 
  397. tcl/lib/ns-trace.tcl 
  398. tcl/lib/ns-agent.tcl 
  399. tcl/lib/ns-random.tcl 
  400. tcl/lib/ns-namsupp.tcl 
  401. tcl/lib/ns-address.tcl 
  402. tcl/lib/ns-intserv.tcl 
  403. tcl/lib/ns-autoconf.tcl 
  404. tcl/rtp/session-rtp.tcl 
  405. tcl/lib/ns-mip.tcl 
  406. tcl/rtglib/dynamics.tcl 
  407. tcl/rtglib/route-proto.tcl 
  408. tcl/rtglib/algo-route-proto.tcl 
  409. tcl/rtglib/ns-rtProtoLS.tcl 
  410.         tcl/interface/ns-iface.tcl 
  411. tcl/mcast/BST.tcl 
  412.         tcl/mcast/ns-mcast.tcl 
  413.         tcl/mcast/McastProto.tcl 
  414.         tcl/mcast/DM.tcl 
  415. tcl/mcast/srm.tcl 
  416. tcl/mcast/srm-adaptive.tcl 
  417. tcl/mcast/srm-ssm.tcl 
  418. tcl/mcast/timer.tcl 
  419. tcl/mcast/McastMonitor.tcl 
  420. tcl/mobility/dsdv.tcl 
  421. tcl/mobility/dsr.tcl 
  422.         tcl/ctr-mcast/CtrMcast.tcl 
  423.         tcl/ctr-mcast/CtrMcastComp.tcl 
  424.         tcl/ctr-mcast/CtrRPComp.tcl 
  425. tcl/rlm/rlm.tcl 
  426. tcl/rlm/rlm-ns.tcl 
  427. tcl/session/session.tcl 
  428. tcl/lib/ns-route.tcl 
  429. tcl/emulate/ns-emulate.tcl 
  430. tcl/lan/vlan.tcl 
  431. tcl/lan/abslan.tcl 
  432. tcl/lan/ns-ll.tcl 
  433. tcl/lan/ns-mac.tcl 
  434. tcl/webcache/http-agent.tcl 
  435. tcl/webcache/http-server.tcl 
  436. tcl/webcache/http-cache.tcl 
  437. tcl/webcache/http-mcache.tcl 
  438. tcl/webcache/webtraf.tcl 
  439. tcl/webcache/empweb.tcl 
  440. tcl/webcache/empftp.tcl 
  441. tcl/plm/plm.tcl 
  442. tcl/plm/plm-ns.tcl 
  443. tcl/plm/plm-topo.tcl 
  444. tcl/mpls/ns-mpls-classifier.tcl 
  445. tcl/mpls/ns-mpls-ldpagent.tcl 
  446. tcl/mpls/ns-mpls-node.tcl 
  447. tcl/mpls/ns-mpls-simulator.tcl 
  448. tcl/lib/ns-pushback.tcl 
  449. tcl/lib/ns-srcrt.tcl 
  450. tcl/mcast/ns-lms.tcl 
  451. tcl/lib/ns-qsnode.tcl 
  452. @V_NS_TCL_LIB_STL@
  453. $(GEN_DIR)ns_tcl.cc: $(NS_TCL_LIB)
  454. $(TCLSH) bin/tcl-expand.tcl tcl/lib/ns-lib.tcl @V_NS_TCL_LIB_STL@ | $(TCL2C) et_ns_lib > $@
  455. $(GEN_DIR)version.c: VERSION
  456. $(RM) $@
  457. $(TCLSH) bin/string2c.tcl version_string < VERSION > $@
  458. $(GEN_DIR)ptypes.cc: common/ptypes2tcl common/packet.h
  459. ./common/ptypes2tcl > $@
  460. common/ptypes2tcl: common/ptypes2tcl.o
  461. $(LINK) $(LDFLAGS) $(LDOUT)$@ common/ptypes2tcl.o
  462. common/ptypes2tcl.o: common/ptypes2tcl.cc common/packet.h
  463. dirs:
  464. for d in $(DESTDIR)$(MANDEST)/man1; do 
  465. if [ ! -d $$d ]; then 
  466. mkdir -p $$d ;
  467. fi;
  468. done
  469. install: dirs force install-ns install-man
  470. install-ns: force
  471. $(INSTALL) -m 755 ns $(DESTDIR)$(BINDEST)
  472. install-man: force
  473. $(INSTALL) -m 644 ns.1 $(DESTDIR)$(MANDEST)/man1
  474. install-recursive: force
  475. for i in $(SUBDIRS); do ( cd $$i; $(MAKE) install; ) done
  476. clean:
  477. $(RM) $(CLEANFILES)
  478. AUTOCONF_GEN = tcl/lib/ns-autoconf.tcl
  479. distclean: distclean-recursive
  480. $(RM) $(CLEANFILES) Makefile config.cache config.log config.status 
  481.     autoconf.h gnuc.h os-proto.h $(AUTOCONF_GEN); 
  482. $(MV) .configure .configure- ;
  483. echo "Moved .configure to .configure-"
  484. distclean-recursive:
  485. for i in $(SUBDIRS); do ( cd $$i; $(MAKE) clean; $(RM) Makefile; ) done
  486. tags: force
  487. ctags -wtd *.cc *.h webcache/*.cc webcache/*.h dsdv/*.cc dsdv/*.h 
  488. dsr/*.cc dsr/*.h webcache/*.cc webcache/*.h lib/*.cc lib/*.h 
  489. ../Tcl/*.cc ../Tcl/*.h 
  490. TAGS: force
  491. etags *.cc *.h webcache/*.cc webcache/*.h dsdv/*.cc dsdv/*.h 
  492. dsr/*.cc dsr/*.h webcache/*.cc webcache/*.h lib/*.cc lib/*.h 
  493. ../Tcl/*.cc ../Tcl/*.h
  494. tcl/lib/TAGS: force
  495. cd tcl/lib; 
  496. $(TCLSH) ../../bin/tcl-expand.tcl ns-lib.tcl | grep '^### tcl-expand.tcl: begin' | awk '{print $$5}' >.tcl_files; 
  497. etags --lang=none -r '/^[ t]*proc[ t]+([^ t]+)/1/' `cat .tcl_files`; 
  498. etags --append --lang=none -r '/^([A-Z][^ t]+)[ t]+(instproc|proc)[ t]+([^ t]+)[ t]+/1::3/' `cat .tcl_files`; 
  499. )
  500. depend: $(SRC)
  501. $(MKDEP) $(CFLAGS) $(INCLUDES) -- $(SRC) 2>&1 > /dev/null
  502. srctar:
  503. @cwd=`pwd` ; dir=`basename $$cwd` ; 
  504.     name=ns-`cat VERSION | tr A-Z a-z` ; 
  505.     tar=ns-src-`cat VERSION`.tar.gz ; 
  506.     list="" ; 
  507.     for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; 
  508.     echo 
  509.     "(rm -f $$tar; cd .. ; ln -s $$dir $$name)" ; 
  510.      (rm -f $$tar; cd .. ; ln -s $$dir $$name) ; 
  511.     echo 
  512.     "(cd .. ; tar cfhz $$tar [lots of files])" ; 
  513.      (cd .. ; tar cfhz - $$list) > $$tar ; 
  514.     echo 
  515.     "rm ../$$name; chmod 444 $$tar" ;  
  516.      rm ../$$name; chmod 444 $$tar
  517. force:
  518. test: force
  519. ./validate
  520. # Create makefile.vc for Win32 development by replacing:
  521. # "# !include ..."  ->  "!include ..."
  522. makefile.vc: Makefile.in
  523. $(PERL) bin/gen-vcmake.pl < Makefile.in > makefile.vc
  524. # $(PERL) -pe 's/^# (!include)/!include/o' < Makefile.in > makefile.vc