This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Conditional Compile

I am using version 6.0 with a GNU makefile. I have conditional code (both *.C and *.A51)I want to enable/disable through the make file on the command line. I am using the

#ifdef DEBUG
#endif // for C

$IF (DEBUG)
$ENDIF ; for ASM
I have tried to pass in a directive and define something in the makefile, but no luck. I read the book, but could not find out if what I am attempting is feaseable. Any help?