From ce3ba0986ffb93bad61bcd7f4d9993a1b2574e61 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 3 Aug 2018 11:59:22 -0400 Subject: [PATCH] Added CYC_PROFILING --- Makefile.config | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.config b/Makefile.config index e405deaf..390eb080 100644 --- a/Makefile.config +++ b/Makefile.config @@ -4,6 +4,9 @@ # # Configuration options for the makefile +CYC_PROFILING ?= +#CYC_PROFILING ?= -pg + OS ?= $(shell uname) CC ?= cc @@ -14,14 +17,14 @@ LIBS += -ldl endif # Compiler options -CFLAGS ?= -O2 -fPIC -Wall -Iinclude -COMP_CFLAGS ?= -O2 -fPIC -Wall -I$(PREFIX)/include -L$(PREFIX)/lib +CFLAGS ?= $(CYC_PROFILING) -O2 -fPIC -Wall -Iinclude +COMP_CFLAGS ?= $(CYC_PROFILING) -O2 -fPIC -Wall -I$(PREFIX)/include -L$(PREFIX)/lib # Use these lines instead for debugging or profiling #CFLAGS = -g -Wall #CFLAGS = -g -pg -Wall # Linker options -LDFLAGS ?= -L. +LDFLAGS ?= -L. $(CYC_PROFILING) ifeq ($(OS),Darwin) LDFLAGS += -Wl,-export_dynamic -Wl,-undefined -Wl,dynamic_lookup COMP_CFLAGS += -Wl,-export_dynamic