summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrodo Looijaard <frodol@dds.nl>1999-01-14 00:41:44 +0000
committerFrodo Looijaard <frodol@dds.nl>1999-01-14 00:41:44 +0000
commit33269d525200e823080532b5f4e497592e5d444a (patch)
tree7e183acc6e7b2d3a8c80c8e468330bdbe8ee33f6 /Makefile
parentfefbf318675cc9c439ac46212cdca143f1e2082f (diff)
downloadlm-sensors-git-33269d525200e823080532b5f4e497592e5d444a.tar.gz
Small fixes to make all programs compile cleanly with libc6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@168 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 95304c61..8d86c7e4 100644
--- a/Makefile
+++ b/Makefile
@@ -133,6 +133,10 @@ CFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
-Wcast-align -Wwrite-strings -Wnested-externs -Winline
endif
+ifeq ($(I2C),1)
+CFLAGS += -DI2C
+endif
+
MODCFLAGS := $(CFLAGS) -D__KERNEL__ -DMODULE -fomit-frame-pointer
PROGCFLAGS := $(CFLAGS)
ARCFLAGS := $(CFLAGS)
@@ -146,10 +150,6 @@ ifeq ($(MODVER),1)
MODCFLAGS += -DMODVERSIONS -include /usr/include/linux/modversions.h
endif
-ifeq ($(I2C),1)
-MODCFLAGS += -DI2C
-endif
-
.PHONY: all clean install version package dep
# Make all the default rule