/usr/share/doc/HOWTO/ja-html/RTLinux-HOWTO-5.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>RTLinux HOWTO: $B%3%s%Q%$%k$H<B9T(B</TITLE>
<LINK HREF="RTLinux-HOWTO-6.html" REL=next>
<LINK HREF="RTLinux-HOWTO-4.html" REL=previous>
<LINK HREF="RTLinux-HOWTO.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="RTLinux-HOWTO-6.html">$B<!$N%Z!<%8(B</A>
<A HREF="RTLinux-HOWTO-4.html">$BA0$N%Z!<%8(B</A>
<A HREF="RTLinux-HOWTO.html#toc5">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s5">5.</A> <A HREF="RTLinux-HOWTO.html#toc5">$B%3%s%Q%$%k$H<B9T(B</A></H2>
<P>hello.c $B%W%m%0%i%`$r<B9T$9$k$K$O(B($B$b$A$m$s$G$9$,!"(Brtlinux $B$N%V!<%H8e$K$G$9(B)$B!"(B
$B0J2<$N<j=g$r9T$o$J$1$l$P$J$j$^$;$s(B:</P>
<P>
<OL>
<LI>GCC $B%3%s%Q%$%i$r;H$C$F%=!<%9%3!<%I$r%3%s%Q%$%k$7!"%b%8%e!<%k$r@8@.$7$^$9!#(B
$B$H$O$$$(!"(BMakefile $B$r:n@.$7$F:n6H$r4JN,2=$9$k$[$&$,NI$$$G$9!#(B
$B$=$&$9$l$P%=!<%9%3!<%I$r%3%s%Q%$%k$9$k$N$K(B 'make'
$B$HF~NO$9$k$@$1$G:Q$_$^$9!#(BMakefile $B$O!"(B'Makefile'
$B$H$$$&L>A0$N%U%!%$%k$K0J2<$NFbMF$rF~NO$9$k$3$H$G:n@.$G$-$^$9!#(B
<PRE>
include rtl.mk
all: hello.o
clean:
rm -f *.o
hello.o: hello.c
$(CC) ${INCLUDE} ${CFLAGS} -c hello.c
</PRE>
</LI>
<LI>rtl.mk $B%U%!%$%k$r8+$D$1!"(Bhello.c $B$d(B Makefile $B$,$"$k$N$HF1$8%G%#%l%/%H%j$K(B
$BCV$$$F$/$@$5$$!#(Brtl.mk $B%U%!%$%k$O!"%3!<%I$r%3%s%Q%$%k$9$k$N$KI,MW$J(B
$B$9$Y$F$N%U%i%0$r4^$`(B include $B%U%!%$%k$G$9!#(Brtl.mk $B%U%!%$%k$O(B
RTLinux $B$N%=!<%9%D%j!<$+$i%3%T!<$7$F(B hello.c $B%U%!%$%k$HF1$8%G%#%l%/%H%j(B
$B$K3JG<$G$-$^$9!#(B</LI>
<LI>$B%3!<%I$r%3%s%Q%$%k$9$k$K$O!"(B'make' $B%3%^%s%I$r;HMQ$7$F$/$@$5$$!#(B
<PRE>
$ make
</PRE>
</LI>
<LI>$B$3$N7k2L$G$-$k%*%V%8%'%/%H%P%$%J%j$O!"%+!<%M%k$N(B RTLinux
$B$K$h$j<B9T$5$l$kItJ,$KAH$_$3$^$J$/$F$O$J$j$^$;$s!#(B'rtlinux'
$B%3%^%s%I$r;HMQ$7$F$/$@$5$$(B
($B$=$l$K$O(B 'root' $B$K$J$kI,MW$,$"$j$^$9(B)$B!#(B
<PRE>
$ rtlinux start hello
</PRE>
</LI>
</OL>
</P>
<P>$B$3$l$G(B hello.o $B%W%m%0%i%`$,%a%C%;!<%8$rKhIC=PNO$9$k$N$r3NG'$G$-$k$O$:$G$9!#(B
$B%^%7%s$N@_Dj$K$h$C$F$O!"%3%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CHED_FIFO, &p);
</PRE>
</P>
<HR>
<A HREF="RTLinux-HOWTO-6.html">$B<!$N%Z!<%8(B</A>
<A HREF="RTLinux-HOWTO-4.html">$BA0$N%Z!<%8(B</A>
<A HREF="RTLinux-HOWTO.html#toc5">$BL\<!$X(B</A>
</BODY>
</HTML>
|