|Subject:||Re: Makefile doesnt stop for non zero error codes|
|Date:||Thu, 26 Jun 2008 12:24:53 +0530|
CPU = ARMSA110
TOOL = gnu
LIB_BASE = $(NCP_SW_HOME)/bin
LIB = $(LIB_BASE)/OctalMAC.a
LIB_OBJS = macdrv.o PseudoDrvEnd.o
#ADDED_C++FLAGS = -w -Wall -pedantic -DOS=VXWORKS -DIOSTYLE=HARDWARE \
# -DVXWORKS -DVX_WORKS -DPETH_DRV -DPETH_NUM_DEVS=8 -DMAC_21440 -D__unix $(INCLUDE)
ADDED_C++FLAGS = -w -Wall -pedantic $(NCP_C++FLAGS) \
-DFAST_PORT1=8 -DFAST_PORT2=9 -DRFC1812 -D__unix $(INCLUDE)
.SUFFIXES: .o .cpp .c .h .hxx
$(CXX) $(DBG_FLAG) $(C++FLAGS) -c $?
@ echo ""
$(CC) $(DBG_FLAG) $(C++FLAGS) -c $?
@ echo ""
exe : $(LIB)
$(LIB) : $(LIB_OBJS)
$(AR) -rc $(LIB) $(LIB_OBJS)
$(RM) $(LIB_OBJS) $(LIB)
here C++FLAGS= -O
Here in the code i havent used the -k or - to suppress the errors.
Murali Krishna wrote on 25 June 2008 07:38:
> I am working in a makefile issue where the makefile doesn't stop
> compilation even after it encounters the error in the cpp file.
> The make continues with next rule even though the earlier rule gives the
> non zero exit status. What could be the possible cause for this scenario?
There's a bug on line 278 of your makefile. You just need to fix it and
everything will work fine.
Nahh, seriously, an example or some details would be nice. Did you use
"-k" when invoking make? Are the command-lines prefixed with "-" to
suppress errors? Are you mistaken about whether the earlier rule actually
does return non-zero status? It's pretty hard to diagnose a problem when
the only information you give is "It doesn't work - why?"! Can you show us
an example, with the relevant lines of your makefile and the output you see
in your shell when building?
Can't think of a witty .sigline today....
|[Prev in Thread]||Current Thread||[Next in Thread]|