root/i2c-tools/trunk/Makefile @ 6054

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
10DESTDIR =
11prefix  = /usr/local
12bindir  = $(prefix)/bin
13sbindir = $(prefix)/sbin
14mandir  = $(prefix)/share/man
15man8dir = $(mandir)/man8
16incdir  = $(prefix)/include
17libdir  = $(prefix)/lib
18
19INSTALL         := install
20INSTALL_DATA    := $(INSTALL) -m 644
21INSTALL_DIR     := $(INSTALL) -m 755 -d
22INSTALL_PROGRAM := $(INSTALL) -m 755
23LN              := ln -sf
24RM              := rm -f
25
26CC      ?= gcc
27AR      ?= ar
28
29CFLAGS          ?= -O2
30# When debugging, use the following instead
31#CFLAGS         := -O -g
32CFLAGS          += -Wall
33SOCFLAGS        := -fpic -D_REENTRANT $(CFLAGS)
34
35BUILD_STATIC_LIB ?= 1
36
37KERNELVERSION   := $(shell uname -r)
38
39.PHONY: all strip clean install uninstall
40
41all:
42
43EXTRA   :=
44#EXTRA  += py-smbus
45SRCDIRS := include lib eeprom stub tools $(EXTRA)
46include $(SRCDIRS:%=%/Module.mk)
Note: See TracBrowser for help on using the browser.