add O in makefile, change greq in global

This commit is contained in:
Sheikah
2023-01-26 23:23:01 +08:00
parent 22f90eb896
commit d5c13596ce
3 changed files with 12 additions and 6 deletions

View File

@ -20,9 +20,13 @@ TARGET = radio-gnumake
# building variables
######################################
# debug build?
DEBUG = 1
DEBUG ?= 1
# optimization
OPT = -Og
ifeq ($(DEBUG), 1)
OPT = -Og
else
OPT = -O3
endif
#######################################