I see that you had similar issues in this thread Re: CW7.1-CF: Command-line vs. GUI operation .I gues smy issue is also with ordering.
OBJ_FILES is nothing but my C objects.Here are my make lines.
TOOL_LIB=\
$(TOOL_ROOT)/PowerPC_EABI_Support/Runtime/Lib/Runtime.PPCEABI.E.a \
$(TOOL_ROOT)/PowerPC_EABI_Support/MSL/MSL_C/PPC_EABI/Lib/MSL_C.PPCEABI.bare.E.a
LFLAGS = $(TOOL_LIB) -Map $(SYSTEM).map
C_OBJECTS = $(C_FILES:.c=.o)
S_OBJECTS = $(S_FILES:.s=.o)
OBJ_FILES = $(C_OBJECTS) $(S_OBJECTS)
$(SYSTEM).elf: $(OBJ_FILES)
@echo ==== Creating $(SYSTEM).out from obj files ====
$(LINK_TOOL)$^ -o $@ $(LINK_TOOL_OPTS) $(LFLAGS)
$(C_OBJECTS) : $(C_FILES)
@echo Building file $@...
$(COMPILE_TOOL) $(COMPILE_TOOL_OPTS) $(CFLAGS) -o $@ -c $(@:.o=.c)
$(S_OBJECTS) : $(S_FILES)
@echo Building assembly file $@...
$(ASSEMBLY_TOOL) $(ASSEMBLY_TOOL_OPTS) $(AFLAGS) -o $@ -c $(@:.o=.s)
This make worked previously where I use $^ to include all prerequites without ordering.But my current make doesn't recognize that automatic variable.So if I now do not use that,then when linking my library I guess it cannot use the object for __ppc_eabi_init.c on which the library is dependent on.
Any suggestions how I can work around this issue?
Thanks!