mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-26 19:29:20 +00:00
c48a91216e
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
22 lines
438 B
Makefile
22 lines
438 B
Makefile
LDFLAGS += -g
|
|
|
|
LDFLAGS_OPT = -flto
|
|
LDFLAGS_COVERAGE = -lgcov
|
|
LDFLAGS_PROFILE = $(LDFLAGS_COVERAGE) $(LDFLAGS_OPT)
|
|
|
|
opt: LDFLAGS += $(LDFLAGS_OPT)
|
|
opt: $(EXE)
|
|
debug: $(EXE)
|
|
coverage: LDFLAGS += $(LDFLAGS_COVERAGE)
|
|
coverage: $(EXE)
|
|
profile: LDFLAGS += $(LDFLAGS_PROFILE)
|
|
profile: $(EXE)
|
|
profiled: $(EXE)
|
|
|
|
$(EXE): $(OBJECTS)
|
|
$(CXX) $(OBJECTS) -o $(EXE) $(LDFLAGS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
-rm -f $(EXE) $(OBJECTS) $(PCH) *.gcov *.gcda *.gcno
|