From: Grzegorz J. <ja...@he...> - 2003-11-10 02:53:25
|
On Sun, 9 Nov 2003, Roberto Huelga wrote: > > I'm a new OpenC++ user, and I have troubles with Automake dependency. > > My system is a "Jaguar" Mac os x 10.2.6, I download the CVS and > install it with no problem, and work really fine. Now I was starting a > new project with Autoconf/Automake and an compiler created with > openc++, and I lose the auto dependency track. I think that Auto-tools > use the compiler with the -M option to get the file dependency and this > option doesn't work on openc++. I think you need to write a wrapper script and tell the Autotools that this is the compiler. The script should separate g++ compilation options from preprocessor options (-M is a preprocessor option) and do roughly this: cpp $PREPROC_OPTS $INFILE >$INFILE.occ.tmp && \ mv $INFILE.occ.tmp $INFILE.occ && \ occ -n -- $COMPILER_OPTIONS $INFILE.occ If you preprocess again after transformation, then you need a little bit more magic here, but it is doable. Let me know if you need more help. Best regards Grzegorz ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2003 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |