aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/digitemp/digitemp/makefile-fix.patch
blob: c0d552d541a3aad0d7dc7540dc0fdb8349dd5a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
digitemp: allow override of CC and CFLAGS vars

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

--- a/Makefile	2008-08-28 21:37:00.000000000 +0000
+++ b/Makefile	2011-11-24 22:22:39.882511272 +0000
@@ -11,8 +11,9 @@
 
 VERSION = 3.6.0
 
-CC	= gcc
-CFLAGS	= -I./src -I./userial -O2 -Wall # -g
+CC	?= gcc
+CFLAGS	?=  -O2 -Wall # -g
+CFLAGS += -I./src -I./userial
 
 OBJS		=	src/digitemp.o src/device_name.o src/ds2438.o
 HDRS		= 	src/digitemp.h src/device_name.h