|
Revision 5610, 0.9 KB
(checked in by khali, 3 years ago)
|
|
List include first, so that other modules can use it.
|
| 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 | |
|---|
| 10 | DESTDIR = |
|---|
| 11 | prefix = /usr/local |
|---|
| 12 | bindir = $(prefix)/bin |
|---|
| 13 | sbindir = $(prefix)/sbin |
|---|
| 14 | mandir = $(prefix)/share/man |
|---|
| 15 | man8dir = $(mandir)/man8 |
|---|
| 16 | incdir = $(prefix)/include |
|---|
| 17 | |
|---|
| 18 | INSTALL := install |
|---|
| 19 | INSTALL_DATA := $(INSTALL) -m 644 |
|---|
| 20 | INSTALL_DIR := $(INSTALL) -m 755 -d |
|---|
| 21 | INSTALL_PROGRAM := $(INSTALL) -m 755 |
|---|
| 22 | RM := rm -f |
|---|
| 23 | |
|---|
| 24 | CC ?= gcc |
|---|
| 25 | |
|---|
| 26 | CFLAGS ?= -O2 |
|---|
| 27 | # When debugging, use the following instead |
|---|
| 28 | #CFLAGS := -O -g |
|---|
| 29 | CFLAGS += -Wall |
|---|
| 30 | |
|---|
| 31 | KERNELVERSION := $(shell uname -r) |
|---|
| 32 | |
|---|
| 33 | .PHONY: all strip clean install uninstall |
|---|
| 34 | |
|---|
| 35 | all: |
|---|
| 36 | |
|---|
| 37 | EXTRA := |
|---|
| 38 | #EXTRA += py-smbus |
|---|
| 39 | SRCDIRS := include eeprom stub tools $(EXTRA) |
|---|
| 40 | include $(SRCDIRS:%=%/Module.mk) |
|---|