[ECOS] EXEEXT settable in generated buildtree, via CDL ??

Andrew Lunn andrew@lunn.ch
Fri Nov 26 09:40:00 GMT 2004


> PM/Advisor wants to have EXEEXT to come automatically
> into buildtree makefiles via some CDL options. Has any
> other developer met this kind of requirements and
> found a solution?
> 
> Does CDL provide a way for this?

No. You would need to modify the code which generates the root
makefile. If you look at the tail of the root makefile you will see
something like:

$(PREFIX)/include/pkgconf/ecos.mak: makefile
        @echo 'ECOS_GLOBAL_CFLAGS = -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -
Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtabl
e-gc -finit-priority' > $@
        @echo 'ECOS_GLOBAL_LDFLAGS = -g -nostdlib -Wl,--gc-sections -Wl,-static' >> $@
        @echo 'ECOS_COMMAND_PREFIX = $(COMMAND_PREFIX)' >> $@

This is putting the cdl options into the file
install/include/pkgconf/ecos.mak which each of the subtree makefiles
includes. You would need to add your new CDL option here. So take a
look at the sources for ecosconfig, find where it writes these out and
add your own code to write out your new CDL option.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list