mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-26 20:38:20 +00:00
Make it possible to skip building of the static library. Just run:
make BUILD_STATIC_LIB=0 git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5711 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
e0ad43a545
commit
2ea3bf392b
3 files changed
+15
-3
No files matched your search
@@ -5,6 +5,7 @@ SVN-HEAD
|
|||||||
isadump: Use geteuid instead of getuid so that setuid bit works
|
isadump: Use geteuid instead of getuid so that setuid bit works
|
||||||
isaset: Use geteuid instead of getuid so that setuid bit works
|
isaset: Use geteuid instead of getuid so that setuid bit works
|
||||||
Makefile: Include generated source files in dependency checking
|
Makefile: Include generated source files in dependency checking
|
||||||
|
Make it possible to skip building of the static library
|
||||||
sensors-detect: Add nNidia nForce MCP78S SMBus detection
|
sensors-detect: Add nNidia nForce MCP78S SMBus detection
|
||||||
Display Super-I/O address even if LD is disabled
|
Display Super-I/O address even if LD is disabled
|
||||||
Differentiate between PC8374L and WPCD377I
|
Differentiate between PC8374L and WPCD377I
|
||||||
|
|||||||
@@ -80,7 +80,10 @@ MANDIR := $(PREFIX)/man
|
|||||||
MACHINE := $(shell uname -m)
|
MACHINE := $(shell uname -m)
|
||||||
|
|
||||||
# Extra non-default programs to build; e.g., sensord
|
# Extra non-default programs to build; e.g., sensord
|
||||||
# PROG_EXTRA := sensord
|
#PROG_EXTRA := sensord
|
||||||
|
|
||||||
|
# Build and install static library
|
||||||
|
BUILD_STATIC_LIB := 1
|
||||||
|
|
||||||
# Set these to add preprocessor or compiler flags, or use
|
# Set these to add preprocessor or compiler flags, or use
|
||||||
# environment variables
|
# environment variables
|
||||||
|
|||||||
+10
-2
@@ -43,8 +43,11 @@ LIBSHLIBNAME := libsensors.so.$(LIBVER)
|
|||||||
LIBSTLIBNAME := libsensors.a
|
LIBSTLIBNAME := libsensors.a
|
||||||
LIBSHSONAME := libsensors.so.$(LIBMAINVER)
|
LIBSHSONAME := libsensors.so.$(LIBMAINVER)
|
||||||
|
|
||||||
LIBTARGETS := $(MODULE_DIR)/$(LIBSTLIBNAME) $(MODULE_DIR)/$(LIBSHLIBNAME) \
|
LIBTARGETS := $(MODULE_DIR)/$(LIBSHLIBNAME) \
|
||||||
$(MODULE_DIR)/$(LIBSHSONAME) $(MODULE_DIR)/$(LIBSHBASENAME)
|
$(MODULE_DIR)/$(LIBSHSONAME) $(MODULE_DIR)/$(LIBSHBASENAME)
|
||||||
|
ifeq ($(BUILD_STATIC_LIB),1)
|
||||||
|
LIBTARGETS += $(MODULE_DIR)/$(LIBSTLIBNAME)
|
||||||
|
endif
|
||||||
|
|
||||||
LIBCSOURCES := $(MODULE_DIR)/data.c $(MODULE_DIR)/general.c \
|
LIBCSOURCES := $(MODULE_DIR)/data.c $(MODULE_DIR)/general.c \
|
||||||
$(MODULE_DIR)/error.c $(MODULE_DIR)/access.c \
|
$(MODULE_DIR)/error.c $(MODULE_DIR)/access.c \
|
||||||
@@ -125,7 +128,9 @@ install-lib: all-lib
|
|||||||
echo ' Run the following command: /sbin/ldconfig' ; \
|
echo ' Run the following command: /sbin/ldconfig' ; \
|
||||||
echo '******************************************************************************' ; \
|
echo '******************************************************************************' ; \
|
||||||
fi
|
fi
|
||||||
|
ifeq ($(BUILD_STATIC_LIB),1)
|
||||||
$(INSTALL) -m 644 $(LIB_DIR)/$(LIBSTLIBNAME) $(DESTDIR)$(LIBDIR)
|
$(INSTALL) -m 644 $(LIB_DIR)/$(LIBSTLIBNAME) $(DESTDIR)$(LIBDIR)
|
||||||
|
endif
|
||||||
$(INSTALL) -m 755 $(LIB_DIR)/$(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)
|
$(INSTALL) -m 755 $(LIB_DIR)/$(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)
|
||||||
$(LN) $(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBSHSONAME)
|
$(LN) $(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBSHSONAME)
|
||||||
$(LN) $(LIBSHSONAME) $(DESTDIR)$(LIBDIR)/$(LIBSHBASENAME)
|
$(LN) $(LIBSHSONAME) $(DESTDIR)$(LIBDIR)/$(LIBSHBASENAME)
|
||||||
@@ -156,7 +161,10 @@ install-lib: all-lib
|
|||||||
user_install :: install-lib
|
user_install :: install-lib
|
||||||
|
|
||||||
user_uninstall::
|
user_uninstall::
|
||||||
$(RM) $(REMOVELIBST) $(REMOVELIBSH) $(REMOVELNSO) $(REMOVELNBS)
|
$(RM) $(REMOVELIBSH) $(REMOVELNSO) $(REMOVELNBS)
|
||||||
|
ifeq ($(BUILD_STATIC_LIB),1)
|
||||||
|
$(RM) $(REMOVELIBST)
|
||||||
|
endif
|
||||||
$(RM) $(REMOVELIBHF) $(REMOVEMAN3) $(REMOVEMAN5)
|
$(RM) $(REMOVELIBHF) $(REMOVEMAN3) $(REMOVEMAN5)
|
||||||
# Remove directory if empty, ignore failure
|
# Remove directory if empty, ignore failure
|
||||||
$(RMDIR) $(DESTDIR)$(LIBINCLUDEDIR) 2> /dev/null || true
|
$(RMDIR) $(DESTDIR)$(LIBINCLUDEDIR) 2> /dev/null || true
|
||||||
|
|||||||
Reference in new issue
Block a user