From 9611f9a935b98431a22e212e5f6752fd554e877d Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 11 Mar 2005 20:51:35 +0000 Subject: [PATCH] Set proper compiler flags for mips, sparc32, sparc64. Patch by Aurelien Jarno. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2928 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index 9cacd053..da1c82bf 100644 --- a/Makefile +++ b/Makefile @@ -215,6 +215,20 @@ MODCFLAGS += -fno-strict-aliasing -fno-common -fomit-frame-pointer -mno-red-zone -mcmodel=kernel -fno-reorder-blocks -finline-limit=2000 -fno-strength-reduce endif +ifeq ($(MACHINE),mips) +MODCFLAGS += -mabi=32 -mips3 -Wa,-32 -Wa,-mips3 -Wa,--trap +endif + +ifeq ($(MACHINE),sparc32) +MODCFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 +endif + +ifeq ($(MACHINE),sparc64) +MODCFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ + -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare \ + -Wa,--undeclared-regs +endif + ifeq ($(SMP),1) MODCPPFLAGS += -D__SMP__ endif