Added BF_PROFILE (same name as in scons files) option.
[blender.git] / source / nan_compile.mk
index 19d833b5b0dc85c8850dda4344c228d60dc1f6fb..a6dcfc21b5f81701231194ee5c843adf53a0791e 100644 (file)
@@ -47,6 +47,11 @@ else
    CPPFLAGS += -DNO_KETSJI
 endif
 
+ifeq ($(BF_PROFILE), true)
+    CFLAGS += -pg
+    CCFLAGS += -pg
+endif
+
 ifeq ($(WITH_BF_OPENMP), true)
     CFLAGS += -fopenmp
     CCFLAGS += -fopenmp