aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/Makefile')
-rw-r--r--ubi-utils/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile
index 797807d..bef8227 100644
--- a/ubi-utils/Makefile
+++ b/ubi-utils/Makefile
@@ -7,12 +7,13 @@ HOST_VERSION_NAME := $(shell uname -r)
BUILD_CPU := $(shell uname -m)
BUILD_OS := $(shell uname -o)
+OPTFLAGS := -O2 -g -Wall
KERNELHDR := ../include
DESTDIR := /usr/local
SBINDIR := bin
CC := $(CROSS)gcc
-CFLAGS := -I./inc -I./src -I$(KERNELHDR) -O2 -g -Wall -Werror \
+CFLAGS := -I./inc -I./src -I$(KERNELHDR) $(OPTFLAGS) -Werror \
-Wwrite-strings -W -std=gnu99 \
-DHOST_OS_NAME=\"$(HOST_OS_NAME)\" \
-DHOST_VERSION_NAME=\"$(HOST_VERSION_NAME)\" \