[Xorp-hackers] about add new process to xorp
Pavlin Radoslavov
pavlin at icir.org
Fri Jun 2 08:42:26 PDT 2006
Kristian Larsson <kristian at spritelink.se> wrote:
> On Fri, Jun 02, 2006 at 04:58:17PM +0800, ?? ?? wrote:
> > Hi xorp
> > I'm newer to xorp and also newer to automake/autoconf. Now I want to add
> > new function to xorp. from <<An Introduction to Writing a XORP Process>>
> > ,I've setup my interface file(ids.xif) in xrl/interfaces.In order to setup
> > ids_xif.cc and ids_xif.hh by python, I must modify Makefile.am to add :
> > noinst_LTLIBRARIES += libidsxif.la
> > libtestxif_la_SOURCES = ids_xif.hh ids_xif.cc
> > and then execute 'automake' in xorp's directory and then make. but xorp
> > didn't build ids_xif.cc & ids_xif.hh.
> > I'd know why??? further More when I create ids directory which store my ids
> > stub file. How can i build makefile automatically???
> I'm not really the guy to answer all these
> questions.. but have a look at the bootstrap file
> in the xorp root directory. I think it will help
> you build new makefiles and stuff :)
Yes, after a Makefile.am is modified, you must run the top-level
./bootstrap to generate the new Makefile.in file(s). Note that your
autoconf/automake/libtool versions must match the versions specified
in the top-level README file. Currently, those versions are:
- autoconf version 2.53
- automake version 1.5
- libtool version 1.3.4
After that you must run ./configure to generate the new Makefile
file(s).
Finally, you must run gmake, and the ids_xif.hh and ids_xif.cc files
will generated.
FYI, for testing purpose you could generate those auto-generated
files by hand:
cd xrl/interfaces
python ../scripts/clnt-gen ids.xif
Pavlin
More information about the Xorp-hackers
mailing list