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
Last revisionBoth sides next revision
cpp:index [2021/05/06 23:05] rlunarocpp:index [2021/05/06 23:08] rlunaro
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.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1