AnsweredAssumed Answered

Make file to build an application

Question asked by saravanakumar.ms on Aug 11, 2009
Latest reply on Aug 14, 2009 by CompilerGuru

Hi,

 

I am building my application for S12XEP100 with the help of a MAKE file.The application uses XGATE. Hence i extended the sample make file found in code warrior examples to compile .cxgate files too.

 

I added the bold highlighted line in the "build object file list ..."  section:

 

# build object file list with search and replace operation
CPP_OBJ_FILES = $(SOURCE_FILES:.cpp=.o)
CXX_OBJ_FILES = $(CPP_OBJ_FILES:.cxx=.o)
C_OBJ_FILES = $(CXX_OBJ_FILES:.c=.o)
XC_OBJ_FILES = $(C_OBJ_FILES:.cxgate=.o)
S_OBJ_FILES = $(XC_OBJ_FILES:.s=.o)
ALL_OBJ_FILES = $(S_OBJ_FILES:.asm=.o)

 

but i get the following make error:

 

C:\Projekt\Internal\MAKE\reference\xgate\XGATE_MakeFile\default.mak: ERROR M5022
: Don't know how to make "xgate.oxgate"
C:\Projekt\Internal\MAKE\reference\xgate\XGATE_MakeFile\default.mak: ERROR M5022
: Don't know how to make "MakeProject.abs"
C:\Projekt\Internal\MAKE\reference\xgate\XGATE_MakeFile\default.mak: ERROR M5022
: Don't know how to make "all"
C:\Projekt\Internal\MAKE\reference\xgate\XGATE_MakeFile\default.mak: ERROR M5022
: Don't know how to make "all"
Maker: *** 4 error(s), 1 warning(s), 4 information message(s) ***

 

the highlighted thing shows something is wrong with the line i inserted.

 

can anyone help on this ?

 

thanks,

Saravana

Outcomes