Build systems: make

Today's lesson is presented by Josh Asplund

This lesson contains approximately 35 minutes of video content.

An introduction to make

Defining variables

Evaluating multiple rules

Special targets

Automatic variables


Questions 2-6

Please answer questions 2-6 with respect to the following Makefile:

CXX_FLAGS=-std=c++20 -Iincludes -g -fstandalone-debug -O0 -Wall -Wextra -Werror

exec: bin/exec
tests: bin/tests

bin/exec: ./src/ ./src/
	$(CXX) $(CXX_FLAGS) $^ -o $@

bin/tests: ./tests/ ./src/
	$(CXX) $(CXX_FLAGS) $^ -o $@

.DEFAULT_GOAL := tests
.PHONY: exec tests clean

	rm -f bin/*