summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2012-05-21 16:52:48 +0000
committerJean Delvare <jdelvare@suse.de>2012-05-21 16:52:48 +0000
commit251d594fd0d338c7b85707a2e72153a404a25b10 (patch)
treea47a3011275cbcdcadcae54a1cc35419a22222e0 /Makefile
parent0f23bf3ac353736bdccd6b0d651f451183b70cf2 (diff)
downloadi2c-tools-git-251d594fd0d338c7b85707a2e72153a404a25b10.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 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b98a4c3..a89cacc 100644
--- a/Makefile
+++ b/Makefile
@@ -14,19 +14,25 @@ sbindir = $(prefix)/sbin
mandir = $(prefix)/share/man
man8dir = $(mandir)/man8
incdir = $(prefix)/include
+libdir = $(prefix)/lib
INSTALL := install
INSTALL_DATA := $(INSTALL) -m 644
INSTALL_DIR := $(INSTALL) -m 755 -d
INSTALL_PROGRAM := $(INSTALL) -m 755
+LN := ln -sf
RM := rm -f
CC ?= gcc
+AR ?= ar
-CFLAGS ?= -O2
+CFLAGS ?= -O2
# When debugging, use the following instead
-#CFLAGS := -O -g
-CFLAGS += -Wall
+#CFLAGS := -O -g
+CFLAGS += -Wall
+SOCFLAGS := -fpic -D_REENTRANT $(CFLAGS)
+
+BUILD_STATIC_LIB ?= 1
KERNELVERSION := $(shell uname -r)
@@ -36,5 +42,5 @@ all:
EXTRA :=
#EXTRA += py-smbus
-SRCDIRS := include eeprom stub tools $(EXTRA)
+SRCDIRS := include lib eeprom stub tools $(EXTRA)
include $(SRCDIRS:%=%/Module.mk)