mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-03 07:45:30 +00:00
Makefile documentation updates, and two additional Makefile fixes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@89 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
21
INSTALL
21
INSTALL
@@ -15,18 +15,27 @@ this package. Some interesting variables:
|
|||||||
If you already have Simon Vogl's i2c package installed, you may not have
|
If you already have Simon Vogl's i2c package installed, you may not have
|
||||||
to compile the version included in this package. In that case, check
|
to compile the version included in this package. In that case, check
|
||||||
the file i2c/MODIFICATIONS in this package to see what versions are
|
the file i2c/MODIFICATIONS in this package to see what versions are
|
||||||
OK.
|
safe.
|
||||||
* WARN, DEBUG
|
* WARN, DEBUG
|
||||||
These options should only be needed if you are an active developer of
|
These options should only be needed if you are an active developer of
|
||||||
this package.
|
this package.
|
||||||
* MODDIR
|
* PREFIX (/usr/local)
|
||||||
|
The prefix which is added to most directory locations below.
|
||||||
|
* MODDIR (/lib/modules/extra/misc)
|
||||||
The directory where 'make install' installs your modules.
|
The directory where 'make install' installs your modules.
|
||||||
* INCLUDEDIR
|
* LIBDIR ($(PREFIX)/lib)
|
||||||
The directory where 'make install' installs your include files.
|
The directory where 'make install' installs the shared and static libraries.
|
||||||
|
* BINDIR ($(PREFIX)/bin)
|
||||||
|
The directory where 'make install' installs all executables.
|
||||||
|
* INCLUDEDIR ($(PREFIX)/include)
|
||||||
|
The basic directory where 'make install' installs your include files.
|
||||||
|
Actually, SYSINCLUDEDIR ($(INCLUDEDIR)/linux) is used for kernel header
|
||||||
|
files, and LIBINCLUDEDIR ($(INCLUDEDIR)/sensors) is used for library
|
||||||
|
header files.
|
||||||
|
|
||||||
Warning! In newer 2.1 kernels, there is support for I2C. This support is
|
Warning! In newer 2.1 kernels, there is support for I2C. This support is
|
||||||
NOT compatible with this module! Actually, Simon Vogl's modules (which
|
NOT compatible with this module! Actually, Simon Vogl's modules package
|
||||||
ARE compatible) is scheduled to replace the current support. If you
|
(which IS compatible) is scheduled to replace the current support. If you
|
||||||
actually use these modules, you have a problem; they can not coexist
|
actually use these modules, you have a problem; they can not coexist
|
||||||
with Simon's modules. Theoretically, you should be able to replace
|
with Simon's modules. Theoretically, you should be able to replace
|
||||||
the old modules with the new stuff in our i2c directory, recompile
|
the old modules with the new stuff in our i2c directory, recompile
|
||||||
|
@@ -55,11 +55,21 @@ Several files are generated by Makefiles:
|
|||||||
Dependency files for modules. Automatically generated.
|
Dependency files for modules. Automatically generated.
|
||||||
* .rd
|
* .rd
|
||||||
Dependency files for executables. Automatically generated.
|
Dependency files for executables. Automatically generated.
|
||||||
|
* .ao
|
||||||
|
Dependency files for static libraries. Automatically generated.
|
||||||
|
* .lo
|
||||||
|
Dependency files for shared libraries. Automatically generated.
|
||||||
|
* .o
|
||||||
|
Generated modules
|
||||||
* .ro
|
* .ro
|
||||||
Object files for executables. They will be linked together to create
|
Object files for executables. They will be linked together to create
|
||||||
the executable. This extension is used to distinguish them from
|
the executable. This extension is used to distinguish them from
|
||||||
modules (which end on .o). Also, using a different extensions makes
|
modules (which end on .o). Also, using a different extensions makes
|
||||||
the Makefile fragments much simpler.
|
the Makefile fragments much simpler.
|
||||||
|
* .ao
|
||||||
|
Object files for static libraries
|
||||||
|
* .lo
|
||||||
|
Object files for shared libraries
|
||||||
|
|
||||||
There are lots of comments within the main Makefile. Please read them if
|
There are lots of comments within the main Makefile. Please read them if
|
||||||
you want to know more.
|
you want to know more.
|
||||||
|
@@ -35,9 +35,9 @@ all-i2c: $(I2CTARGETS)
|
|||||||
all :: all-i2c
|
all :: all-i2c
|
||||||
|
|
||||||
install-i2c:
|
install-i2c:
|
||||||
$(MKDIR) $(MODDIR) $(INCLUDEDIR)
|
$(MKDIR) $(MODDIR) $(SYSINCLUDEDIR)
|
||||||
install -o root -g root -m 644 $(I2CTARGETS) $(MODDIR)
|
install -o root -g root -m 644 $(I2CTARGETS) $(MODDIR)
|
||||||
install -o root -g root -m 644 $(I2CHEADERFILES) $(INCLUDEDIR)
|
install -o root -g root -m 644 $(I2CHEADERFILES) $(SYSINCLUDEDIR)
|
||||||
install :: install-i2c
|
install :: install-i2c
|
||||||
|
|
||||||
clean-i2c:
|
clean-i2c:
|
||||||
|
@@ -38,9 +38,9 @@ all-src: $(SRCTARGETS)
|
|||||||
all :: all-src
|
all :: all-src
|
||||||
|
|
||||||
install-src:
|
install-src:
|
||||||
$(MKDIR) $(MODDIR) $(INCLUDEDIR)
|
$(MKDIR) $(MODDIR) $(SYSINCLUDEDIR)
|
||||||
install -o root -g root -m 644 $(SRCTARGETS) $(MODDIR)
|
install -o root -g root -m 644 $(SRCTARGETS) $(MODDIR)
|
||||||
install -o root -g root -m 644 $(SRCHEADERFILES) $(INCLUDEDIR)
|
install -o root -g root -m 644 $(SRCHEADERFILES) $(SYSINCLUDEDIR)
|
||||||
install :: install-src
|
install :: install-src
|
||||||
|
|
||||||
clean-src:
|
clean-src:
|
||||||
|
@@ -38,9 +38,9 @@ all-src: $(SRCTARGETS)
|
|||||||
all :: all-src
|
all :: all-src
|
||||||
|
|
||||||
install-src:
|
install-src:
|
||||||
$(MKDIR) $(MODDIR) $(INCLUDEDIR)
|
$(MKDIR) $(MODDIR) $(SYSINCLUDEDIR)
|
||||||
install -o root -g root -m 644 $(SRCTARGETS) $(MODDIR)
|
install -o root -g root -m 644 $(SRCTARGETS) $(MODDIR)
|
||||||
install -o root -g root -m 644 $(SRCHEADERFILES) $(INCLUDEDIR)
|
install -o root -g root -m 644 $(SRCHEADERFILES) $(SYSINCLUDEDIR)
|
||||||
install :: install-src
|
install :: install-src
|
||||||
|
|
||||||
clean-src:
|
clean-src:
|
||||||
|
Reference in New Issue
Block a user