summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2015-01-29 10:48:33 +0100
committerAnders Roxell <anders.roxell@linaro.org>2015-01-29 10:57:01 +0100
commitd5147d8c79b54ea424f27d74739fe45eeae601f6 (patch)
treefa311d2b8aa74ed82abd9e5ba515f663ace32649
parentd82d0aa11ba81ae497200c1894f46a06aa70fef4 (diff)
Makefile: add CFLAGS and default -O3
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f0dac76..a9acfa2 100644
--- a/Makefile
+++ b/Makefile
@@ -3,16 +3,16 @@
#
#SPDX-License-Identifier: BSD-3-Clause
-
+CFLAGS ?= -O3
CC = $(CROSS_COMPILE)gcc
all: perf_rc_mmap perf_ev_open
perf_rc_mmap: perf_readcounter_mmap.c
- $(CC) $< -o $@
+ $(CC) $(CFLAGS) $< -o $@
perf_ev_open: perf_event_open.c
- $(CC) $< -o $@
+ $(CC) $(CFLAGS) $< -o $@
clean:
rm -f perf_rc_mmap perf_ev_open