Created
February 14, 2023 09:48
-
-
Save elderica/8b97359d9bc01fb5c59ccd630eae41bb to your computer and use it in GitHub Desktop.
compile each .cpp file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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