2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

lib/Module.mk correction, to stop ldconfig from choking

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@92 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard
1998-12-19 10:36:55 +00:00
parent c4cb096dd9
commit e49c6712bf
6 changed files with 12 additions and 13 deletions

View File

@@ -107,6 +107,8 @@ CC := gcc
BISON := bison
FLEX := flex
AR := ar
INSTALL := install
LN := ln -sfn
# Determine the default compiler flags
# MODCFLAGS is to create in-kernel object files (modules); PROGFLAGS is to

View File

@@ -36,8 +36,8 @@ all :: all-i2c
install-i2c:
$(MKDIR) $(MODDIR) $(SYSINCLUDEDIR)
install -o root -g root -m 644 $(I2CTARGETS) $(MODDIR)
install -o root -g root -m 644 $(I2CHEADERFILES) $(SYSINCLUDEDIR)
$(INSTALL) -o root -g root -m 644 $(I2CTARGETS) $(MODDIR)
$(INSTALL) -o root -g root -m 644 $(I2CHEADERFILES) $(SYSINCLUDEDIR)
install :: install-i2c
clean-i2c:

View File

@@ -30,10 +30,7 @@ INCLUDEFILES += $(I2CDRIVERTARGETS:.o=.d)
all-i2c-drivers: $(I2CDRIVERTARGETS)
all :: all-i2c-drivers
install-i2c-drivers:
$(MKDIR) $(MODDIR)
install -o root -g root -m 644 $(I2CDRIVERTARGETS) $(MODDIR)
install :: install-i2c-drivers
# No install rule: Our own eeprom.o driver is better :-)
clean-i2c-drivers:
$(RM) $(I2CDRIVERTARGETS) $(I2CDRIVERTARGETS:.o=.d)

View File

@@ -39,8 +39,8 @@ all :: all-src
install-src:
$(MKDIR) $(MODDIR) $(SYSINCLUDEDIR)
install -o root -g root -m 644 $(SRCTARGETS) $(MODDIR)
install -o root -g root -m 644 $(SRCHEADERFILES) $(SYSINCLUDEDIR)
$(INSTALL) -o root -g root -m 644 $(SRCTARGETS) $(MODDIR)
$(INSTALL) -o root -g root -m 644 $(SRCHEADERFILES) $(SYSINCLUDEDIR)
install :: install-src
clean-src:

View File

@@ -44,7 +44,7 @@ LIBHEADERFILES := $(MODULE_DIR)/error.h
# How to create the shared library
$(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
$(CC) -shared -Wl,-soname,$(LIBSONAME) -o $@ $^ -lc
$(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc
# And the static library
$(MODULE_DIR)/$(LIBSTLIBNAME): $(LIBSTOBJECTS)
@@ -66,10 +66,10 @@ all :: all-lib
install-lib:
$(MKDIR) $(LIBDIR) $(LIBINCLUDEDIR)
install -o root -g root -m 644 $(LIBTARGETS) $(LIBDIR)
$(INSTALL) -o root -g root -m 644 $(LIBTARGETS) $(LIBDIR)
$(LN) $(LIBSHLIBNAME) $(LIBDIR)/$(LIBSHSONAME)
$(LN) $(LIBSHSONAME) $(LIBDIR)/$(LIBSHBASENAME)
install -o root -g root -m 644 $(LIBHEADERFILES) $(LIBINCLUDEDIR)
$(INSTALL) -o root -g root -m 644 $(LIBHEADERFILES) $(LIBINCLUDEDIR)
install :: install-lib
clean-lib:

View File

@@ -39,8 +39,8 @@ all :: all-src
install-src:
$(MKDIR) $(MODDIR) $(SYSINCLUDEDIR)
install -o root -g root -m 644 $(SRCTARGETS) $(MODDIR)
install -o root -g root -m 644 $(SRCHEADERFILES) $(SYSINCLUDEDIR)
$(INSTALL) -o root -g root -m 644 $(SRCTARGETS) $(MODDIR)
$(INSTALL) -o root -g root -m 644 $(SRCHEADERFILES) $(SYSINCLUDEDIR)
install :: install-src
clean-src: