> Here is how we solve the very same problem for CPC: > > # Makefile > .cpc.cpi: > gcc -E -x c $(CFLAGS) -include cpc/cpc_runtime.h \ > -o $@ $< > > And then, process the .cpi files with CIL.
I realised that this is not quite the right thing for me, because I run CIL on a big and complex project (OpenSSL) and wouldn't like to mess with their makefiles. What I'm doing now is calling make CC="cilly -include proxies.h --keepunused" and starting proxies.h with "#ifdef CIL" (this is #defined only on the first pass). Unfortunately I have to do --keepunused cause otherwise the functions defined in proxies.h get removed by the CIL transformation, which runs before my module inserts calls to them. It would be really nice if I could tell CIL not to remove some of the definitions, for instance by using an attribute. Any comments on that? Best, Misha ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users