diff --git a/Makefile b/Makefile index 059af3a37..037d38fc8 100644 --- a/Makefile +++ b/Makefile @@ -101,6 +101,12 @@ else CFLAGS += -O2 -g endif +ifeq ($(GMON),1) + CFLAGS += -pg + GMONLDOPT += -pg +export GMON GMONLDOPT +endif + CFLAGS += $(WARNINGS) $(DEFINES) #