summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@maxwell.research.nokia.com>2010-07-29 18:01:10 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-07-29 19:08:27 +0200
commit66431309dccf8af0441407bf53e9be3cbcdf6c27 (patch)
treee5721c9481b22728749f39a4035593ea996903fb /Makefile
parent3947820f6ef84f5c0d155567e40d4fda6e4e0dda (diff)
Do accept CFLAGS and LDFLAGS from environment.
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5c9cc68..c8c49e9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
CROSS_COMPILE ?=
CC := $(CROSS_COMPILE)gcc
-CFLAGS := -O2 -W -Wall
-LDFLAGS :=
+CFLAGS ?= -O2 -W -Wall
+LDFLAGS ?=
%.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<