Makefile.in
上传用户:hzie11
上传日期:2013-10-07
资源大小:1487k
文件大小:19k
源码类别:

网络

开发平台:

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