473,395 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to solve the error "nothing to be done for all"

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

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Erland | last post by:
Hi all, I have made an ASP.NET 1.1 application on windows 2000 advanced server. In the application, i have saved the file using the following code string str; str="this is my data";...
1
by: rocksoft | last post by:
Hi, i got error "class not registered" when i try to create web setup and deployment project to my web application. i'm used Asp.net and c# to my application, i created web setup and deployment...
5
by: mickey22 | last post by:
Hi, I am getting some errors in building my project I tried to build a C++ file say abc.cpp and I have put the all the directories to include necessary library files and header files..But I...
0
by: winbala | last post by:
Hi, I am having problem creating new project using VS.Net 2003. Whenever I am trying to create new project (any type) it shows error message "Error writing the project file. Error loading...
1
by: sana krishna | last post by:
Hai, Pls anyone help me........................... I am using ASP.NET(C#). I want to display the data in a gridview and make the gridview to become editable and insert and delete. But i can't...
5
by: despairingFreshman | last post by:
I've got the Warning : Microsoft.Performance : The 'this' parameter of '....' is never used.Mark the member as static or use this in the method body or at least one prperty accessor, if appropriate....
0
by: dbphydb | last post by:
Hi, The below code is doing the following 1. Reading the branch name and the destination from a txt file 2. Parsing thru HTML pages Basically, i want to deploy the build of the branch (supplied...
5
by: romiverma | last post by:
hi, i have used sql2000 stored procedure with 2 date parameters to create crystal report 8.5. when i am sending date parameters from vb6 and calling the report, its giving error "the specified value...
1
by: switchof | last post by:
I received the error 3211: database engine could not lock table TF_Classification as it's been used by another person or process on the line bolded in the below code: tblWM.Fields.Append fldWM I...
1
by: bellr120 | last post by:
I am getting an error in the following code. The error message is "The ConnectionString property has not been initialized." How can I resolve this? Protected Sub Button1_Click(ByVal sender As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.