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:
Jean Delvare committed 2009-04-20 09:18:06 +00:00
1 parent e0ad43a545
commit 2ea3bf392b
3 files changed
+15 -3

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ SVN-HEAD
isadump: 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
Make it possible to skip building of the static library
sensors-detect: Add nNidia nForce MCP78S SMBus detection
Display Super-I/O address even if LD is disabled
Differentiate between PC8374L and WPCD377I
+4 -1
View File
@@ -80,7 +80,10 @@ MANDIR := $(PREFIX)/man
MACHINE := $(shell uname -m)
# 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
# environment variables
+10 -2
View File
@@ -43,8 +43,11 @@ LIBSHLIBNAME := libsensors.so.$(LIBVER)
LIBSTLIBNAME := libsensors.a
LIBSHSONAME := libsensors.so.$(LIBMAINVER)
LIBTARGETS := $(MODULE_DIR)/$(LIBSTLIBNAME) $(MODULE_DIR)/$(LIBSHLIBNAME) \
LIBTARGETS := $(MODULE_DIR)/$(LIBSHLIBNAME) \
$(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 \
$(MODULE_DIR)/error.c $(MODULE_DIR)/access.c \
@@ -125,7 +128,9 @@ install-lib: all-lib
echo ' Run the following command: /sbin/ldconfig' ; \
echo '******************************************************************************' ; \
fi
ifeq ($(BUILD_STATIC_LIB),1)
$(INSTALL) -m 644 $(LIB_DIR)/$(LIBSTLIBNAME) $(DESTDIR)$(LIBDIR)
endif
$(INSTALL) -m 755 $(LIB_DIR)/$(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)
$(LN) $(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBSHSONAME)
$(LN) $(LIBSHSONAME) $(DESTDIR)$(LIBDIR)/$(LIBSHBASENAME)
@@ -156,7 +161,10 @@ install-lib: all-lib
user_install :: install-lib
user_uninstall::
$(RM) $(REMOVELIBST) $(REMOVELIBSH) $(REMOVELNSO) $(REMOVELNBS)
$(RM) $(REMOVELIBSH) $(REMOVELNSO) $(REMOVELNBS)
ifeq ($(BUILD_STATIC_LIB),1)
$(RM) $(REMOVELIBST)
endif
$(RM) $(REMOVELIBHF) $(REMOVEMAN3) $(REMOVEMAN5)
# Remove directory if empty, ignore failure
$(RMDIR) $(DESTDIR)$(LIBINCLUDEDIR) 2> /dev/null || true