mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +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
|
||||
to compile the version included in this package. In that case, check
|
||||
the file i2c/MODIFICATIONS in this package to see what versions are
|
||||
OK.
|
||||
safe.
|
||||
* WARN, DEBUG
|
||||
These options should only be needed if you are an active developer of
|
||||
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.
|
||||
* INCLUDEDIR
|
||||
The directory where 'make install' installs your include files.
|
||||
* LIBDIR ($(PREFIX)/lib)
|
||||
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
|
||||
NOT compatible with this module! Actually, Simon Vogl's modules (which
|
||||
ARE compatible) is scheduled to replace the current support. If you
|
||||
NOT compatible with this module! Actually, Simon Vogl's modules package
|
||||
(which IS compatible) is scheduled to replace the current support. If you
|
||||
actually use these modules, you have a problem; they can not coexist
|
||||
with Simon's modules. Theoretically, you should be able to replace
|
||||
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.
|
||||
* .rd
|
||||
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
|
||||
Object files for executables. They will be linked together to create
|
||||
the executable. This extension is used to distinguish them from
|
||||
modules (which end on .o). Also, using a different extensions makes
|
||||
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
|
||||
you want to know more.
|
||||
|
@@ -35,9 +35,9 @@ all-i2c: $(I2CTARGETS)
|
||||
all :: all-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 $(I2CHEADERFILES) $(INCLUDEDIR)
|
||||
install -o root -g root -m 644 $(I2CHEADERFILES) $(SYSINCLUDEDIR)
|
||||
install :: install-i2c
|
||||
|
||||
clean-i2c:
|
||||
|
@@ -38,9 +38,9 @@ all-src: $(SRCTARGETS)
|
||||
all :: all-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 $(SRCHEADERFILES) $(INCLUDEDIR)
|
||||
install -o root -g root -m 644 $(SRCHEADERFILES) $(SYSINCLUDEDIR)
|
||||
install :: install-src
|
||||
|
||||
clean-src:
|
||||
|
@@ -38,9 +38,9 @@ all-src: $(SRCTARGETS)
|
||||
all :: all-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 $(SRCHEADERFILES) $(INCLUDEDIR)
|
||||
install -o root -g root -m 644 $(SRCHEADERFILES) $(SYSINCLUDEDIR)
|
||||
install :: install-src
|
||||
|
||||
clean-src:
|
||||
|
Reference in New Issue
Block a user