AMU and Suffixes
David J. Ruck (33) 1636 posts |
Anyone know why AMU seems to only like using the c++ suffix, and not cpp? Works: SUFFIXES: .o .c++ Doesn’t work: SUFFIXES: .o .cpp I’ve been using c++ and h++ extentions on RISC OS up to now, but cross platform stuff has standardised on cpp and hpp, and AMU complains it doesn’t know how to build the o file. |
David J. Ruck (33) 1636 posts |
Looking at the amu program with ARMalyser, near the start is the string:- aof o s c c++ f p l h x bas pas cmhg So the list of type names is hard coded – who can fix this for me? |
Paolo Fabio Zaino (28) 1882 posts |
@ David
ROOL on next DDE release maybe? Meanwhile edit the binary c++ to cpp? Unless you need both… |
David J. Ruck (33) 1636 posts |
I do have a mixture of projects, the RISC OS only ones are c++ and h (should be h++ but AMU presented that), the cross platform stuff is cpp and hpp so needs a little bit more than replacing a couple of characters in the binary. I’ll try running it through ARMalyser which will allow me to expand the string to have all the necessary extensions. |
Sprow (202) 1158 posts |
That sounds…like hard work. Why not use Appendix B of the desktop tools manual explains more, but it’s much the same as GNU make SUFFIXES. |
David J. Ruck (33) 1636 posts |
Damn just noticed that what I’ve got is just SUFFIXES not .SUFFIXES Checking hundreds of my make files, it’s correct in about 25% of them, but at some point the dot got deleted, and the file was then cloned to make the other 75%. Using SUFFIXES without the dot doesn’t cause an error, so I was none the wiser. So thanks for that! |
David J. Ruck (33) 1636 posts |
Of course now I can get AMU to do cpp and hpp, I find crappy CFront doesn’t know how to include a .hpp file. So that means moving to gcc4, and glacial compilation times (oh for some disc caching). |
Ronald (387) 195 posts |
but cross platform stuff has standardised on cpp and hpp I like the simple cc and hh, there are only 26 letters in the alphabet why so greedy? |
David J. Ruck (33) 1636 posts |
cpp and hpp came about because some filing systems couldn’t do c++ and h++, so the plusses became p’s. I’m now realising why the world has fallen out of favour with C/C++ and my skills have become niche :( |