-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (34 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# I2C tools for Linux
#
# Copyright (C) 2007 Jean Delvare <[email protected]>
#
# 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.
DESTDIR =
toolchain_path = /opt/toolchains/toolchain_rpi
toolchain_prefix = arm-rpi-linux-gnueabi
prefix = $(toolchain_path)/i2c_tools
bindir = $(prefix)/bin
sbindir = $(prefix)/sbin
mandir = $(prefix)/share/man
man8dir = $(mandir)/man8
incdir = $(prefix)/include
INSTALL := install
INSTALL_DATA := $(INSTALL) -m 644
INSTALL_DIR := $(INSTALL) -m 755 -d
INSTALL_PROGRAM := $(INSTALL) -m 755
RM := rm -f
CC ?= $(toolchain_path)/bin/$(toolchain_prefix)-gcc
CFLAGS ?= -O2
# When debugging, use the following instead
#CFLAGS := -O -g
CFLAGS += -Wall -I. -I$(toolchain_path)/$(toolchain_prefix)/sysroot/usr/include
KERNELVERSION := 3.18.5-7-armv7l
.PHONY: all strip clean install uninstall
all:
EXTRA :=
#EXTRA += py-smbus
SRCDIRS := include eeprom stub tools $(EXTRA)
include $(SRCDIRS:%=%/Module.mk)