Show
Ignore:
Timestamp:
05/21/12 18:52:48 (12 months ago)
Author:
khali
Message:

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>.

Location:
i2c-tools/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk

  • i2c-tools/trunk/Makefile

    r5610 r6054  
    1515man8dir = $(mandir)/man8 
    1616incdir  = $(prefix)/include 
     17libdir  = $(prefix)/lib 
    1718 
    1819INSTALL         := install 
     
    2021INSTALL_DIR     := $(INSTALL) -m 755 -d 
    2122INSTALL_PROGRAM := $(INSTALL) -m 755 
     23LN              := ln -sf 
    2224RM              := rm -f 
    2325 
    2426CC      ?= gcc 
     27AR      ?= ar 
    2528 
    26 CFLAGS  ?= -O2 
     29CFLAGS          ?= -O2 
    2730# When debugging, use the following instead 
    28 #CFLAGS := -O -g 
    29 CFLAGS  += -Wall 
     31#CFLAGS         := -O -g 
     32CFLAGS          += -Wall 
     33SOCFLAGS        := -fpic -D_REENTRANT $(CFLAGS) 
     34 
     35BUILD_STATIC_LIB ?= 1 
    3036 
    3137KERNELVERSION   := $(shell uname -r) 
     
    3743EXTRA   := 
    3844#EXTRA  += py-smbus 
    39 SRCDIRS := include eeprom stub tools $(EXTRA) 
     45SRCDIRS := include lib eeprom stub tools $(EXTRA) 
    4046include $(SRCDIRS:%=%/Module.mk)