Debian Codegraph @

protolib/src/sim/ns/ns21b9/ns-2.1b9-Makefile.in

raw
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: /srv/svn/cvs/protolib/protolib/ns/ns21b9/ns-2.1b9-Makefile.in,v 1.3 2008-07-21 05:53:07 ian Exp $ (LBL)
21
22 #
23 # Various configurable paths (remember to edit Makefile.in, not Makefile)
24 #
25
26 # Top level hierarchy
27 prefix = @prefix@
28 # Pathname of directory to install the binary
29 BINDEST = @prefix@/bin
30 # Pathname of directory to install the man page
31 MANDEST = @prefix@/man
32
33 BLANK = # make a blank space. DO NOT add anything to this line
34
35 # The following will be redefined under Windows (see WIN32 lable below)
36 CC = @CC@
37 CPP = @CXX@
38 LINK = $(CPP)
39 MKDEP = ./conf/mkdep
40 TCLSH = @V_TCLSH@
41 TCL2C = @V_TCL2CPP@
42 AR = ar rc $(BLANK)
43
44 RANLIB = @V_RANLIB@
45 INSTALL = @INSTALL@
46 LN = ln
47 TEST = test
48 RM = rm -f
49 MV = mv
50 PERL = @PERL@
51
52 # for diffusion
53 #DIFF_INCLUDES = "./diffusion3/main ./diffusion3/lib ./diffusion3/nr ./diffusion3/ns"
54
55 CCOPT = @V_CCOPT@
56 STATIC = @V_STATIC@
57 LDFLAGS = $(STATIC)
58 LDOUT = -o $(BLANK)
59
60 DEFINE = -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR @V_DEFINE@ @V_DEFINES@ @DEFS@ -DPGM -DPGM_DEBUG -DNS_DIFFUSION
61
62
63 PROTOLIB_INCLUDES = -Iprotolib/common -Iprotolib/ns
64
65 INCLUDES = \
66 -I. @V_INCLUDE_X11@ \
67 @V_INCLUDES@ \
68 -I./tcp -I./common -I./link -I./queue \
69 -I./adc -I./apps -I./mac -I./mobile -I./trace \
70 -I./routing -I./tools -I./classifier -I./mcast \
71 -I./diffusion3/main -I./diffusion3/lib \
72 -I./diffusion3/nr -I./diffusion3/ns -I./asim/ \
73 $(PROTOLIB_INCLUDES)
74
75
76 LIB = \
77 @V_LIBS@ \
78 @V_LIB_X11@ \
79 @V_LIB@ \
80 -lm @LIBS@
81 # -L@libdir@ \
82
83 PROTOLIB_FLAGS = -DUNIX -DNS2 -DPROTO_DEBUG -DHAVE_ASSERT
84
85 CFLAGS = $(CCOPT) $(DEFINE) $(PROTOLIB_FLAGS)
86
87 # Explicitly define compilation rules since SunOS 4's make doesn't like gcc.
88 # Also, gcc does not remove the .o before forking 'as', which can be a
89 # problem if you don't own the file but can write to the directory.
90 .SUFFIXES: .cc # $(.SUFFIXES)
91
92 .cc.o:
93 @rm -f $@
94 $(CPP) -c $(CFLAGS) $(INCLUDES) -o $@ $*.cc
95
96 .c.o:
97 @rm -f $@
98 $(CC) -c $(CFLAGS) $(INCLUDES) -o $@ $*.c
99
100 .cpp.o:
101 @rm -f $@
102 $(CC) -c $(CFLAGS) $(INCLUDES) -o $@ $*.cpp
103
104
105 GEN_DIR = gen/
106 LIB_DIR = lib/
107 NS = ns
108 NSX = nsx
109 NSE = nse
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 = linkstate/ls.o linkstate/rtProtoLS.o \
115 pgm/classifier-pgm.o pgm/pgm-agent.o pgm/pgm-sender.o \
116 pgm/pgm-receiver.o pgm/rcvbuf.o \
117 diffusion3/nr/nr.o diffusion3/lib/dr.o \
118 diffusion3/ns/diffagent.o diffusion3/ns/diffrtg.o \
119 diffusion3/ns/difftimer.o diffusion3/main/diffusion.o \
120 diffusion3/main/attrs.o diffusion3/main/iodev.o \
121 diffusion3/main/events.o diffusion3/main/message.o \
122 diffusion3/main/hashutils.o diffusion3/main/stats.o \
123 diffusion3/main/tools.o diffusion3/main/drivers/rpc_stats.o \
124 diffusion3/apps/sysapps/gradient.o \
125 diffusion3/apps/sysapps/log.o \
126 diffusion3/lib/diffapp.o \
127 diffusion3/apps/agents/ping_sender.o \
128 diffusion3/apps/agents/ping_receiver.o \
129 diffusion3/apps/agents/ping_common.o \
130 diffusion3/apps/gear/geo-attr.o \
131 diffusion3/apps/gear/geo-routing.o \
132 diffusion3/apps/gear/geo-tools.o
133
134 NS_TCL_LIB_STL = tcl/rtglib/ns-rtProtoLS.tcl \
135 tcl/lib/ns-diffusion.tcl
136
137 # WIN32: uncomment the following line to include specific make for VC++
138 # !include <conf/makefile.win>
139
140 OBJ_CC = \
141 tools/random.o tools/rng.o tools/ranvar.o common/misc.o common/timer-handler.o \
142 common/scheduler.o common/object.o common/packet.o \
143 common/ip.o routing/route.o common/connector.o common/ttl.o \
144 trace/trace.o trace/trace-ip.o \
145 classifier/classifier.o classifier/classifier-addr.o \
146 classifier/classifier-hash.o \
147 classifier/classifier-virtual.o \
148 classifier/classifier-mcast.o \
149 classifier/classifier-bst.o \
150 classifier/classifier-mpath.o mcast/replicator.o \
151 classifier/classifier-mac.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 apps/app.o apps/telnet.o tcp/tcplib-telnet.o \
155 tools/trafgen.o trace/traffictrace.o tools/pareto.o \
156 tools/expoo.o tools/cbr_traffic.o \
157 adc/tbf.o adc/resv.o adc/sa.o tcp/saack.o \
158 tools/measuremod.o adc/estimator.o adc/adc.o adc/ms-adc.o \
159 adc/timewindow-est.o adc/acto-adc.o \
160 adc/pointsample-est.o adc/salink.o adc/actp-adc.o \
161 adc/hb-adc.o adc/expavg-est.o\
162 adc/param-adc.o adc/null-estimator.o \
163 adc/adaptive-receiver.o apps/vatrcvr.o adc/consrcvr.o \
164 common/agent.o common/message.o apps/udp.o \
165 common/session-rtp.o apps/rtp.o tcp/rtcp.o \
166 common/ivs.o \
167 tcp/tcp.o tcp/tcp-sink.o tcp/tcp-reno.o \
168 tcp/tcp-newreno.o \
169 tcp/tcp-vegas.o tcp/tcp-rbp.o tcp/tcp-full.o tcp/rq.o \
170 baytcp/tcp-full-bay.o baytcp/ftpc.o baytcp/ftps.o \
171 tcp/scoreboard.o tcp/tcp-sack1.o tcp/tcp-fack.o \
172 tcp/tcp-asym.o tcp/tcp-asym-sink.o tcp/tcp-fs.o \
173 tcp/tcp-asym-fs.o \
174 tcp/tcp-int.o tcp/chost.o tcp/tcp-session.o \
175 tcp/nilist.o \
176 tools/integrator.o tools/queue-monitor.o \
177 tools/flowmon.o tools/loss-monitor.o \
178 queue/queue.o queue/drop-tail.o \
179 adc/simple-intserv-sched.o queue/red.o \
180 queue/semantic-packetqueue.o queue/semantic-red.o \
181 tcp/ack-recons.o \
182 queue/sfq.o queue/fq.o queue/drr.o queue/srr.o queue/cbq.o \
183 link/hackloss.o queue/errmodel.o queue/fec.o\
184 link/delay.o tcp/snoop.o \
185 gaf/gaf.o \
186 link/dynalink.o routing/rtProtoDV.o common/net-interface.o \
187 mcast/ctrMcast.o mcast/mcast_ctrl.o mcast/srm.o \
188 common/sessionhelper.o queue/delaymodel.o \
189 mcast/srm-ssm.o mcast/srm-topo.o \
190 apps/mftp.o apps/mftp_snd.o apps/mftp_rcv.o \
191 apps/codeword.o \
192 routing/alloc-address.o routing/address.o \
193 $(LIB_DIR)int.Vec.o $(LIB_DIR)int.RVec.o \
194 $(LIB_DIR)dmalloc_support.o \
195 webcache/http.o webcache/tcp-simple.o webcache/pagepool.o \
196 webcache/inval-agent.o webcache/tcpapp.o webcache/http-aux.o \
197 webcache/mcache.o webcache/webtraf.o \
198 empweb/empweb.o \
199 empweb/empftp.o \
200 realaudio/realaudio.o \
201 mac/lanRouter.o classifier/filter.o \
202 common/pkt-counter.o \
203 common/Decapsulator.o common/Encapsulator.o \
204 common/encap.o \
205 mac/channel.o mac/mac.o mac/ll.o mac/mac-802_11.o \
206 mac/mac-802_3.o mac/mac-tdma.o \
207 mobile/mip.o mobile/mip-reg.o mobile/gridkeeper.o \
208 mobile/propagation.o mobile/tworayground.o \
209 mobile/antenna.o mobile/omni-antenna.o \
210 mobile/shadowing.o mobile/shadowing-vis.o \
211 common/bi-connector.o common/node.o \
212 common/mobilenode.o \
213 mac/arp.o mobile/god.o mobile/dem.o \
214 mobile/topography.o mobile/modulation.o \
215 queue/priqueue.o \
216 mac/phy.o mac/wired-phy.o mac/wireless-phy.o \
217 mac/mac-timers.o trace/cmu-trace.o mac/varp.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\
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 @V_STLOBJ@
270
271
272 # don't allow comments to follow continuation lines
273
274 # mac-csma.o mac-multihop.o\
275 # sensor-nets/landmark.o mac-simple-wireless.o \
276 # sensor-nets/tags.o sensor-nets/sensor-query.o \
277 # sensor-nets/flood-agent.o \
278
279 # what was here before is now in emulate/
280 OBJ_C =
281
282 OBJ_COMPAT = $(OBJ_GETOPT) common/win32.o
283 #XXX compat/win32x.o compat/tkConsole.o
284
285 OBJ_EMULATE_CC = \
286 emulate/net-ip.o \
287 emulate/net.o \
288 emulate/tap.o \
289 emulate/ether.o \
290 emulate/internet.o \
291 emulate/ping_responder.o \
292 emulate/arp.o \
293 emulate/icmp.o \
294 emulate/net-pcap.o \
295 emulate/nat.o \
296 emulate/iptap.o \
297 emulate/tcptap.o
298
299 OBJ_EMULATE_C = \
300 emulate/inet.o
301
302 OBJ_GEN = $(GEN_DIR)version.o $(GEN_DIR)ns_tcl.o $(GEN_DIR)ptypes.o
303
304 OBJ_PROTOLIB_CPP = \
305 protolib/ns/nsProtoSimAgent.o protolib/common/protoSimAgent.o \
306 protolib/common/protoSimSocket.o protolib/common/protoAddress.o \
307 protolib/common/protoTimer.o protolib/common/protoExample.o \
308 protolib/common/protoDebug.o protolib/common/protoTree.o \
309 protolib/ns/nsRouteMgr.o protolib/common/protoRouteTable.o \
310 protolib/common/protoBitmask.o protolib/ns/nsProtoManetKernel.o \
311 protolib/common/protoTime.o protolib/ns/tcp/TCPData.o \
312 protolib/ns/tcp/SimpleList.o protolib/ns/tcp/TCPSocketApp.o \
313 protolib/ns/tcp/TCPEvent.o protolib/ns/tcp/TCPSocketAgent.o \
314 protolib/ns/tcp/TCPServerSocketAgent.o protolib/ns/tcp/TCPSocketFactory.o \
315 protolib/ns/tcp/TCPSocketExample.o protolib/ns/nsTCPProtoSocketAgent.o
316
317
318 OBJ_CPP = $(OBJ_PROTOLIB_CPP)
319
320 SRC = $(OBJ_C:.o=.c) $(OBJ_CC:.o=.cc) $(OBJ_CPP:.o=.cpp) \
321 $(OBJ_EMULATE_C:.o=.c) $(OBJ_EMULATE_CC:.o=.cc) \
322 common/tclAppInit.cc common/tkAppInit.cc
323
324 OBJ = $(OBJ_C) $(OBJ_CC) $(OBJ_GEN) $(OBJ_COMPAT) $(OBJ_CPP)
325
326 CLEANFILES = ns nse nsx ns.dyn $(OBJ) $(OBJ_EMULATE_CC) \
327 $(OBJ_EMULATE_C) common/tclAppInit.o \
328 $(GEN_DIR)* $(NS).core core core.$(NS) core.$(NSX) core.$(NSE) \
329 common/ptypes2tcl common/ptypes2tcl.o
330
331 SUBDIRS=\
332 indep-utils/cmu-scen-gen/setdest \
333 indep-utils/webtrace-conv/dec \
334 indep-utils/webtrace-conv/epa \
335 indep-utils/webtrace-conv/nlanr \
336 indep-utils/webtrace-conv/ucb
337
338 BUILD_NSE = @build_nse@
339
340 all: $(NS) $(BUILD_NSE) all-recursive
341
342
343 all-recursive:
344 for i in $(SUBDIRS); do ( cd $$i; $(MAKE) all; ) done
345
346 $(NS): $(OBJ) common/tclAppInit.o Makefile
347 $(LINK) $(LDFLAGS) $(LDOUT)$@ \
348 common/tclAppInit.o $(OBJ) $(LIB)
349
350 Makefile: Makefile.in
351 @echo "Makefile.in is newer than Makefile."
352 @echo "You need to re-run configure."
353 false
354
355 $(NSE): $(OBJ) common/tclAppInit.o $(OBJ_EMULATE_CC) $(OBJ_EMULATE_C)
356 $(LINK) $(LDFLAGS) $(LDOUT)$@ \
357 common/tclAppInit.o $(OBJ) \
358 $(OBJ_EMULATE_CC) $(OBJ_EMULATE_C) $(LIB)
359
360 ns.dyn: $(OBJ) common/tclAppInit.o
361 $(LINK) $(LDFLAGS) -o $@ \
362 common/tclAppInit.o $(OBJ) $(LIB)
363
364 PURIFY = purify -cache-dir=/tmp
365 ns-pure: $(OBJ) common/tclAppInit.o
366 $(PURIFY) $(LINK) $(LDFLAGS) -o $@ \
367 common/tclAppInit.o $(OBJ) $(LIB)
368
369 NS_TCL_LIB = \
370 tcl/lib/ns-compat.tcl \
371 tcl/lib/ns-default.tcl \
372 tcl/lib/ns-errmodel.tcl \
373 tcl/lib/ns-lib.tcl \
374 tcl/lib/ns-link.tcl \
375 tcl/lib/ns-mobilenode.tcl \
376 tcl/lib/ns-sat.tcl \
377 tcl/lib/ns-cmutrace.tcl \
378 tcl/lib/ns-node.tcl \
379 tcl/lib/ns-rtmodule.tcl \
380 tcl/lib/ns-hiernode.tcl \
381 tcl/lib/ns-packet.tcl \
382 tcl/lib/ns-queue.tcl \
383 tcl/lib/ns-source.tcl \
384 tcl/lib/ns-nam.tcl \
385 tcl/lib/ns-trace.tcl \
386 tcl/lib/ns-agent.tcl \
387 tcl/lib/ns-random.tcl \
388 tcl/lib/ns-namsupp.tcl \
389 tcl/lib/ns-address.tcl \
390 tcl/lib/ns-intserv.tcl \
391 tcl/lib/ns-autoconf.tcl \
392 tcl/rtp/session-rtp.tcl \
393 tcl/lib/ns-mip.tcl \
394 tcl/rtglib/dynamics.tcl \
395 tcl/rtglib/route-proto.tcl \
396 tcl/rtglib/algo-route-proto.tcl \
397 tcl/rtglib/ns-rtProtoLS.tcl \
398 tcl/interface/ns-iface.tcl \
399 tcl/mcast/BST.tcl \
400 tcl/mcast/ns-mcast.tcl \
401 tcl/mcast/McastProto.tcl \
402 tcl/mcast/DM.tcl \
403 tcl/mcast/srm.tcl \
404 tcl/mcast/srm-adaptive.tcl \
405 tcl/mcast/srm-ssm.tcl \
406 tcl/mcast/timer.tcl \
407 tcl/mcast/McastMonitor.tcl \
408 tcl/mcast/mftp_snd.tcl \
409 tcl/mcast/mftp_rcv.tcl \
410 tcl/mcast/mftp_rcv_stat.tcl \
411 tcl/mobility/dsdv.tcl \
412 tcl/mobility/dsr.tcl \
413 tcl/ctr-mcast/CtrMcast.tcl \
414 tcl/ctr-mcast/CtrMcastComp.tcl \
415 tcl/ctr-mcast/CtrRPComp.tcl \
416 tcl/rlm/rlm.tcl \
417 tcl/rlm/rlm-ns.tcl \
418 tcl/session/session.tcl \
419 tcl/lib/ns-route.tcl \
420 tcl/emulate/ns-emulate.tcl \
421 tcl/lan/vlan.tcl \
422 tcl/lan/abslan.tcl \
423 tcl/lan/ns-ll.tcl \
424 tcl/lan/ns-mac.tcl \
425 tcl/webcache/http-agent.tcl \
426 tcl/webcache/http-server.tcl \
427 tcl/webcache/http-cache.tcl \
428 tcl/webcache/http-mcache.tcl \
429 tcl/webcache/webtraf.tcl \
430 tcl/webcache/empweb.tcl \
431 tcl/webcache/empftp.tcl \
432 tcl/plm/plm.tcl \
433 tcl/plm/plm-ns.tcl \
434 tcl/plm/plm-topo.tcl \
435 tcl/mpls/ns-mpls-classifier.tcl \
436 tcl/mpls/ns-mpls-ldpagent.tcl \
437 tcl/mpls/ns-mpls-node.tcl \
438 tcl/mpls/ns-mpls-simulator.tcl \
439 tcl/lib/ns-pushback.tcl \
440 tcl/lib/ns-srcrt.tcl \
441 @V_NS_TCL_LIB_STL@
442
443 $(GEN_DIR)ns_tcl.cc: $(NS_TCL_LIB)
444 $(TCLSH) bin/tcl-expand.tcl tcl/lib/ns-lib.tcl @V_NS_TCL_LIB_STL@ | $(TCL2C) et_ns_lib > $@
445
446 $(GEN_DIR)version.c: VERSION
447 $(RM) $@
448 $(TCLSH) bin/string2c.tcl version_string < VERSION > $@
449
450 $(GEN_DIR)ptypes.cc: common/ptypes2tcl common/packet.h
451 ./common/ptypes2tcl > $@
452
453 common/ptypes2tcl: common/ptypes2tcl.o
454 $(LINK) $(LDFLAGS) $(LDOUT)$@ common/ptypes2tcl.o
455
456 common/ptypes2tcl.o: common/ptypes2tcl.cc common/packet.h
457
458 install: force install-ns install-man install-recursive
459
460 install-ns: force
461 $(INSTALL) -m 555 -o bin -g bin ns $(DESTDIR)$(BINDEST)
462
463 install-man: force
464 $(INSTALL) -m 444 -o bin -g bin ns.1 $(DESTDIR)$(MANDEST)/man1
465
466 install-recursive: force
467 for i in $(SUBDIRS); do ( cd $$i; $(MAKE) install; ) done
468
469 clean:
470 $(RM) $(CLEANFILES)
471
472 AUTOCONF_GEN = tcl/lib/ns-autoconf.tcl
473 distclean:
474 $(RM) $(CLEANFILES) Makefile config.cache config.log config.status \
475 gnuc.h os-proto.h $(AUTOCONF_GEN); \
476 $(MV) .configure .configure- ;\
477 echo "Moved .configure to .configure-"
478
479 tags: force
480 ctags -wtd *.cc *.h webcache/*.cc webcache/*.h dsdv/*.cc dsdv/*.h \
481 dsr/*.cc dsr/*.h webcache/*.cc webcache/*.h lib/*.cc lib/*.h \
482 ../Tcl/*.cc ../Tcl/*.h
483
484 TAGS: force
485 etags *.cc *.h webcache/*.cc webcache/*.h dsdv/*.cc dsdv/*.h \
486 dsr/*.cc dsr/*.h webcache/*.cc webcache/*.h lib/*.cc lib/*.h \
487 ../Tcl/*.cc ../Tcl/*.h
488
489 tcl/lib/TAGS: force
490 ( \
491 cd tcl/lib; \
492 $(TCLSH) ../../bin/tcl-expand.tcl ns-lib.tcl | grep '^### tcl-expand.tcl: begin' | awk '{print $$5}' >.tcl_files; \
493 etags --lang=none -r '/^[ \t]*proc[ \t]+\([^ \t]+\)/\1/' `cat .tcl_files`; \
494 etags --append --lang=none -r '/^\([A-Z][^ \t]+\)[ \t]+\(instproc\|proc\)[ \t]+\([^ \t]+\)[ \t]+/\1::\3/' `cat .tcl_files`; \
495 )
496
497 depend: $(SRC)
498 $(MKDEP) $(CFLAGS) $(INCLUDES) $(SRC)
499
500 srctar:
501 @cwd=`pwd` ; dir=`basename $$cwd` ; \
502 name=ns-`cat VERSION | tr A-Z a-z` ; \
503 tar=ns-src-`cat VERSION`.tar.gz ; \
504 list="" ; \
505 for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
506 echo \
507 "(rm -f $$tar; cd .. ; ln -s $$dir $$name)" ; \
508 (rm -f $$tar; cd .. ; ln -s $$dir $$name) ; \
509 echo \
510 "(cd .. ; tar cfh $$tar [lots of files])" ; \
511 (cd .. ; tar cfh - $$list) | gzip -c > $$tar ; \
512 echo \
513 "rm ../$$name; chmod 444 $$tar" ; \
514 rm ../$$name; chmod 444 $$tar
515
516 force:
517
518 test: force
519 ./validate
520
521 # Create makefile.vc for Win32 development by replacing:
522 # "# !include ..." -> "!include ..."
523 makefile.vc: Makefile.in
524 $(PERL) bin/gen-vcmake.pl < Makefile.in > makefile.vc
525 # $(PERL) -pe 's/^# (\!include)/\!include/o' < Makefile.in > makefile.vc