I am having a lot of trouble compiling my program. I think I have everything set up right. The code files are in a directory with all the mios directories (bin, etc, lib, ...). I have copied the makefile from the C template. The first set of errors told me that the MIOS_PATH variable hadn't been set, so I set that in the makefile. Now I'm getting an error saying that MIOS_BIN_PATH isn't set, but it is clearly set in the makefile. The makefile I'm using is below.
MIOS_PATH = .
MIOS_BIN_PATH = ./bin
# define the processor, linker file and project name
PROCESSOR = 18f4685
LKR_FILE = $(MIOS_PATH)/etc/lkr/p$(PROCESSOR).lkr
PROJECT = project
# list of objects that should be created and linked
OBJS = mios_wrapper.o app_lcd.o main.o debug_msg.o
# include pathes (more will be added by .mk files)
GPASM_INCLUDE =
SDCC_INCLUDE =
# optional defines that should be passed to GPASM/SDCC
GPASM_DEFINES = -DDEBUG_MODE=0
SDCC_DEFINES = -DDEBUG_MODE=0
# pass parameters to MIOS wrapper
MIOS_WRAPPER_DEFINES = -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f
# directories and files that should be part of the distribution (release) package
# more will be added by *.mk files
DIST = ./
# include the common.mk file
include $(MIOS_PATH)/include/makefile/common.mk
# include debug message module
include $(MIOS_PATH)/modules/debug_msg/debug_msg.mk
# include application specific driver (select app_lcd/dummy if MIOS internal driver used)
include $(MIOS_PATH)/modules/app_lcd/dummy/app_lcd.mk
This is the error I'm getting.
new-host-3:Software aaron$ make
rm -rf _output/*
rm -rf _output
rm -rf *.cod *.map *.lst
rm -rf *.hex
mkdir -p _output
sh ./bin/mios-gpasm -c -p p18f4685 -I./src -I ./include/asm -I ./include/share -I ./modules/debug_msg -I ./modules/app_lcd/dummy -DDEBUG_MODE=0 -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I ./modules/mios_wrapper modules/mios_wrapper/mios_wrapper.asm -o _output/mios_wrapper.o
sh ./bin/mios-gpasm -c -p p18f4685 -I./src -I ./include/asm -I ./include/share -I ./modules/debug_msg -I ./modules/app_lcd/dummy -DDEBUG_MODE=0 modules/app_lcd/dummy/app_lcd.asm -o _output/app_lcd.o
sh ./bin/mios-sdcc -c -mpic16 -p18f4685 --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -I./src -I ./include/c -I ./include/share -I ./modules/debug_msg -DDEBUG_MODE=0 main.c -o _output/main.o
ERROR ./bin/mios-sdcc: MIOS_BIN_PATH variable not set!
make: *** [_output/main.o] Error 1
I really have no idea what I'm doing here. Any help would be greatly appreciated.