📄 makefile
字号:
# Copyright (c) 1994, 1995, 1996# The Regents of the University of California. All rights reserved.## Redistribution and use in source and binary forms, with or without# modification, are permitted provided that: (1) source code distributions# retain the above copyright notice and this paragraph in its entirety, (2)# distributions including binary code include the above copyright notice and# this paragraph in its entirety in the documentation or other materials# provided with the distribution, and (3) all advertising materials mentioning# features or use of this software display the following acknowledgement:# ``This product includes software developed by the University of California,# Lawrence Berkeley Laboratory and its contributors.'' Neither the name of# the University nor the names of its contributors may be used to endorse# or promote products derived from this software without specific prior# written permission.# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.## @(#) $Header: /home/cr1/benjie/cvsroot/ns/ns-span/Makefile.in,v 1.1.1.1 2001/11/15 19:43:10 benjie Exp $ (LBL)## Various configurable paths (remember to edit Makefile.in, not Makefile)## Top level hierarchyprefix = /usr/local# Pathname of directory to install the binaryBINDEST = /usr/local/bin# Pathname of directory to install the man pageMANDEST = /usr/local/manCC = gccCPP = g++CCOPT = -gSTATIC = DEFINE = -DNO_TK -DUSE_SHM -DHAVE_LIBTCLCL1_0B10 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A6 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H \ -Dabort=abort -DSPAN=1 -DCLEAR=2 -DSPAN_CLEAR=3\ -DPROTOCOL=SPAN_CLEAR \ -DMONARCH # -DDSR_CACHE_STATS \# -DDEBUG=4 \# -DMEMDEBUG_SIMULATIONS \TCL2C = ../tclcl-1.0b10/tcl2c++INCLUDES = \ -I. -I./cmu -I./cmu/dsr -I./cmu/dsdv \ \ -I../tclcl-1.0b10 -I../otcl-1.0a6 -I../tk8.3.2/generic -I../tcl8.3.2/generic LIB = \ -L../tclcl-1.0b10 -ltclcl -L../otcl-1.0a6 -lotcl -L../tk8.3.2/unix -ltk8.3 -L../tcl8.3.2/unix -ltcl8.3 \ -L/usr/openwin/lib -lXext -lX11 \ -lnsl -ldl \ -lm INSTALL = /usr/bin/install -cMKDEP = makedependRANLIB = ranlib \BLANK = # make a blank space. DO NOT add anything to this lineAR = ar rc $(BLANK)LINK = $(CPP)LDFLAGS = -L/usr/local/ns-allinone-2.1b6/tk8.0.4/unixLDOUT = -o $(BLANK)PERL = perlRM = rm -fTCLSH = ../tcl8.3.2/unix/tclshBFLAGS = $(INCLUDES) $(DEFINE)CFLAGS = $(INCLUDES) $(DEFINE) $(CCOPT) -Wall# Explicitly define compilation rules since SunOS 4's make doesn't like gcc.# Also, gcc does not remove the .o before forking 'as', which can be a# problem if you don't own the file but can write to the directory..SUFFIXES: .cc # $(.SUFFIXES).cc.o: @rm -f $@ $(CPP) -c $(CFLAGS) -o $@ $*.cc.c.o: @rm -f $@ $(CC) -c $(CFLAGS) -o $@ $*.cGEN_DIR = gen/LIB_DIR = lib/NS = ns-span-msr2#ns-span-clear-2hop-rotationNSX = nsxNSE = nse# WIN32: uncomment the following line to include specific make for VC++# !include <makefile.win>OBJ_CC = \ random.o rng.o ranvar.o misc.o timer-handler.o \ scheduler.o object.o \ packet.o ip.o route.o connector.o ttl.o \ trace.o trace-ip.o \ classifier.o classifier-addr.o classifier-flow.o classifier-hash.o \ classifier-mcast.o classifier-mpath.o replicator.o \ cbr.o traffictrace.o pareto.o expoo.o telnet.o tcplib-telnet.o \ agent.o message.o udp.o session-rtp.o rtp.o rtcp.o ivs.o \ tcp.o tcp-sink.o tcp-reno.o tcp-newreno.o \ tcp-vegas.o tcp-rbp.o tcp-full.o \ scoreboard.o tcp-sack1.o tcp-fack.o \ tcp-asym.o tcp-asym-sink.o tcp-int.o chost.o nilist.o tcp-fs.o \ integrator.o queue-monitor.o flowmon.o loss-monitor.o \ queue.o drop-tail.o red.o \ semantic-packetqueue.o semantic-red.o ack-recons.o \ sfq.o fq.o drr.o cbq.o \ hackloss.o errmodel.o \ delay.o \ dynalink.o rtProtoDV.o net-interface.o \ ctrMcast.o prune.o srm.o \ sessionhelper.o delaymodel.o srm-ssm.o \ $(LIB_DIR)int.Vec.o $(LIB_DIR)int.RVec.o \ $(LIB_DIR)dmalloc_support.o \OBJ_EMULATE_CC = \ emulate/net-ip.o \ emulate/net.o \ emulate/tap.o \ emulate/ether.o \ emulate/net-pcap.o \ emulate/internet.o \ emulate/ping_responder.o \ emulate/arp.o \ emulate/icmp.o \ emulate/nat.o \OBJ_EMULATE_C = \ emulate/inet.o############################################################################# Valid DSR caches: mobicache, linkcache#DSR_CACHE = mobicache# All the files for each routing protocol we add should go on their# own set of lines. DO NOT add or change the common lines.OBJ_CMU = \ cmu/channel.o cmu/ll.o cmu/mac.o cmu/modulation.o \ cmu/arp.o cmu/node.o \ cmu/net-if.o cmu/sharedmedia.o \ cmu/antenna.o cmu/omni-antenna.o \ cmu/propagation.o cmu/tworayground.o \ cmu/dem.o cmu/topography.o \ cmu/mac-802_11.o cmu/mac-timers.o \ cmu/mac-null.o cmu/mac-wavelan1.o \ cmu/priqueue.o cmu/rtqueue.o cmu/rttable.o \ cmu/god.o cmu/cmu-trace.o cmu/energy-model.o \ cmu/quadtree.o cmu/tsftimer.o cmu/mac-802_11-mlme.o \ \ cmu/tora/tora.o cmu/tora/tora_api.o cmu/tora/tora_io.o \ cmu/tora/tora_neighbor.o cmu/tora/tora_dest.o \ cmu/tora/tora_logs.o \ \ cmu/imep/imep.o cmu/imep/imep_api.o cmu/imep/imep_rt.o \ cmu/imep/imep_io.o cmu/imep/imep_util.o cmu/imep/imep_timers.o \ cmu/imep/rxmit_queue.o cmu/imep/dest_queue.o \ \ cmu/dsr/path.o cmu/dsr/routecache.o cmu/dsr/requesttable.o \ cmu/dsr/dsragent.o cmu/dsr/hdr_sr.o \ cmu/dsr/$(DSR_CACHE).o \ \ cmu/dsdv/rtable.o cmu/dsdv/dsdv.o \ cmu/aodv/aodv.o cmu/aodv/aodv_logs.o \ \ cmu/nort/nort.o \ \ cmu/ntr-workload.o cmu/adhockey-slaver.o \ \ cmu/span/spanagent.o \ cmu/span/neibtab.o \ cmu/span/hdr_span.o \ cmu/span/gfrt.o \ \ cmu/test_capacity/capacityagent.o \######################################################################OBJ_C = \OBJ_COMPAT = $(OBJ_GETOPT) win32.o#XXX compat/win32x.o compat/tkConsole.oOBJ_NAM = \ nam/animation.o \ nam/nam-drop.o \ nam/nam-edge.o \ nam/nam-node.o \ nam/nam-packet.o \ nam/nam-queue.o \ nam/nam-trace.o \ nam/paint.o \ nam/state.o \ nam/transform.o \ nam/netview.o \ nam/netmodel.oOBJ_GEN = $(GEN_DIR)version.o $(GEN_DIR)ns_tcl.oSRC = $(OBJ_C:.o=.c) $(OBJ_CC:.o=.cc) $(OBJ_NAM:.o=.cc) \ $(OBJ_EMULATE_C:.o=.c) $(OBJ_EMULATE_CC:.o=.cc) \ $(OBJ_CMU:.o=.cc) \ tclAppInit.cc tkAppInit.ccOBJ = $(OBJ_C) $(OBJ_CC) $(OBJ_GEN) $(OBJ_COMPAT) $(OBJ_CMU)HDR = agent.h config.h data-source.h integrator.h link.h node.h \ object.h packet.h random.h scheduler.h scoreboard.h tcp.h trace.h \ tcp-sink.h tcp-fack.h tcp-int.h chost.h drop-tail.h red.h \ queue-monitor.h semantic-packetqueue.h ack-recons.h \ cbr.h rtp.h cbr.h classifier.h connector.h ip.h \ delay.h energy-model.h tsftimer.h \ snoop.h ll.h mac.h mac-multihop.h mac-csma.h mac-802_11.h \ rtProtoDV.h ctrMcast.h prune.h ranvar.h delaymodel.h timers.h \ srm-ssm.h mem-debug.h mac-802_11-mlme.hCLEANFILES = ns nsx ns.dyn $(OBJ) $(OBJ_NAM) tclAppInit.o \ $(GEN_DIR)/*.cc $(GEN_DIR)/*.tcl $(GEN_DIR)/*.o \ core core.ns core.nsx \ $(OBJ_EMULATE_C) $(OBJ_EMULATE_CC)$(NS): $(OBJ) tclAppInit.o $(LINK) $(STATIC) $(LDFLAGS) $(LDOUT)$@ \ tclAppInit.o $(OBJ) $(LIB)$(NSX): $(OBJ) tkAppInit.o $(OBJ_NAM) $(LINK) $(STATIC) $(LDFLAGS) $(LDOUT)$@ \ tkAppInit.o $(OBJ) $(OBJ_NAM) $(LIB)$(NSE): $(OBJ) tclAppInit.o $(OBJ_EMULATE_CC) $(OBJ_EMULATE_C) $(LINK) $(LDFLAGS) $(LDOUT)$@ \ tclAppInit.o $(OBJ) \ $(OBJ_EMULATE_CC) $(OBJ_EMULATE_C) $(LIB) -lpcap
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -