From c0959b173b1358ce8b4e3e02c3cd9166186b1f2e Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Mon, 20 Aug 2018 00:06:45 +0430 Subject: fixes #47. probably a good idea to just wipe and re-clone. also moved m0 to its own folder. --- json/makefile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'json') diff --git a/json/makefile b/json/makefile index 9f02064..15e3604 100644 --- a/json/makefile +++ b/json/makefile @@ -1,16 +1,19 @@ -######################################INCLUDES################################# include ../macros.mk +COV_CXX= -fprofile-instr-generate -fcoverage-mapping -############################################################################### +.DEFAULT: json.o -####################################RULES###################################### -.DEFAULT: json - -.PHONY: json +everything: json.o json.ocov json.odbg json.o: json.hpp - $(CXX) $(CXX_FLAGS) -c $< -o $@ + $(CXX) $(CXX_FLAGS) -x c++ -c $< -o $@ + +json.odbg: json.hpp + $(CXX) $(CXX_FLAGS) -x c++ -g -c $< -o $@ + +json.ocov: json.hpp + $(CXX) $(CXX_FLAGS) $(COV_CXX) -x c++ -c $< -o $@ clean: - rm -f *.o + rm -f *.o *.odbg *.ocov -- cgit v1.2.3