diff --git a/build/org.eclipse.cdt.make.core/templates/simple/Makefile b/build/org.eclipse.cdt.make.core/templates/simple/Makefile index 7fe5793f75b..f1d2266445a 100644 --- a/build/org.eclipse.cdt.make.core/templates/simple/Makefile +++ b/build/org.eclipse.cdt.make.core/templates/simple/Makefile @@ -6,14 +6,17 @@ ifeq ($(BUILD_MODE),debug) CFLAGS += -g else ifeq ($(BUILD_MODE),run) CFLAGS += -O2 +else ifeq ($(BUILD_MODE),linuxtools) + CFLAGS += -g -pg -fprofile-arcs -ftest-coverage + LDFLAGS += -pg -fprofile-arcs -ftest-coverage else - $(error Build mode $(BUILD_MODE) not supported by this Makefile) + $(error Build mode $(BUILD_MODE) not supported by this Makefile) endif all: ${projectName} ${projectName}: $(OBJS) - $(CXX) -o $@ $^ + $(CXX) $(LDFLAGS) -o $@ $^ %.o: $(PROJECT_ROOT)%.cpp $(CXX) -c $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS) -o $@ $<