Error: Failed to load processor AutoNav
No macro or processor named 'AutoNav' found

The MagicMakefile Version 1

Overview

The MagicMakefile was created to avoid some of the hassles of making a static library with the gnu g++ tools, including taking care of header file dependancies.

It differs from other Makefile styles in that it figures out what files to compile based on the directory that they live in. It uses the fine GNU Make construct: $(notdir $(wildcard $(LIB_SRC_DIR)/*.cpp)) to do the magic.

  • All the *.cpp files in the src directory are compiled and put into the library
  • All the *.cpp files in the tests directory are compiled as separate executables, linked with the library.

What is it good for?

It is good for any static library oriented project using gnu g++ tools.

It is not good for generating dynamic libraries.