mirror of
https://github.com/gryf/ADFlib.git
synced 2026-02-10 18:25:46 +01:00
Removed obsolete warnings on endianness and 64bitness
This commit is contained in:
42
README
42
README
@@ -54,44 +54,18 @@ http://lclevy.free.fr/adflib
|
|||||||
COMPILATION
|
COMPILATION
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
It had been tested on Intel/Linux with gcc 2.7.2, Solaris 2.6, and
|
The following commands should automatically detect the system
|
||||||
Win32.
|
configuration and build the library and examples/unadf,
|
||||||
|
the ADF extractor binary.
|
||||||
|
|
||||||
Update (march 2006):
|
./autogen.sh
|
||||||
Makefiles has been modified to compile under Cygwin and gcc 3.4.4. (still 6 ISO C warning : normal)
|
./configure
|
||||||
|
make
|
||||||
The size of long must be 4, the size of short 2.
|
|
||||||
The library reads disk sectors written with the big endian (Motorola) byte
|
|
||||||
ordering.
|
|
||||||
|
|
||||||
You have to type :
|
|
||||||
|
|
||||||
make clean
|
|
||||||
make dep
|
|
||||||
make lib
|
|
||||||
|
|
||||||
A 'lidadf.a' should be created.
|
|
||||||
|
|
||||||
|
|
||||||
* Byte ordering
|
|
||||||
|
|
||||||
'make clean' remove the temporary files and the 'defendian.h'. In this file,
|
|
||||||
LITT_ENDIAN must be defined if the target machine uses the little endian
|
|
||||||
byte ordering, like this :
|
|
||||||
|
|
||||||
#ifndef LITT_ENDIAN
|
|
||||||
#define LITT_ENDIAN 1
|
|
||||||
#endif /* LITT_ENDIAN */
|
|
||||||
|
|
||||||
This should be done automatically by the 'myconf' shell script. myconf
|
|
||||||
autocompiles a C file which detects the byte ordering. The 'defendian.h'
|
|
||||||
is generated in 'myconf'. 'defendian.h' should be included in every .c file
|
|
||||||
which uses the LITT_ENDIAN define is used, otherwise the compiler could think
|
|
||||||
it is not defined, and the target machine is (always) using the big endian
|
|
||||||
byte ordering.
|
|
||||||
|
|
||||||
'myconf' is launched by 'make depend'.
|
|
||||||
|
|
||||||
|
FEATURES NEEDING FURTHER TESTS
|
||||||
|
------------------------------
|
||||||
|
|
||||||
* Native driver
|
* Native driver
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user