Hi,

I attached an archive which contains your test project along with some script files which show how you can use cilly for merging. The merge scripts are pretty simple. They just invoke cilly in some different ways to obtain the merged source and the compiled program. This should give you an impression on how merging works. Ideally, you integrate cilly with your preexisting makefiles for merging. But you can also merge manually by writing a specialized makefile or script.

Hope this helps.

Cheers
Oliver


18.07.2012 23:12, Lipeng Wan:
Hi guys,

I am trying to use CIL to merge and compile a project which contains multiple source and head files. I read the CIL Documentation but still don't quite understand. For example, if the project contains the following files: test1.c, test1.h, test2.c, test2.h, and main.c test1.c includes the head files test1.h and test2.h, while main.c includes the head files test1.h and test2.h, how to merge and compile this project? Is there any other option should be set except -merge in command cilly? Can anyone show me the exact cilly command to merge and compile this project if the compiler is gcc?

Lipeng


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users


Attachment: test.tar.gz
Description: application/gzip

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to