Conditional Compilation

Raghu raghu_dk@yahoo.com
Tue Mar 22 05:13:00 GMT 2005


Hi, 

I want to have a macro define through which I will be
able to conditionally compile either REDBOOT or ecos
library. 

Example: 
#ifdef CYGBLD_TARGET_REDBOOT
#include <redboot.h>
#include <net/net.h>
#else
#include <pkgconf/net.h>
#endif

How should I define this in the ".cdl" file ? I tried 
cdd_option CYGBLD_TARGET_REDBOOT {
    default_value 0
}
and in redboot_rom.ecm set the user_value to "1".
But this does not define "#define
CYGBLD_TARGET_REDBOOT" and the compilation fails for
file not found.
Regards
Raghu


    




		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs



More information about the Ecos-devel mailing list