Help with makefile

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am having trouble remembering how to do this. Remember makefiles and paths? You know, from last century. I am trying to compile an Arduino bootloader on my PC using the winavr compiler. Here is the makefile code:

# Path to the LUFA library
LUFA_PATH = ./LUFA-111009
# Create the LUFA source path variables by including the LUFA root makefile
include $(LUFA_PATH)/LUFA/makefile

The LUFA-111009 folder is in the main source folder where this makefile is being run from. Compiler sez "makefile:153: LUFA-111009/LUFA/makefile: No such file or directory"

 

What am I doing wrong?

 

Thanks!

Tim Ressel
Portland, OR
timr@earthling.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kind of need to know your directory structure - can you do a "tree" in the vicinity?

 

BTW it may or may not be relevant but VPATH in Makefiles can be a powerful tool.

 

EDIT: this:

 

https://www.gnu.org/software/mak...

 

In effect "not just here but look there and there too..."

Last Edited: Fri. Mar 4, 2016 - 06:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Project directory path:

C:\CircuitAbbey\Development\Synth\AntiMatter\LaunchCodes\Bootloader

LUFA path:

C:\CircuitAbbey\Development\Synth\AntiMatter\LaunchCodes\Bootloader\LUFA-111009

Path for the makefile its trying to get to:

C:\CircuitAbbey\Development\Synth\AntiMatter\LaunchCodes\Bootloader\LUFA-111009\LUFA

 

 

Tim Ressel
Portland, OR
timr@earthling.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is it "makefile" or "Makefile" ? (I think you'll find it probably DOES care about the case as this comes from a sensible operating system heritage).

Last Edited: Fri. Mar 4, 2016 - 06:59 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

it is makefile, lower case m.

 

--tr

Tim Ressel
Portland, OR
timr@earthling.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

GNUmakefile

makefile

Makefile

in that order.

Moderation in all things. -- ancient proverb