Changeset 6
- Timestamp:
- 11/03/98 03:05:49 (15 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
Makefile (modified) (2 diffs)
-
i2c/Module.mk (modified) (1 diff)
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 -
lm-sensors/trunk/i2c/Module.mk
r5 r6 15 15 install :: $(TARGETS) 16 16 $(MKDIR) $(MODDIR) 17 install -o root -g root -m 644 $( MODDIR) $(TARGETS)17 install -o root -g root -m 644 $(TARGETS) $(MODDIR) 18 18 19 19 clean ::
