From a2ccebe27554d196fbcadf4fd230fb1b4b14090a Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 30 Apr 2020 19:32:01 +0430 Subject: working on the test script --- makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 94fd556..e5f241a 100644 --- a/makefile +++ b/makefile @@ -18,7 +18,7 @@ endif CXX_EXTRA?= CTAGS_I_PATH?=./ #LD_FLAGS= -lstdc++fs -LD_FLAGS= +LD_FLAGS= -lboost_system -lboost_filesystem EXTRA_LD_FLAGS?= ADD_SANITIZERS_CC= -g -fsanitize=address -fno-omit-frame-pointer ADD_SANITIZERS_LD= -g -fsanitize=address @@ -84,7 +84,7 @@ LD_FLAGS+=$(EXTRA_LD_FLAGS) .PHONY:all clean help ASM SO TAGS -all: $(TARGET) +all: pch.hpp.gch $(TARGET) everything:$(TARGET) A ASM SO $(TARGET)-dbg TAGS $(TARGET)-cov @@ -98,15 +98,18 @@ depend:.depend -include ./.depend -%.o:%.cpp - $(CXX) $(CXX_FLAGS) -c $< -o $@ +%.o:%.cpp pch.hpp.gch + $(CXX) -include-pch pch.hpp.gch $(CXX_FLAGS) -c $< -o $@ %.odbg:%.cpp $(CXX) $(CXX_FLAGS) -g -c $< -o $@ -%.ocov:%.cpp +%.ocov:%.cpp pch.hpp.gch $(CXX) $(CXX_FLAGS) $(COV_CXX) -c $< -o $@ +pch.hpp.gch: pch.hpp + $(CXX) $(CXX_FLAGS) -c $< -o $@ + ./cfe-extra/cfe_extra.o:./cfe-extra/cfe_extra.cpp $(CXX) $(CXX_FLAGS) -c $< -o $@ -- cgit v1.2.3