|
Revision 6054, 1.0 KB
(checked in by khali, 12 months ago)
|
|
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>.
|
| Line | |
|---|
| 1 | # I2C tools for Linux |
|---|
| 2 | # |
|---|
| 3 | # Copyright (C) 2007 Jean Delvare <khali@linux-fr.org> |
|---|
| 4 | # |
|---|
| 5 | # This program is free software; you can redistribute it and/or modify |
|---|
| 6 | # it under the terms of the GNU General Public License as published by |
|---|
| 7 | # the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | # (at your option) any later version. |
|---|
| 9 | |
|---|
| 10 | DESTDIR = |
|---|
| 11 | prefix = /usr/local |
|---|
| 12 | bindir = $(prefix)/bin |
|---|
| 13 | sbindir = $(prefix)/sbin |
|---|
| 14 | mandir = $(prefix)/share/man |
|---|
| 15 | man8dir = $(mandir)/man8 |
|---|
| 16 | incdir = $(prefix)/include |
|---|
| 17 | libdir = $(prefix)/lib |
|---|
| 18 | |
|---|
| 19 | INSTALL := install |
|---|
| 20 | INSTALL_DATA := $(INSTALL) -m 644 |
|---|
| 21 | INSTALL_DIR := $(INSTALL) -m 755 -d |
|---|
| 22 | INSTALL_PROGRAM := $(INSTALL) -m 755 |
|---|
| 23 | LN := ln -sf |
|---|
| 24 | RM := rm -f |
|---|
| 25 | |
|---|
| 26 | CC ?= gcc |
|---|
| 27 | AR ?= ar |
|---|
| 28 | |
|---|
| 29 | CFLAGS ?= -O2 |
|---|
| 30 | # When debugging, use the following instead |
|---|
| 31 | #CFLAGS := -O -g |
|---|
| 32 | CFLAGS += -Wall |
|---|
| 33 | SOCFLAGS := -fpic -D_REENTRANT $(CFLAGS) |
|---|
| 34 | |
|---|
| 35 | BUILD_STATIC_LIB ?= 1 |
|---|
| 36 | |
|---|
| 37 | KERNELVERSION := $(shell uname -r) |
|---|
| 38 | |
|---|
| 39 | .PHONY: all strip clean install uninstall |
|---|
| 40 | |
|---|
| 41 | all: |
|---|
| 42 | |
|---|
| 43 | EXTRA := |
|---|
| 44 | #EXTRA += py-smbus |
|---|
| 45 | SRCDIRS := include lib eeprom stub tools $(EXTRA) |
|---|
| 46 | include $(SRCDIRS:%=%/Module.mk) |
|---|