I changed the makefile in the photovore code makefile so as to use the environment variable set in windows to for AVRlib.
# List C source files here. (C dependencies are automatically generated.)
SRC = $(TARGET).c $(AVRLIB)/a2d.c
#SRC = $(TARGET).c timer.c uart.c buffer.c rprintf.c
EXTRAINCDIRS = $(AVRLIB)
and when I try to compile the code I get this error:
make: *** No rule to make target `Photovore_v1.elf', needed by `elf'. Stop.
Build failed with 1 errors and 0 warnings...
When I change it back to the original way it compiles fine. Not sure why I can't change the makefile to find the system environment variable location.