SDCC makefile problem

I am trying to use the "FREERTOS" of yours in my project. I am want to use it on the Analog Devices ADUC845 microcontroller which has 2k of RAM built in and 62k of flash memory. I am using SDCC as my compiler. The problem that I am facing right now is that SDCC compiles the code written by me but the linker shows warnings of Undefined GLobal variables. now these variables are the functions used in the RTOS. Say for example: we use TaskCreate(……) and the ASLINK shows warning as _TaskCreate as undefined Global Variable. and another thing to be noticed is that code and the DEMO files given by you compile with no error or any warning as such.Whenever I try to modify the makefile for my application these warnings are displayed. MY Makefile looks as follows: CC=sdcc NO_OPT=–nogcse –noinvariant –noinduction –nojtbound –noloopreverse –nolabelopt –nooverlay –peep-asm DEBUG=–debug CFLAGS=–model-large -I. -I../Common/include -I../include -I../../Source/include -DSDCC_CYGNAL $(DEBUG) –less-pedantic –xram-size 2303 –stack-auto --no-peep –int-long-reent –float-reent #DEMO_DIR = ../Common SOURCE_DIR = ../../Source PORT_DIR = ../../Source/portable/SDCC/Cygnal SRC = keby/keyb.c #ParTest/ParTest.c #serial/serial.c #$(DEMO_DIR)/Full/flash.c #$(DEMO_DIR)/Full/print.c #$(DEMO_DIR)/Minimal/integer.c #$(DEMO_DIR)/Minimal/PollQ.c #$(DEMO_DIR)/Minimal/comtest.c #$(DEMO_DIR)/Full/semtest.c $(SOURCE_DIR)/tasks.c $(SOURCE_DIR)/queue.c $(SOURCE_DIR)/list.c $(SOURCE_DIR)/portable/MemMang/heap_1.c $(PORT_DIR)/port.c # Define all object files. OBJ = $(SRC:.c=.rel) main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ) $(CC) $(CFLAGS) main.c $(OBJ) %.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(CC) -c $(CFLAGS) $< //=================================================================== here keyb.c is my own code and Main.c is also written by me in same folders as shown in makefile.My code does compile without any warnings if i compile it with your DEMO files when uncommented in the Makefile.So what do you think is the solution to this?

SDCC makefile problem

Can you see the tasks.c file being compiled?  Are the intermediate files generated for tasks.c?  If tasks.c is not being compiled try rearranging the list of files in the makefile so that the commented out files are at the end of the list. SRC = keby/keyb.c $(SOURCE_DIR)/tasks.c $(SOURCE_DIR)/queue.c $(SOURCE_DIR)/list.c $(SOURCE_DIR)/portable/MemMang/heap_1.c $(PORT_DIR)/port.c #ParTest/ParTest.c #serial/serial.c #$(DEMO_DIR)/Full/flash.c #$(DEMO_DIR)/Full/print.c #$(DEMO_DIR)/Minimal/integer.c #$(DEMO_DIR)/Minimal/PollQ.c #$(DEMO_DIR)/Minimal/comtest.c #$(DEMO_DIR)/Full/semtest.c 2K of RAM is very little. Regards.