[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: executable extension

From: Ralf Wildenhues
Subject: Re: executable extension
Date: Mon, 14 Nov 2005 23:27:48 +0100
User-agent: Mutt/1.5.9i

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
> bad macro name `program.elf_SOURCES'
> 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 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..  ;)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]