comparison Makefile @ 1657:774096402918

Allow optimization flag overrides in Makefile
author Mike Pavone <pavone@retrodev.com>
date Sun, 30 Dec 2018 19:40:32 -0800
parents c206a422d466
children fa9ae059e4d3
comparison
equal deleted inserted replaced
1656:804f13c090b4 1657:774096402918
67 endif 67 endif
68 68
69 endif #PORTABLE 69 endif #PORTABLE
70 endif #Windows 70 endif #Windows
71 71
72 ifndef OPT
72 ifdef DEBUG 73 ifdef DEBUG
73 OPT:=-g3 -O0 74 OPT:=-g3 -O0
74 else 75 else
75 ifdef NOLTO 76 ifdef NOLTO
76 OPT:=-O2 77 OPT:=-O2
77 else 78 else
78 OPT:=-O2 -flto 79 OPT:=-O2 -flto
79 endif #NOLTO 80 endif #NOLTO
80 endif #DEBUG 81 endif #DEBUG
82 endif #OPT
81 83
82 CFLAGS:=$(OPT) $(CFLAGS) 84 CFLAGS:=$(OPT) $(CFLAGS)
83 LDFLAGS:=$(OPT) $(LDFLAGS) 85 LDFLAGS:=$(OPT) $(LDFLAGS)
84 86
85 ifdef Z80_LOG_ADDRESS 87 ifdef Z80_LOG_ADDRESS