User Tools

Site Tools


cpp:index

Differences

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

Link to this comparison view

Next revision
Previous revision
cpp:index [2017/01/13 16:28] – created rlunarocpp:index [2022/12/02 22:02] (current) – external edit 127.0.0.1
Line 3: Line 3:
   * [[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.1484321338.txt.gz · Last modified: 2022/12/02 22:02 (external edit)