User Tools

Site Tools


cpp:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cpp:index [2021/05/06 23:05] rlunarocpp:index [2022/12/02 22:02] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
   * [[doxygen|Doxygen made easy]]   * [[doxygen|Doxygen made easy]]
 +
 +
 +===== 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. 
 +
 +<code Makefile>
 +
 +CPPFLAGS := $(CPPFLAGS) -g
 +
 +cpp_files := $(patsubst %.cpp,%,$(wildcard *.cpp))
 +
 +
 +all: $(cpp_files)
 +
 +
 +</code>
 +
cpp/index.1620335119.txt.gz · Last modified: 2022/12/02 22:02 (external edit)