[Top][All Lists]

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

Re: question

From: tom fogal
Subject: Re: question
Date: Mon, 13 Jun 2005 19:31:06 -0400

I hope others will comment / correct me, I'm somewhat new to the
auto* world myself.

Also I wonder if this is the appropriate list to ask this type of
question? Doesn't automake have a mailing list? anyway...

 <address@hidden>William Estrada writes:
>is how do I configure  The make file I am using for the new 
>looks like this:

With automake you simply setup a name for an output binary and the
sources that make up that binary, and the rest is generally handled for
you (or specified by the user).

Instead of specifying all of those variables, you would probably
specify something like:

pfssh_mips_SOURCES=pfssh_mips.c <other_sources>

in If you want to enforce specific CFLAGS, use the
AM_CFLAGS variable as otherwise you can muck things up in the
generated Makefile.

The generated makefile will have the appropriate 'install' / 'clean' /
"standard" targets that one expects; you should not specify these

Finally needs to be told that you're using autoconf. Put
AM_INIT_AUTOMAKE near the top, but after AC_INIT at some point. At the
end of, add in:


>    CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
>    LD=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc

You seem to want to cross compile the app. It seems to me that forcing
a particular compiler is not 'the autoconf way'; rather, the user
should manually specify that they want to cross compile the application
via the correct options to ./configure.

>  Can someone point me to a document that will help with this tasks?

The automake manual is your friend. Just google for GNU automake and
you'll find the website; the manual is available online as HTML (and
probably downloadable in other formats).
Everything I've mentioned here is mentioned in the AM manual, in more
detail even.


reply via email to

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