Changeset 1739

Show
Ignore:
Timestamp:
05/30/03 05:13:07 (5 years ago)
Author:
mds
Message:

handle multiple UTS_RELEASE definitions in linux/version.h;

as suggested by Mark Hoffman.
Also revert -dirafter which doesn't work for gcc 2.95.2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/Makefile

    r1735 r1739  
    8585PREFIX := /usr/local 
    8686 
    87 # This is the directory into which the modules will be installed. 
     87# This is the main modules directory into which the modules will be installed. 
    8888# The magic invocation will return something like this: 
    89 #   /lib/modules/2.2.15-ac9/misc 
     89#   /lib/modules/2.2.15-ac9 
    9090#MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 
    91 MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'` 
    9291#MODPREF := /lib/modules/$(KERNELVERSION) 
     92#MODPREF := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'` 
     93MODPREF := /lib/modules/`$(CC) -I$(LINUX_HEADERS) -E etc/config.c | grep uts_release |cut -f 2 -d'"'` 
    9394 
    9495# This is the directory where sensors.conf will be installed, if no other 
     
    179180# ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries). 
    180181# LIBCPPFLAGS/LIBCFLAGS are for shared library objects. 
    181 ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -idirafter $(LINUX_HEADERS) 
     182#ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -idirafter $(LINUX_HEADERS) 
     183ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS) 
    182184ALL_CFLAGS := -O2  
    183185