cpp:index
This is an old revision of the document!
C++
Automatic Makefile
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.
<source Makefile>
CPPFLAGS := $(CPPFLAGS) -g
cpp_files := $(patsubst %.cpp,%,$(wildcard *.cpp))
all: $(cpp_files)
</source>
cpp/index.1620335273.txt.gz · Last modified: 2022/12/02 21:02 (external edit)