1
2                            $BH~>/=w%3%9%W%l;~7W(B
3                                Emi Clock
4                              ($B$($_$/$m$C$/(B)
5                      for X Window System, Version 11
6
7                        $B!=(B $B#O#S%F%/%K%+%k%N!<%H(B $B!=(B
8
9
10					$B8E>l(B $B@59T(B ($B$3$P(B $B$^$5$f$-(B)
11					    E-mail: koba@hoge.org
12
13
14$B#1!%(BEmi Clock $B$N%3%s%Q%$%k;~$K$*$1$k#O#SG'<1<jCJ$K$D$$$F(B
15
16  $B!!(BX11$BHG(B Emi Clock $B$O!"(Bxmkmf; make $B0lH/$G%3%s%Q%$%k2DG=$J$h$&$K!"#O#S$N(B cpp
17  $B$,Dj5A$7$F$$$k%i%Y%k!"$*$h$S(B imake $B;HMQ;~$KDj5A$5$l$k%i%Y%k$r!"%3%s%Q%$%k;~(B
18  $B$b$7$/$O(B imake $B5/F0;~$K;2>H$7$F$$$^$9!#(B
19
20  $B!!8=:_!"8E>l$N<j85$K=8$^$C$F$$$k>pJs$O!"0J2<$NDL$j$G$9!#(B
21
22
23$B%^%7%s(B     OS            $B%3%s%Q%$%k;~$N(B imake$B;HMQ;~$N(B      -l$B$[$($[$((B
24                           -D$B$[$2$[$2(B  #define $B$U$K$U$K(B
25IBM-PC/AT  BSDI BSD/OS    __bsdi__     i386BsdArchitecture (none)
26                                       i386Bsdi
27IBM-PC/AT  386BSD         __386BSD__   i386BsdArchitecture (none)
28IBM-PC/AT  FreeBSD        __FreeBSD__  i386BsdArchitecture (none)
29                          __386BSD__   i386FreeBsd
30                                       FreeBSDArchitecture
31SONY NEWS  NEWS-OS 4.x    sony_news    SonyArchitecture    -lsound*
32           NEWS-OS 6.x    __sony_news
33SGI Iris   IRIX 5.x       sgi          SGIArchitecture     -laudio -laudiofile*
34                          SYSTYPE_SVR4
35           IRIX 4.x       sgi          SGIArchitecture     -laudio -laudiofile*
36HP9000/700 HP-UX 8.07     __hpux       HPArchitecture      -lAlib*
37Sun        SunOS 4.1.x    sun          SunArchitecture     -laudio*
38           Solaris 2.x    sun          SunArchitecture     -laudio*
39IBM-PC/AT  Linux          linux        LinuxArchitecture   (none)
40DEC3000    DEC OSF/1 V1.3 __osf__      AlphaArchitecture   (none)
41                          __alpha
42
43  * $B%5%&%s%I%i%$%V%i%j$rMxMQ$9$k>l9g$N$_!#(B
44
45
46  $B!!$*<j?t$G$9$,!"$3$3$K5-:\$5$l$F$$$J$$#O#S$N>pJs$r8E>l$^$GDs6!$7$F$$$?$@$1$k(B
47  $B$H=u$+$j$^$9!#(B
48
49
50  $B#1(B.$B#1(B cpp $B$,Dj5A$7$F$$$k%i%Y%k$rD4$Y$kJ}K!(B
51
52    (1) touch test.c; cc -v -c test.c $B$H<B9T$7$F$_$F$/$@$5$$!#$[$H$s$I$N(B cc $B$O(B
53      $B$3$&$d$k$3$H$G(B cpp $B$KEO$7$F$$$k%i%Y%k$r%l%]!<%H$7$F$/$l$^$9!#(B
54
55    (2) $B>e$NJ}K!$,;H$($J$$>l9g$O!"(Bcc $B$d(B cpp $B$r(B strings $B$GD4$Y$F$_$F$/$@$5$$!#(B
56
57
58  $B#1(B.$B#2(B imake $B;HMQ;~$KDj5A$5$l$k%i%Y%k$rD4$Y$kJ}K!(B
59
60    (1) X11 $B$N(B Imake.tmpl $B$*$h$S(B Imake.tmpl $B$K(B #include $B$5$l$k(B MacroIncludeFile
61      (*.cf $B%U%!%$%k(B)$B$*$h$S(B site.def $B$rD4$Y$F$/$@$5$$!#(BImake.tmpl $B$=$NB>$O(B
62		$(LIBDIR)/config (/usr/X11R6/lib/X11/config $BEy(B)
63      $B$KB8:_$7$^$9!#(B
64
65    (2) $B<!$N$h$&$J(B Imakefile $B$r:n$C$F!"!V$3$l$@!*!W8+Ev$r$D$1$?%i%Y%k$,@5$7$/(B
66      $BG'<1$5$l$k$3$H$r3NG'$7$F$/$@$5$$!#(B
67
68---- Imakefile ($B$3$3$+$i(B) ----
69all::
70#if defined(i386BsdArchitecture) && defined(i386Bsdi)
71	@echo "BSDI BSD/OS"
72#else
73	@echo "Unknown OS"
74#endif
75---- Imakefile ($B$3$3$^$G(B) ----
76
77      $B>e$N%U%!%$%k$r(B Imakefile $B$H$$$&L>>N$G%;!<%V$7$FE,Ev$KJQ99$7!"(B
78		xmkmf; make
79      $B$r<B9T$7$^$7$g$&!#(B
80
81
82  $B#1(B.$B#3(B $B%l%]!<$9$kFbMF$O!D(B
83
84  $B!!(Bcpp $B$H(B imake $B$,;HMQ$9$k#O#SFH<+$N%i%Y%k$r3NG'$7$?$i!"<!$N%U%)!<%^%C%H$G>p(B
85  $BJs$rAw$C$F$$$?$@$1$k$H=u$+$j$^$9!#(B
86
87----$B!!$3$3$+$i!!(B----
88$B%^%7%s(B     OS            $B%3%s%Q%$%k;~$N(B imake$B;HMQ;~$N(B      -l$B$[$($[$((B
89                           -D$B$[$2$[$2(B  #define $B$U$K$U$K(B
90
91<$B%^%7%sL>(B> <OS $B$NL>>N(B>    <$B%i%Y%k#1(B>   <$B%i%Y%k#2(B>          ($B$b$7$"$l$P(B)
92----$B!!$3$3$^$G!!(B----
93
94
95$B#2!%(Bgettimeofday(2) $B%7%9%F%`%3!<%k$K$D$$$F(B
96
97  $B!!(BX11$BHG(B Emi Clock $B$O!"(Bgettimeofday(2) $B$r%5%]!<%H$7$F$$$k#O#S$N>l9g!"$3$N%7%9(B
98  $B%F%`%3!<%k$r;H$&$3$H$K$h$C$F!"8=:_;~9o$K(B ms $BC10L$G@53N$KDI=>$7$h$&$H$7$^$9!#(B
99
100  $B!!8=:_!"8E>l$,GD0.$7$F$$$k(B gettimeofday(2) $B$r<BAu$7$?#O#S$O!"<!$NDL$j$G$9!#(B
101
102	$B%^%7%s(B			OS
103	IBM-PC/AT $B8_495!(B	BSDI BSD/OS
104	IBM-PC/AT $B8_495!(B	386BSD $B7O(B
105	SONY NEWS		NEWS-OS 4.x
106	SGI Iris		IRIX
107	HP			HP-UX
108	Sun			SunOS 4.1.x
109	Sun			Solaris
110
111  $B!!$*<j?t$G$9$,!"$3$3$K5-:\$5$l$F$$$J$$#O#S$K$*$$$F!"(Binclude/system.h $B>e$G(B
112	#define HAVE_GETTIMEOFDAY
113  $B$HDj5A$7$?>l9g$K(B Emi Clock $B$,@5$7$/%j%s%/!uF0:n$G$-$k$h$&$G$7$?$i!"$=$N#O#S(B
114  $B$N>pJs$r8E>l$^$GDs6!$7$F$$$?$@$1$k$H=u$+$j$^$9!#(B($B$=$N>l9g!"#O#S$N(B cpp $B$,Dj5A(B
115  $B$7$F$$$k%i%Y%k>pJs$NDs6!$bI,?\$H$J$j$^$9!#(B)
116
117
118								      $B!=0J>e!=(B
119
120$Id: README-OS.ja,v 1.2 1999/09/02 14:33:52 koba Exp $
121