mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 16:57: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
|
# Configuration options for the makefile
|
||||||
|
|
||||||
|
CYC_PROFILING ?=
|
||||||
|
#CYC_PROFILING ?= -pg
|
||||||
|
|
||||||
OS ?= $(shell uname)
|
OS ?= $(shell uname)
|
||||||
CC ?= cc
|
CC ?= cc
|
||||||
|
|
||||||
|
@ -14,14 +17,14 @@ LIBS += -ldl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Compiler options
|
# Compiler options
|
||||||
CFLAGS ?= -O2 -fPIC -Wall -Iinclude
|
CFLAGS ?= $(CYC_PROFILING) -O2 -fPIC -Wall -Iinclude
|
||||||
COMP_CFLAGS ?= -O2 -fPIC -Wall -I$(PREFIX)/include -L$(PREFIX)/lib
|
COMP_CFLAGS ?= $(CYC_PROFILING) -O2 -fPIC -Wall -I$(PREFIX)/include -L$(PREFIX)/lib
|
||||||
# Use these lines instead for debugging or profiling
|
# Use these lines instead for debugging or profiling
|
||||||
#CFLAGS = -g -Wall
|
#CFLAGS = -g -Wall
|
||||||
#CFLAGS = -g -pg -Wall
|
#CFLAGS = -g -pg -Wall
|
||||||
|
|
||||||
# Linker options
|
# Linker options
|
||||||
LDFLAGS ?= -L.
|
LDFLAGS ?= -L. $(CYC_PROFILING)
|
||||||
ifeq ($(OS),Darwin)
|
ifeq ($(OS),Darwin)
|
||||||
LDFLAGS += -Wl,-export_dynamic -Wl,-undefined -Wl,dynamic_lookup
|
LDFLAGS += -Wl,-export_dynamic -Wl,-undefined -Wl,dynamic_lookup
|
||||||
COMP_CFLAGS += -Wl,-export_dynamic
|
COMP_CFLAGS += -Wl,-export_dynamic
|
||||||
|
|
Loading…
Add table
Reference in a new issue