So I'm having a bit of trouble with how the linker/Makefile are setup. Here is what I am doing:
- Download project from Atmel START (with GCC checked)
- If I enter the gcc folder I can build the base project just fine
- Create a folder called "user" in the project root and add "user_main.h" and "user_main.c" files
- In "main.c" in the root add "#include "user/user_main.h"
- Now when I compile I get "main.c:8: undefined reference to "user_main'" when I try to call a function defined in "user/user_main.h." It doesn't complain about not being able to find "user/user_main.h."
When I look in the provided Makefile, they seem to be listing all of the possible .o and .d files individually. I tried adding "user" to "SUB_DIRS" and "-I" ../user"" to "DIR_INCLUDES" but that didn't work. Am I seriously going to have to list each .o and .d file for each file I add? Why aren't they using wildcards at all? I also don't really want to modify the Makefile in case I need to update my START project.
What am I doing wrong?