summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2009-01-15 20:44:22 +0000
committerJean Delvare <jdelvare@suse.de>2009-01-15 20:44:22 +0000
commit03aa66377f155408c967548c8f2a31f26d516e07 (patch)
treeb9026781ebedc0a3f0021a67584fa1eeefd70c95 /Makefile
parent52cb1789b475769bb75be73528cf07f1fa544304 (diff)
downloadi2c-tools-git-03aa66377f155408c967548c8f2a31f26d516e07.tar.gz
Let the environment set CC and CFLAGS. Original patch from Mike Frysinger.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5597 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 edb4e80..8816020 100644
--- a/Makefile
+++ b/Makefile
@@ -21,12 +21,12 @@ INSTALL_DIR := $(INSTALL) -m 755 -d
INSTALL_PROGRAM := $(INSTALL) -m 755
RM := rm -f
-CC := gcc
-CFLAGS := -Wall
+CC ?= gcc
-CFLAGS += -O2
+CFLAGS ?= -O2
# When debugging, use the following instead
-#CFLAGS += -O -g
+#CFLAGS := -O -g
+CFLAGS += -Wall
KERNELVERSION := $(shell uname -r)