root/i2c-tools/trunk/Makefile

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