[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] using a modified ns-lib.tcl
Can you provide the diff file for the modified makefile?
Then other people can understand what you done.
Basically, you should modify the make file as follows:
$(GEN_DIR)ns_tcl.cc: $(NS_TCL_LIB)
$(TCLSH) bin/tcl-expand.tcl /where/you/put/ns-lib.tcl
^^^^^^^^^^^^^^^^^^^^^^^^^
$(NS_TCL_LIB_STL) | $(TCL2C) et_ns_lib > $@
And modify all source-commands in your ns-lib.tcl:
source /where/is/the/original/ns-autoconf.tcl
...
- difa
On Fri, 30 Mar 2001, gmc50 wrote:
> Hi ns users,
>
> I am trying to make some changes to the ns-lib.tcl file but since we are using
> a central common copy (read only) of ns stored in the server, I need to store
> this modified ns-lib.tcl file in my own directory and use this modified file
> instead of the original ns-lib.tcl.
>
> However, after I source the new ns-lib.tcl in my make file and remove the path
> to the original ns-lib.tcl from the make file, I successfully run make but
> still end up using the original ns-lib.tcl file when I run a tcl script. Do I
> need to change something else?
>
> Thanks a lot,
>
> Gustavo.
>