Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

NOTE:-

you need to define tags as follows:-

Note line 204.

SRC_FILE = $(@F:.o=.c) # Input source file specification for *.C files
SRC_CPP_FILE = $(@F:.o=.cpp) # Input source file specification for *.CPP files
OBJ_FILE = $(OBJ_CMD) $(@F) # Output object file specification

.SUFFIXES :
.SUFFIXES : .o .dep .c .cpp # suffixes that say *.c, *.cpp, *.dep, *.o

Note line 215.

//this is for compiling C Files in current directory:-
//Note the last tag SRC_FILE that was defined above.
//Note the last tag ARMCC has to be the ARM C Compiler.
.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SRC_FILE)
@echo ---------------------------------------------------------------

//this is for compiling CPP Files in current directory:-
//Note the last tag SRC_CPP_FILE that was defined above.
.cpp.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCPP) $(CFLAGS) $(INC) $(OBJ_FILE) $(SRC_CPP_FILE)
@echo ---------------------------------------------------------------

//this is for compiling C Files in the directory defined by AEESRCPATH, if u want to compile CPP files in this path, you need to create a similar set of statements for CPP Files.
//Note the last tag SRC_FILE that was defined above.
{$(AEESRCPATH)}.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(AEESRCPATH)\$(SRC_FILE)
@echo ---------------------------------------------------------------

you may one for your other dirs:- like below.
{$(MYDIR)}.cpp.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCPP) $(CPPFLAGS) $(INC) $(OBJ_FILE) $(AEESRCPATH)\$(SRC_CPP_FILE)
@echo ---------------------------------------------------------------