summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-05-21 16:52:48 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-05-21 16:52:48 +0000
commit80c3c9a8cc6e1e05dd68e2d145fa6c7c681242ae (patch)
treea47a3011275cbcdcadcae54a1cc35419a22222e0 /tools
parent1ede799f4d9b43c8ddd656fc458bd093631a376f (diff)
downloadi2c-tools-80c3c9a8cc6e1e05dd68e2d145fa6c7c681242ae.tar.gz
New library for I2C device access under Linux. As a first step, the
library will host the i2c_smbus_*() inline functions which were previously in the user-space flavor of <linux/i2c-dev.h>. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6054 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'tools')
-rw-r--r--tools/Module.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/Module.mk b/tools/Module.mk
index 93bd4e2..1979248 100644
--- a/tools/Module.mk
+++ b/tools/Module.mk
@@ -12,6 +12,7 @@ TOOLS_DIR := tools
TOOLS_CFLAGS := -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
-Wcast-align -Wwrite-strings -Wnested-externs -Winline \
-W -Wundef -Wmissing-prototypes -Iinclude
+TOOLS_LDFLAGS := -Llib -li2c
TOOLS_TARGETS := i2cdetect i2cdump i2cset i2cget
@@ -20,16 +21,16 @@ TOOLS_TARGETS := i2cdetect i2cdump i2cset i2cget
#
$(TOOLS_DIR)/i2cdetect: $(TOOLS_DIR)/i2cdetect.o $(TOOLS_DIR)/i2cbusses.o
- $(CC) $(LDFLAGS) -o $@ $^
+ $(CC) $(LDFLAGS) $(TOOLS_LDFLAGS) -o $@ $^
$(TOOLS_DIR)/i2cdump: $(TOOLS_DIR)/i2cdump.o $(TOOLS_DIR)/i2cbusses.o $(TOOLS_DIR)/util.o
- $(CC) $(LDFLAGS) -o $@ $^
+ $(CC) $(LDFLAGS) $(TOOLS_LDFLAGS) -o $@ $^
$(TOOLS_DIR)/i2cset: $(TOOLS_DIR)/i2cset.o $(TOOLS_DIR)/i2cbusses.o $(TOOLS_DIR)/util.o
- $(CC) $(LDFLAGS) -o $@ $^
+ $(CC) $(LDFLAGS) $(TOOLS_LDFLAGS) -o $@ $^
$(TOOLS_DIR)/i2cget: $(TOOLS_DIR)/i2cget.o $(TOOLS_DIR)/i2cbusses.o $(TOOLS_DIR)/util.o
- $(CC) $(LDFLAGS) -o $@ $^
+ $(CC) $(LDFLAGS) $(TOOLS_LDFLAGS) -o $@ $^
#
# Objects