Changeset 3096 for lm-sensors/trunk/Makefile
- Timestamp:
- 09/18/05 22:39:53 (8 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/Makefile
r3087 r3096 87 87 MODPREF := /lib/modules/$(shell $(CC) -I$(LINUX_HEADERS) -E etc/config.c | grep uts_release |cut -f 2 -d'"') 88 88 89 # When building userspace for use with 2.4.x series kernels, we turn off 90 # sysfs support by default. You can override this (e.g. if you want 91 # to build binaries that work for both 2.4.x, and 2.6.x and above) 92 # by uncommenting the line after the next endif. Keep in mind, if and only 93 # if you do this: you will need to install the libsysfs libraries on your 94 # kernel 2.4.x systems also. 95 ifeq (,$(findstring /2.4., $(MODPREF))) 96 SYSFS_SUPPORT := 1 97 else 98 SYSFS_SUPPORT := 99 endif 100 #SYSFS_SUPPORT := 1 101 89 102 # Prevent 2.6+ users from using improper targets, as this won't work. 90 103 ifeq (,$(findstring /2.4., $(MODPREF))) … … 258 271 PROGCFLAGS := $(ALL_CFLAGS) 259 272 ARCPPFLAGS := $(ALL_CPPFLAGS) 273 ifdef SYSFS_SUPPORT 274 ARCPPFLAGS := $(ARCPPFLAGS) -DSYSFS_SUPPORT 275 endif 260 276 ARCFLAGS := $(ALL_CFLAGS) 261 277 LIBCPPFLAGS := $(ALL_CPPFLAGS) 278 ifdef SYSFS_SUPPORT 279 LIBCPPFLAGS := $(LIBCPPFLAGS) -DSYSFS_SUPPORT 280 endif 262 281 LIBCFLAGS := -fpic $(ALL_CFLAGS) 263 282
