diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | README.EXT | 33 | ||||
-rw-r--r-- | README.EXT.ja | 41 |
3 files changed, 18 insertions, 58 deletions
@@ -7,6 +7,8 @@ Mon Nov 1 13:59:28 2004 WATANABE Hirofumi <[email protected]> * MANIFEST, ext/**/MANIFEST: removed. + * README.EXT, README.EXT.ja: remove MANIFEST stuff. + Mon Nov 1 11:52:18 2004 NAKAMURA Usaku <[email protected]> * io.c (pipe_open): avoid conflict of variable name. [ruby-dev:24662] diff --git a/README.EXT b/README.EXT index c65c177a27..d832d1e0af 100644 --- a/README.EXT +++ b/README.EXT @@ -460,19 +460,11 @@ directory in the Ruby's source tree. Make a directory for the extension library under ext directory. -(2) create MANIFEST file - - % cd ext/dbm - % touch MANIFEST - -There should be MANIFEST file in the directory for the extension -library. Make an empty file for now. - -(3) design the library +(2) design the library You need to design the library features, before making it. -(4) write C code. +(3) write C code. You need to write C code for your extension library. If your library has only one source file, choosing ``LIBRARY.c'' as a file name is @@ -600,7 +592,7 @@ are not exported to the Ruby world. You need to protect them by void rb_global_variable(VALUE *var) -(5) prepare extconf.rb +(4) prepare extconf.rb If the file named extconf.rb exists, it will be executed to generate Makefile. If not, the compilation scheme will try to generate Makefile @@ -628,7 +620,7 @@ If a compilation condition is not fulfilled, you should not call ``create_makefile''. The Makefile will not generated, compilation will not be done. -(6) prepare depend (optional) +(5) prepare depend (optional) If the file named depend exists, Makefile will include that file to check dependencies. You can make this file by invoking @@ -637,16 +629,7 @@ check dependencies. You can make this file by invoking It's no harm. Prepare it. -(7) put file names into MANIFEST (optional) - - % find * -type f -print > MANIFEST - % vi MANIFEST - -Append file names into MANIFEST. The compilation scheme requires -MANIFEST only to exist, but it's better to take this step in order -to distinguish which files are required. - -(8) generate Makefile +(6) generate Makefile Try generating the Makefile by: @@ -656,7 +639,7 @@ You don't need this step if you put the extension library under the ext directory of the ruby source tree. In that case, compilation of the interpreter will do this step for you. -(9) make +(7) make Type @@ -665,13 +648,13 @@ Type to compile your extension. You don't need this step either if you have put extension library under the ext directory of the ruby source tree. -(9) debug +(8) debug You may need to rb_debug the extension. Extensions can be linked statically by the adding directory name in the ext/Setup file so that you can inspect the extension with the debugger. -(10) done, now you have the extension library +(9) done, now you have the extension library You can do anything you want with your library. The author of Ruby will not claim any restrictions on your code depending on the Ruby API. diff --git a/README.EXT.ja b/README.EXT.ja index c4d79f1c1e..7a4cb5df2a 100644 --- a/README.EXT.ja +++ b/README.EXT.ja @@ -542,28 +542,14 @@ Ruby 1.1�����Ǥ�դΥǥ��쥯�ȥ�ǥ����ʥߥå��饤�֥���� �饤�֥���ѤΥǥ��쥯�ȥ����ɬ�פ�����ޤ���̾����Ŭ���� ����ǹ����ޤ��� -(2) MANIFEST�ե�������� - - % cd ext/dbm - % touch MANIFEST - -��ĥ�饤�֥��Υǥ��쥯�ȥ�β��ˤ�MANIFEST�Ȥ����ե����뤬 -ɬ�פʤΤǡ��Ȥꤢ�������Υե�������äƤ����ޤ�����Ǥ��� -�ե�����ˤ�ɬ�פʥե�������������뤳�Ȥˤʤ�ޤ��� - -MANIFEST�Ȥ����ե�����ϡ���Ū���make�λ��˥ǥ��쥯�ȥ� -����ĥ�饤�֥���ޤ�Ǥ��뤫�ɤ���Ƚ�ꤹ�뤿��˻Ȥ���� -���ޤ��������ʥߥå��饤�֥�������ˤ�ɬ������ɬ�פǤ� -����ޤ��� - -(3) �߷פ��� +(2) �߷פ��� �ޤ��������ʤ�Ǥ����ɡ��ɤ�������ǽ��¸����뤫�ɤ����ޤ��� �פ���ɬ�פ�����ޤ����ɤ�ʥ��饹��Ĥ��뤫�����Υ��饹�ˤ� �ɤ�ʥ�åɤ����뤫�����饹����������ʤɤˤĤ����߷� ���ޤ��� -(4) C�����ɤ�� +(3) C�����ɤ�� ��ĥ�饤�֥�����ΤȤʤ�C����Υ�������ޤ���C����Υ��� �����ҤȤĤλ��ˤϡ֥饤�֥��̾.c�פ����֤��ɤ��Ǥ��礦��C @@ -706,7 +692,7 @@ C������ѿ��ϰʲ��δؿ���Ȥä�Ruby���ץ���ѿ���¸�� void rb_global_variable(VALUE *var) -(5) extconf.rb���Ѱդ��� +(4) extconf.rb���Ѱդ��� Makefile������ο����ˤʤ�extconf.rb�Ȥ����ե�������� �ޤ���extconf.rb�ϥ饤�֥��Υ���ѥ����ɬ�פʾ��Υ����� @@ -731,7 +717,7 @@ Makefile������ο����ˤʤ�extconf.rb�Ȥ����ե�������� �ѥ��뤷�ʤ����ˤ�create_makefile��ƤФʤ����Makefile���� �����줺������ѥ����Ԥ��ޤ��� -(6) depend���Ѱդ��� +(5) depend���Ѱդ��� �⤷���ǥ��쥯�ȥ��depend�Ȥ����ե����뤬¸�ߤ���С� Makefile����¸�ط�������å����Ƥ���ޤ��� @@ -740,18 +726,7 @@ Makefile����¸�ط�������å����Ƥ���ޤ��� �ʤɤǺ�뤳�Ȥ�����ޤ������ä�»��̵���Ǥ��礦�� -(7) MANIFEST�ե�����˥ե�����̾������� - - % find * -type f -print > MANIFEST - % vi MANIFEST - -*.o, *~�ʤ���ɬ�פʥե�����ʳ���MANIFEST���ɲä��Ƥ����ޤ��� -make���ˤ�MANIFEST�����Ƥϻ��Ȥ��ޤ���Τǡ����ΤޤޤǤ����� -�ϵ����ޤ����ѥå������λ��˻��Ȥ��뤳�Ȥ�����Τȡ� -ɬ�פʥե��������̤Ǥ���Τǡ��Ѱդ��Ƥ����������ɤ��Ǥ��� -���� - -(8) Makefile���������� +(6) Makefile���������� Makefile��ºݤ��������뤿��ˤ� @@ -767,7 +742,7 @@ Makefile��ºݤ��������뤿��ˤ� �ǥ��쥯�ȥ��ext�ʲ����Ѱդ������ˤ�Ruby���Τ�make�λ��� ��ưŪ��Makefile����������ޤ��Τǡ����Υ��ƥåפ����פǤ��� -(9) make���� +(7) make���� ưŪ��饤�֥�������������ˤϤ��ξ��make���Ƥ����� ����ɬ�פǤ���� make install �ǥ��ȡ��뤵��ޤ��� @@ -785,13 +760,13 @@ extconf.rb�������ʤɤ���Makefile�κ�������ɬ�פʻ��Ϥ� ���ꡤ������ ��ĥ�� .rb �Υե�������֤��Ƥ�����Ʊ���˥��� ���ȡ��뤵��ޤ��� -(10) �ǥХå� +(8) �ǥХå� �ޤ����ǥХå����ʤ���ư���ʤ��Ǥ��礦�͡�ext/Setup�˥ǥ��� ���ȥ�̾�����Ū�˥����ΤǥǥХå����Ȥ���褦�ˤ� ��ޤ�������ʬ����ѥ��뤬�٤��ʤ�ޤ����ɡ� -(11) �Ǥ������� +(9) �Ǥ������� ��Ϥ��ä���Ȥ��ʤꡤ������������ʤꡤ���ʤꡤ����ͳ�ˤ� �Ȥ�����������Ruby�κ�Ԥϳ�ĥ�饤�֥��˴ؤ��ư��ڤθ����� |