From 0f0799aec14477d27a0cd145b7c5b0e283591b6f Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Fri, 1 May 2020 00:29:28 +0430 Subject: added a note regarding what to do when you get the `stddef.h not found`. testscript is still WIP. --- makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index cff732a..1bbff7e 100644 --- a/makefile +++ b/makefile @@ -11,7 +11,7 @@ endif CXX=clang++ CXX?=clang++ ifdef OS - CXX_FLAGS= + CXX_FLAGS=-MM else CXX_FLAGS=-fpic endif @@ -84,7 +84,7 @@ LD_FLAGS+=$(EXTRA_LD_FLAGS) .PHONY:all clean help ASM SO TAGS -all: pch.hpp.gch $(TARGET) +all: $(TARGET) everything:$(TARGET) A ASM SO $(TARGET)-dbg TAGS $(TARGET)-cov @@ -98,18 +98,15 @@ depend:.depend -include ./.depend -%.o:%.cpp pch.hpp.gch - $(CXX) -include-pch pch.hpp.gch $(CXX_FLAGS) -c $< -o $@ +%.o:%.cpp + $(CXX) $(CXX_FLAGS) -c $< -o $@ %.odbg:%.cpp $(CXX) $(CXX_FLAGS) -g -c $< -o $@ -%.ocov:%.cpp pch.hpp.gch +%.ocov:%.cpp $(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