Mercurial > repos > blastem
changeset 1657:774096402918
Allow optimization flag overrides in Makefile
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 30 Dec 2018 19:40:32 -0800 |
parents | 804f13c090b4 |
children | fa9ae059e4d3 |
files | Makefile |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sun Dec 30 18:48:08 2018 -0800 +++ b/Makefile Sun Dec 30 19:40:32 2018 -0800 @@ -69,6 +69,7 @@ endif #PORTABLE endif #Windows +ifndef OPT ifdef DEBUG OPT:=-g3 -O0 else @@ -78,6 +79,7 @@ OPT:=-O2 -flto endif #NOLTO endif #DEBUG +endif #OPT CFLAGS:=$(OPT) $(CFLAGS) LDFLAGS:=$(OPT) $(LDFLAGS)