mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-12 19:30:10 +00:00
Tidy up linux link-time optimisation flags.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
3d30fe8f3b
commit
c48a91216e
@ -1,10 +1,15 @@
|
||||
LDFLAGS += -g
|
||||
|
||||
LDFLAGS_OPT = -flto
|
||||
LDFLAGS_COVERAGE = -lgcov
|
||||
LDFLAGS_PROFILE = $(LDFLAGS_COVERAGE) $(LDFLAGS_OPT)
|
||||
|
||||
opt: LDFLAGS += $(LDFLAGS_OPT)
|
||||
opt: $(EXE)
|
||||
debug: $(EXE)
|
||||
coverage: LDFLAGS += -lgcov
|
||||
coverage: LDFLAGS += $(LDFLAGS_COVERAGE)
|
||||
coverage: $(EXE)
|
||||
profile: LDFLAGS += -lgcov
|
||||
profile: LDFLAGS += $(LDFLAGS_PROFILE)
|
||||
profile: $(EXE)
|
||||
profiled: $(EXE)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user