peng weijie schrieb:
hi,list
i download the example(http://www.rts.uni-hannover.de/rtnet/lxr/source/addons/examples/raw-packets/ ) to study and i add some code into it .
a few details about my hardware and software:
  Linux Fedora Core 1 with 2.4.22 kernel
  RTAI 3.0 r 4
  RTnet 0.8
  NIC compatible with RTL8139 chipset
but i don't understand the makefile.am of this example.my questions is 1)line 1,2 is for what?
2)in line 7,8,  what is default (top_srcdir),(top_builddir)
3)because i use 2.4.x kernel not 2.6 ,whether the line 19,20,32 is need?should i adapt sth?
4)line 36 is for what?
would someone kind to explain ,thank you for patience

Those examples are integrated in the build process of RTnet, therefore they also come with makefile templates which are processed by autotools.

If you want your application to be build inside the RTnet tree, you actually have to use those templates. This is not trivial, you will have to changes several files: configure.ac, makefile.am in the directory above your new directory and the makefile.am in the application directory itself, which you should copy from an existing example. To find out what has to be adapted, compare two examples and look in which way the related makefiles differ.

The other, I would say preferred option: pick a makefile template from the RTAI showroom (see www.rtai.org). For RTnet applications, it is sufficient to add the include path of an RTnet installation directory to the CFLAGS (e.g. "-I/usr/local/rtnet/include").

Jan


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to