浏览代码

build: Seperate target 'playground' from 'playground-prof'

Ole 9 年之前
父节点
当前提交
ed5f8a80c9
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      Makefile

+ 5 - 2
Makefile

@@ -75,10 +75,13 @@ $(PLAYGROUND_OBJ): $(EXAMPLE_DIR)/$(PLAYGROUND_SRC) Makefile
 	$(CXX) $(USECXXFLAGS) $(USELDFLAGS) -MMD -MF$(<:%.cpp=%.d) -MT$@ -o$@ $< $(USELDLIBS) -lprofiler
 
 # Playground
-playground: $(PLAYGROUND_OBJ)
+playground-prof: $(PLAYGROUND_OBJ)
 	CPUPROFILE=./cpuprofile.prof ./$(PLAYGROUND_OBJ)
 	pprof --pdf ./$(PLAYGROUND_OBJ) ./cpuprofile.prof > cpuprofile.pdf
 	xdg-open cpuprofile.pdf
 
+playground: $(PLAYGROUND_OBJ)
+	./$(PLAYGROUND_OBJ)
+
 # Phony
-.PHONY: all clean docs test examples playground
+.PHONY: all clean docs test examples playground playground-prof