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
Questions 2-6
Please answer questions 2-6 with respect to the following Makefile
:
CXX=clang++
CXX_FLAGS=-std=c++20 -Iincludes -g -fstandalone-debug -O0 -Wall -Wextra -Werror
exec: bin/exec
tests: bin/tests
bin/exec: ./src/main.cc ./src/functions.cc
$(CXX) $(CXX_FLAGS) $^ -o $@
bin/tests: ./tests/tests.cc ./src/functions.cc
$(CXX) $(CXX_FLAGS) $^ -o $@
.DEFAULT_GOAL := tests
.PHONY: exec tests clean
clean:
rm -f bin/*