Hi Heiko, * Heiko Panther wrote on Mon, Nov 14, 2005 at 10:50:58PM CET: > > I would like the program I generate to have an arbitrary extension, like > program.elf.
No problem. > It looks like the macro AC_EXEEXT was used for that, but doesn't > work anymore (I use autoconf 2.59). I think it was used for the _default_ extension a compiler produces. > Autoconf gives me errors when I do stuff like > > noinst_PROGRAMS=program.elf > program.elf_SOURCES = main.c > > Makefile.am:6: bad macro name `program.elf_SOURCES' > Makefile.am:6: invalid variable `program.elf_SOURCES'; should be > `program_elf_SOURCES' > > Is what I'm trying to do possible at all? Yes, all you need to do is change the second line to program_elf_SOURCES = main.c Just remember a bunch of characters need to be mapped to '_' for the variable naming, because otherwise `make' would give syntax errors, for example (the content of Makefile.am ends up in Makefile). Also note on some systems/compilers, your program will have another extension. E.g., it may end up as program.elf.exe. Surely the name doesn't suggest that you'll actually target w32.. ;) Cheers, Ralf
