Skip to content

Instantly share code, notes, and snippets.

@elderica
Created February 14, 2023 09:48
Show Gist options
  • Save elderica/8b97359d9bc01fb5c59ccd630eae41bb to your computer and use it in GitHub Desktop.
Save elderica/8b97359d9bc01fb5c59ccd630eae41bb to your computer and use it in GitHub Desktop.
compile each .cpp file
TARGETS := $(subst .cpp,,$(wildcard *.cpp))
CXXFLAGS ?= -Wall -Wextra -O2 -g
all: $(TARGETS)
clean:
rm -f $(TARGETS)
.PHONY: clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment