Matthias Andree's patch to find a better module directory to install

into. A a few other Makefile define changes. Nothing really
        important.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@547 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-09-03 11:47:33 +00:00
1 parent 1751823610
commit 576d91ee84
1 file changed
+12 -12
+12 -12
View File
@@ -26,10 +26,10 @@
# I think so, but I have not tested it. # I think so, but I have not tested it.
# SHELL=/usr/bin/bash # SHELL=/usr/bin/bash
# The location of your kernel headers (which should be the linux and asm # The location of linux itself. This is used to find the kernel headers
# subdirectories). For most people, the below works perfectly. If you use # and other things.
# Debian, you may want to change this to something like /usr/src/linux/include. LINUX=/usr/src/linux
LINUX_HEADERS=/usr/include LINUX_HEADERS=$(LINUX)/include
# If you have installed the i2c header at some other place (like # If you have installed the i2c header at some other place (like
# /usr/local/include/linux), set that directory here. Please check this out # /usr/local/include/linux), set that directory here. Please check this out
@@ -37,10 +37,6 @@ LINUX_HEADERS=/usr/include
# may be used mistakenly. # may be used mistakenly.
I2C_HEADERS=/usr/local/include I2C_HEADERS=/usr/local/include
# The location of linux itself. This is only used to determine whether you
# use a SMP kernel in the magic invocation just below.
LINUX=/usr/src/linux
# Uncomment the third line on SMP systems if the magic invocation fails. It # Uncomment the third line on SMP systems if the magic invocation fails. It
# is a bit complicated because SMP configuration changed around kernel 2.1.130 # is a bit complicated because SMP configuration changed around kernel 2.1.130
SMP := $(shell if grep -q '^SMP[[:space:]]*=' $(LINUX)/Makefile || \ SMP := $(shell if grep -q '^SMP[[:space:]]*=' $(LINUX)/Makefile || \
@@ -57,10 +53,11 @@ MODVER := $(shell if cat $(LINUX_HEADERS)/linux/config.h $(LINUX_HEADERS)/linux/
# Uncomment the second line if you are a developer. This will enable many # Uncomment the second line if you are a developer. This will enable many
# additional warnings at compile-time # additional warnings at compile-time
#WARN := 0 WARN := 0
WARN := 1 #WARN := 1
# Uncomment the second line if you want to get (loads of) debug information. # Uncomment the second line if you want to get (loads of) debug information
# at run-time.
# Not recommended, unless you are actually debugging the code # Not recommended, unless you are actually debugging the code
DEBUG := 0 DEBUG := 0
#DEBUG := 1 #DEBUG := 1
@@ -69,7 +66,9 @@ DEBUG := 0
PREFIX := /usr/local PREFIX := /usr/local
# This is the directory into which the modules will be installed. # This is the directory into which the modules will be installed.
MODDIR := /lib/modules/current/extra/misc # The magic invocation will return something like this:
# /lib/modules/2.2.15-ac9/extra/misc
MODDIR := /lib/modules/`sed -ne '1,4 { s/.*= *\(.*\)/\1/; 1,2 s/.*/&./; p; };' <$(LINUX)/Makefile | tr -d '\n'`/misc
# This is the directory where sensors.conf will be installed, if no other # This is the directory where sensors.conf will be installed, if no other
# configuration file is found # configuration file is found
@@ -123,6 +122,7 @@ MANGRP := root
# all, install and clean. Use double colons instead of single ones # all, install and clean. Use double colons instead of single ones
# to do this. # to do this.
# The subdirectories we need to build things in # The subdirectories we need to build things in
SRCDIRS := kernel kernel/busses kernel/chips kernel/include lib prog/sensors \ SRCDIRS := kernel kernel/busses kernel/chips kernel/include lib prog/sensors \
prog/dump prog/detect etc prog/dump prog/detect etc