summaryrefslogtreecommitdiff
path: root/package/i2c-tools/patches/patch-Makefile
blob: 6997b4de11843bc89b605259d2890cd1c39a5527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- i2c-tools-3.0.2.orig/Makefile	2007-11-01 18:54:57.000000000 +0100
+++ i2c-tools-3.0.2/Makefile	2010-07-13 21:44:41.807074577 +0200
@@ -4,8 +4,8 @@
 #
 # Licensed under the GNU General Public License.
 
-DESTDIR	=
-prefix	= /usr/local
+DESTDIR	?=
+prefix	= /usr
 bindir	= $(prefix)/bin
 sbindir	= $(prefix)/sbin
 mandir	= $(prefix)/share/man
@@ -18,8 +18,8 @@ INSTALL_DIR	:= $(INSTALL) -m 755 -d
 INSTALL_PROGRAM	:= $(INSTALL) -m 755
 RM		:= rm -f
 
-CC	:= gcc
-CFLAGS	:= -Wall
+CC	?= gcc
+CFLAGS	?= -Wall
 
 CFLAGS	+= -O2
 # When debugging, use the following instead