first commit
This commit is contained in:
commit
a5a0434432
1126 changed files with 439481 additions and 0 deletions
31
Script/i2c-tools-3.1.0/py-smbus/Module.mk
Normal file
31
Script/i2c-tools-3.1.0/py-smbus/Module.mk
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Python bindings for Linux SMBus access through i2c-dev
|
||||
#
|
||||
# Copyright (C) 2009 Mike Frysinger <vapier@gentoo.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
PY_SMBUS_DIR := py-smbus
|
||||
|
||||
PYTHON ?= python
|
||||
DISTUTILS := \
|
||||
cd $(PY_SMBUS_DIR) && \
|
||||
CPPFLAGS="$(CPPFLAGS) -I../include" $(PYTHON) setup.py
|
||||
|
||||
all-python: $(INCLUDE_DIR)/linux/i2c-dev.h
|
||||
$(DISTUTILS) build
|
||||
|
||||
clean-python:
|
||||
$(DISTUTILS) clean
|
||||
rm -rf py-smbus/build
|
||||
|
||||
install-python:
|
||||
$(DISTUTILS) install
|
||||
|
||||
all: all-python
|
||||
|
||||
clean: clean-python
|
||||
|
||||
install: install-python
|
||||
Loading…
Add table
Add a link
Reference in a new issue