mh: sensord is only built if PROG_EXTRA:=sensord is specified.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1359 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Merlin Hughes committed 2002-04-28 14:26:07 +00:00
1 parent d51ae94cee
commit 1fb2fb31cb
3 files changed
+19 -3

No files matched your search

+4 -1
View File
@@ -122,6 +122,9 @@ MANGRP := root
MACHINE := $(shell uname -m)
# Extra non-default programs to build; e.g., sensord
# PROG_EXTRA := sensord
##################################################
# Below this, nothing should need to be changed. #
##################################################
@@ -142,7 +145,7 @@ SRCDIRS := mkpatch
ifeq ($(COMPILE_KERNEL),1)
SRCDIRS += kernel kernel/busses kernel/chips kernel/include
endif
SRCDIRS += lib prog/sensors prog/sensord prog/dump prog/detect etc
SRCDIRS += lib prog/sensors prog/dump prog/detect ${PROG_EXTRA:%=prog/%} etc
# Some often-used commands with default options
MKDIR := mkdir -p
+6 -2
View File
@@ -15,6 +15,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# The round robin database (RRD) development headers and libraries are
# REQUIRED. Get this package from:
# http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool
# Note that MODULE_DIR (the directory in which this file resides) is a
# 'simply expanded variable'. That means that its value is substituted
# verbatim in the rules, until it is redefined.
@@ -37,13 +41,13 @@ $(PROGSENSORDTARGETS): $(PROGSENSORDSOURCES:.c=.ro) lib/$(LIBSHBASENAME)
$(CC) -o $@ $(PROGSENSORDSOURCES:.c=.ro) -Llib -lsensors -lrrd
all-prog-sensord: $(PROGSENSORDTARGETS)
# all :: all-prog-sensord
all :: all-prog-sensord
install-prog-sensord: all-prog-sensord
$(MKDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(PROGSENSORDMAN1DIR)
$(INSTALL) -o root -g root -m 755 $(PROGSENSORDTARGETS) $(DESTDIR)$(SBINDIR)
$(INSTALL) -o $(MANOWN) -g $(MANGRP) -m 644 $(PROGSENSORDMAN1FILES) $(DESTDIR)$(PROGSENSORDMAN1DIR)
# install :: install-prog-sensord
install :: install-prog-sensord
clean-prog-sensord:
$(RM) $(PROGSENSORDDIR)/*.rd $(PROGSENSORDDIR)/*.ro
+9
View File
@@ -0,0 +1,9 @@
Daemon that periodically logs sensor readings to syslog or a round-robin
database, and warns of sensor alarms.
Compile this program by making lm_sensors with the following argument:
make PROG_EXTRA:=sensord
The RRD (Round Robin Database) development headers and libraries are
REQUIRED. Get this package from:
http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool