mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Added CYC_PROFILING
This commit is contained in:
parent
3431e37e0e
commit
ce3ba0986f
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue