mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
Fix building on PPC machines
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5035 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
7
Makefile
7
Makefile
@@ -99,9 +99,12 @@ MACHINE := $(shell uname -m)
|
||||
# to do this.
|
||||
|
||||
# The subdirectories we need to build things in
|
||||
SRCDIRS :=
|
||||
SRCDIRS += lib prog/detect prog/dump prog/pwm \
|
||||
SRCDIRS := lib prog/detect prog/pwm \
|
||||
prog/sensors ${PROG_EXTRA:%=prog/%} etc
|
||||
# Only build isadump and isaset on x86 machines.
|
||||
ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
|
||||
SRCDIRS += prog/dump
|
||||
endif
|
||||
SRCDIRS += lib/test
|
||||
|
||||
# Some often-used commands with default options
|
||||
|
@@ -22,22 +22,14 @@ MODULE_DIR := prog/dump
|
||||
PROGDUMPDIR := $(MODULE_DIR)
|
||||
|
||||
PROGDUMPMAN8DIR := $(MANDIR)/man8
|
||||
PROGDUMPMAN8FILES :=
|
||||
PROGDUMPMAN8FILES := $(MODULE_DIR)/isadump.8 $(MODULE_DIR)/isaset.8
|
||||
|
||||
# Regrettably, even 'simply expanded variables' will not put their currently
|
||||
# defined value verbatim into the command-list of rules...
|
||||
PROGDUMPTARGETS :=
|
||||
PROGDUMPSOURCES := $(MODULE_DIR)/util.c
|
||||
PROGDUMPBININSTALL :=
|
||||
|
||||
# Only build isadump and isaset on x86 machines.
|
||||
ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
|
||||
PROGDUMPMAN8FILES += $(MODULE_DIR)/isadump.8 $(MODULE_DIR)/isaset.8
|
||||
PROGDUMPTARGETS += $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
|
||||
PROGDUMPSOURCES += $(MODULE_DIR)/isadump.c $(MODULE_DIR)/isaset.c \
|
||||
$(MODULE_DIR)/superio.c
|
||||
PROGDUMPBININSTALL += $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
|
||||
endif
|
||||
PROGDUMPTARGETS := $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
|
||||
PROGDUMPSOURCES := $(MODULE_DIR)/util.c $(MODULE_DIR)/isadump.c \
|
||||
$(MODULE_DIR)/isaset.c $(MODULE_DIR)/superio.c
|
||||
PROGDUMPBININSTALL := $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
|
||||
|
||||
# Include all dependency files. We use '.rd' to indicate this will create
|
||||
# executables.
|
||||
|
Reference in New Issue
Block a user