Explorar o código

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

Ole %!s(int64=9) %!d(string=hai) anos
pai
achega
ed5f8a80c9
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  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