# Makefile SRC := $(wildcard *.cpp) $(wildcard *.cc) $(wildcard *.c) OBJ := $(SRC:.cpp=.o) $(SRC:.cc=.o) $(SRC:.c=.o) TARGET := my_program CXX := /opt/homebrew/opt/ccache/libexec/g++ CXXFLAGS := -fdiagnostics-color=always -g -Wall -std=c++20 $(TARGET): $(OBJ) $(CXX) $(CXXFLAGS) -o $@ $^ clean: rm -f $(OBJ) $(TARGET)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter