root/i2c-tools/trunk/py-smbus/Module.mk @ 6048

Revision 6048, 0.7 KB (checked in by khali, 3 years ago)

i2c-dev: Move SMBus helper functions to include/i2c/smbus.h

Line 
1# Python bindings for Linux SMBus access through i2c-dev
2#
3# Copyright (C) 2009  Mike Frysinger <vapier@gentoo.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
10PY_SMBUS_DIR := py-smbus
11
12PYTHON ?= python
13DISTUTILS := \
14        cd $(PY_SMBUS_DIR) && \
15        CPPFLAGS="$(CPPFLAGS) -I../include" $(PYTHON) setup.py
16
17all-python: $(INCLUDE_DIR)/i2c/smbus.h
18        $(DISTUTILS) build
19
20clean-python:
21        $(DISTUTILS) clean
22        rm -rf py-smbus/build
23
24install-python:
25        $(DISTUTILS) install
26
27all: all-python
28
29clean: clean-python
30
31install: install-python
Note: See TracBrowser for help on using the browser.