add COPTS and BUILD_COPTS to specify optimization flags without touching CFLAGS

Overriding CFLAGS and BUILD_CFLAGS from outside the build isn't really fun as
one then has to provide what comes in DEFINES and IPATH also. Add another flag
to set only the optimization flags and then combine it as before.

Signed-off-by: Rolf Eike Beer <eb@emlix.com>
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
diff --git a/Make.Rules b/Make.Rules
index 8c3f9b3..b01fa6b 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -56,9 +56,11 @@
 
 CC ?= $(CROSS_COMPILE)gcc
 DEFINES := -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-CFLAGS ?= -O2 $(DEFINES)
+COPTS ?= -O2
+CFLAGS ?= $(COPTS) $(DEFINES)
 BUILD_CC ?= $(CC)
-BUILD_CFLAGS ?= -O2 $(DEFINES) $(IPATH)
+BUILD_COPTS ?= -O2
+BUILD_CFLAGS ?= $(BUILD_COPTS) $(DEFINES) $(IPATH)
 AR ?= $(CROSS_COMPILE)ar
 RANLIB ?= $(CROSS_COMPILE)ranlib
 DEBUG = -g #-DDEBUG