Complete makefile toolkit with generation and validation capabilities
97
97%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
You are building a top-level Makefile for a C++ project with three sub-components:
engine/
src/ (produces libengine.a)
renderer/
src/ (produces librenderer.a, depends on libengine.a)
app/
src/ (produces bin/game, links libengine.a and librenderer.a)Top-level Makefile requirements:
all builds everything in correct orderclean calls $(MAKE) clean in each sub-directorytest calls $(MAKE) test in each sub-directoryhelp target present with ## commentsFor the app/ component Makefile (produce this as app/Makefile):
CXX ?= g++$(wildcard src/*.cpp)build/ directory using order-only prerequisite | $(BUILDDIR)-MMD -MP and -include of generated .d filesProduce both the top-level Makefile and app/Makefile.