This three line makefile allows to automatically compile single file cpp files. Ideal
for having a test directory where you can create a single cpp file and compile it by
issuing a make
with no additional configuration.
CPPFLAGS := $(CPPFLAGS) -g cpp_files := $(patsubst %.cpp,%,$(wildcard *.cpp)) all: $(cpp_files)