TUP LUFA Skeleton
This skeleton project is based on the low-level RNDIS project that ships with LUFA as an example project. All LUFA library code is stored in the ./LUFA/ directory. The skeleton is currently configured to build for the Teensy++ 2.0 dev board, but all LUFA build flags should work properly.
TUP is a simple, fast, understandable build system. After years of grumbling about Make, and hoarding example Makefiles that only every mostly work, Tup is a breath of fresh air. After an afternoon of reading, I was writing Tupfiles from scratch that were more readable and understandable than any Makefile.
This project is based on LUFA 120730, and has minimal changes from the original source.
The meat of this project is in "Tuprules.tup". Here, set your MCU, CPU Speed, Architecture, Board, and other build variables just as you would for the equivalent Make-based LUFA project.
Lufa.tup contains object-file definitions for various portions of the LUFA project. Include these variables on line 12 (the linker line) of the root Tupfile. The necessary dependencies will be automatically compiled and linked.