Add rules to control generation and use of profile data.
This commit is contained in:
parent
9fa0a09509
commit
a464397e64
9
Makefile
9
Makefile
|
|
@ -1,10 +1,13 @@
|
||||||
CFLAGS = -std=c99 -O2 -DNDEBUG -fprofile-generate
|
CFLAGS = -std=c99 -O2 -DNDEBUG
|
||||||
|
|
||||||
all: gc
|
all: gc
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
ifneq (,$(wildcard *.gcda *.gcno))
|
ifneq ($(PROFILE),no)
|
||||||
|
CFLAGS += -fprofile-generate
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(wildcard *.gcda))
|
||||||
CFLAGS += -fprofile-use
|
CFLAGS += -fprofile-use
|
||||||
dummy := $(shell rm -f gc)
|
dummy := $(shell rm -f gc)
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue