[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cinvoke-svn] r93 - trunk/cinvoke
From: |
will |
Subject: |
[cinvoke-svn] r93 - trunk/cinvoke |
Date: |
14 Jul 2006 23:45:06 -0400 |
Author: will
Date: 2006-07-14 23:45:06 -0400 (Fri, 14 Jul 2006)
New Revision: 93
Modified:
trunk/cinvoke/PORTING.txt
trunk/cinvoke/README.txt
trunk/cinvoke/configure.pl
Log:
fix for amd64
Modified: trunk/cinvoke/PORTING.txt
===================================================================
--- trunk/cinvoke/PORTING.txt 2006-07-15 03:38:35 UTC (rev 92)
+++ trunk/cinvoke/PORTING.txt 2006-07-15 03:45:06 UTC (rev 93)
@@ -1,4 +1,4 @@
-There are 4 steps (in general) to port C/Invoke to a new architecute:
+Here are the 4 (over-simplified) steps to port C/Invoke to a new architecute:
1) copy lib/arch/empty_empty_empty.c and .h to files named
<compiler>_<cpu>_<os>.c and .h. Add an entry to the main cinvoke-arch.h
@@ -6,7 +6,10 @@
2) Implement the new arch files. Use the comments inside the empty files for
guidance, the other arch files for examples, and the cinvoke-dev mailing list
for help.
-3) Get the source building. If your chosen platform has 'make', then you can
-make copies of the existing Makefiles and try to modify them.
+3) Get the source building. If your chosen platform is POSIX-based, you can
+modify configure.pl to adapt the Makefile system to your architecture. The
+build system is exquisitely simple: each directory has a Makefile.templ which
+gets evaluated as a perl string and substituted with the variables in the
+configure.pl script.
4) Get the test suite in the test/ directory running and spitting out the
correct values.
Modified: trunk/cinvoke/README.txt
===================================================================
--- trunk/cinvoke/README.txt 2006-07-15 03:38:35 UTC (rev 92)
+++ trunk/cinvoke/README.txt 2006-07-15 03:45:06 UTC (rev 93)
@@ -10,11 +10,10 @@
Please subscribe to the cinvoke-dev mailing list, more
information at the above URL.
-To build and install the library, run configure.sh to see a list of
-available platforms, then run it again to create the Makefiles. Then
-enter 'make', then edit the top-level Makefile to change the install path
-if neccessary, and enter 'make install'.
+To build and install the library:
-The language bindings in the bindings/ directory require the library
-to be installed in order to build; their Makefiles are not set up to build
-from C/Invoke compiled in the source directory.
+$ perl configure.pl --prefix=/usr/local
+$ make
+$ make install
+
+The language bindings in the bindings/ directory must be built separately.
Modified: trunk/cinvoke/configure.pl
===================================================================
--- trunk/cinvoke/configure.pl 2006-07-15 03:38:35 UTC (rev 92)
+++ trunk/cinvoke/configure.pl 2006-07-15 03:45:06 UTC (rev 93)
@@ -73,7 +73,7 @@
my $gccout = `gcc -dumpmachine`;
if ($gccout =~ m/i386/) {
$processor = 'X86';
- } elsif ($gccout =~ m/amd64/) {
+ } elsif ($gccout =~ m/x86_64/) {
$processor = 'X64';
} elsif ($gccout =~ m/ppc/) {
$processor = 'PPC';
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cinvoke-svn] r93 - trunk/cinvoke,
will <=