Changeset 6 for lm-sensors/trunk/Makefile
- Timestamp:
- 11/03/98 03:05:49 (15 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/Makefile
r5 r6 1 # Uncomment the second line on SMP systems if the magic invocation fails. 1 # Uncomment the third line on SMP systems if the magic invocation fails. 2 SMP := $(shell if grep -q '^SMP[[:space:]]*=' /usr/src/linux/Makefile; then echo 1; else echo 0; fi) 2 3 #SMP := 0 3 4 #SMP := 1 4 SMP := $(shell if grep -q '^SMP[[:space:]]*=' /usr/src/linux/Makefile; then echo 1; else echo 0; fi) 5 6 # Uncomment the second or third line if the magic invocation fails. 7 # We need to know whether CONFIG_MODVERSIONS is defined. 8 MODVER := $(shell if cat /usr/include/linux/config.h /usr/include/linux/autoconf.h 2>/dev/null | grep -q '^[[:space:]]*\#define[[:space:]]*CONFIG_MODVERSIONS[[:space:]]*1'; then echo 1; else echo 0; fi) 9 #MODVER := 0 10 #MODVER := 1 5 11 6 12 # Uncomment the second line if you do not want to compile the included … … 61 67 endif 62 68 69 ifeq ($(MODVER),1) 70 CFLAGS += -DMODVERSIONS -include /usr/include/linux/modversions.h 71 endif 72 63 73 .PHONY: all clean install version package 64 74
