Added CYC_PROFILING

This commit is contained in:
Justin Ethier 2018-08-03 11:59:22 -04:00
parent 3431e37e0e
commit ce3ba0986f

View file

@ -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