Show
Ignore:
Timestamp:
09/03/99 13:47:33 (15 years ago)
Author:
frodo
Message:

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

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/Makefile

    r544 r547  
    2727# SHELL=/usr/bin/bash 
    2828 
    29 # The location of your kernel headers (which should be the linux and asm 
    30 # subdirectories). For most people, the below works perfectly. If you use  
    31 # Debian, you may want to change this to something like /usr/src/linux/include. 
    32 LINUX_HEADERS=/usr/include 
     29# The location of linux itself. This is used to find the kernel headers 
     30# and other things. 
     31LINUX=/usr/src/linux 
     32LINUX_HEADERS=$(LINUX)/include 
    3333 
    3434# If you have installed the i2c header at some other place (like  
     
    3737# may be used mistakenly. 
    3838I2C_HEADERS=/usr/local/include 
    39  
    40 # The location of linux itself. This is only used to determine whether you 
    41 # use a SMP kernel in the magic invocation just below. 
    42 LINUX=/usr/src/linux 
    4339 
    4440# Uncomment the third line on SMP systems if the magic invocation fails. It 
     
    5854# Uncomment the second line if you are a developer. This will enable many 
    5955# additional warnings at compile-time 
    60 #WARN := 0 
    61 WARN := 1 
    62  
    63 # Uncomment the second line if you want to get (loads of) debug information. 
     56WARN := 0 
     57#WARN := 1 
     58 
     59# Uncomment the second line if you want to get (loads of) debug information 
     60# at run-time. 
    6461# Not recommended, unless you are actually debugging the code 
    6562DEBUG := 0 
     
    7067 
    7168# This is the directory into which the modules will be installed. 
    72 MODDIR := /lib/modules/current/extra/misc 
     69# The magic invocation will return something like this: 
     70#   /lib/modules/2.2.15-ac9/extra/misc 
     71MODDIR := /lib/modules/`sed -ne '1,4 { s/.*= *\(.*\)/\1/; 1,2 s/.*/&./; p; };' <$(LINUX)/Makefile | tr -d '\n'`/misc 
    7372 
    7473# This is the directory where sensors.conf will be installed, if no other 
     
    123122# all, install and clean. Use double colons instead of single ones 
    124123# to do this.  
     124 
    125125 
    126126# The subdirectories we need to build things in