diff options
Diffstat (limited to 'extra')
-rw-r--r-- | extra/usb_updater/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/extra/usb_updater/Makefile b/extra/usb_updater/Makefile index 2173e464d9..9120b7d4dc 100644 --- a/extra/usb_updater/Makefile +++ b/extra/usb_updater/Makefile @@ -9,8 +9,7 @@ SOURCE := $(PROGRAM).c LIBS := LFLAGS := CFLAGS := -std=gnu99 \ - -g3 \ - -O3 \ + -g \ -Wall \ -Werror \ -Wpointer-arith \ @@ -21,6 +20,12 @@ CFLAGS := -std=gnu99 \ -Wredundant-decls \ -Wmissing-declarations +ifeq (DEBUG,) +CFLAGS += -O3 +else +CFLAGS += -O0 +endif + # # Add libusb-1.0 required flags # |