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
this is makefile.am of raw packet example
1 moduledir = $(DESTDIR)@RTNET_MODULE_DIR@
2 modext = @RTNET_MODULE_EXT@
3
4 EXTRA_LIBRARIES = libkernel_raw-packets.a
5
6 libkernel_raw_packets_a_CPPFLAGS = \
7 -I$(top_srcdir)/stack/include \
8 -I$(top_builddir)/stack/include \
9 @RTAI_KMOD_CFLAGS@
10
11 libkernel_raw_packets_a_SOURCES = \
12 raw-packets.c
13
14 OBJS = raw-packets$(modext)
15
16 raw-packets.o: libkernel_raw-packets.a
17 $(LD) --whole-archive $< -r -o $@
18
19 raw-packets.ko: @RTNET_KBUILD_ENV@
20 raw-packets.ko: $(libkernel_raw_packets_a_SOURCES) FORCE
21 @RTNET_KBUILD_CMD@
22
23 all-local: $(OBJS)
24
25 #install-exec-local: $(OBJS)
26 # $(mkinstalldirs) $(moduledir)
27 # $(INSTALL_DATA) $^ $(moduledir)
28
29 clean-local: $(libkernel_raw_packets_a_SOURCES)
30 @RTNET_KBUILD_CLEAN@
31
32 EXTRA_DIST = Makefile.kbuild
33
34 DISTCLEANFILES = Makefile
35
36 .PHONY: FORCE
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
-------------------------------------------------------
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