[Gllug] [OT] software packaging
Stig Brautaset
stigbrau at start.no
Wed May 29 01:24:10 UTC 2002
Hi James,
* James Hollingshead <james at hollo.org> spake thus:
> On Tue, May 28, 2002 at 11:12:42PM +0100, Stig Brautaset wrote:
> > Should I be using autoproject/autoconf/automake for my small-ish
> > programs? I had a brief look at autoproject and think maybe it is a bit
> > overkill...
> >
> > It would be nice to know what the 'proper' programmers here think. The
> > kind of programs I'm talking about I'm sure some of you can hack up
> > during the advertisement-breaks of a matin? on a lazy Sunday afternoon,
> > but for me it is a 'major project' of about 1500 lines of C ;D
>
> Well I'm not sure I'd claim to be a 'proper' programmer, and it is my
> first post on this list so hello everyone, but I thought I'd reply to
> this one.
Welcome. I wish *my* first post was as worthy as this one ;)
Been lurking long?
> >From the developer's point of view I do find it disturbing how much
> stuff gets generated -- your 1500 C project will end up surrounded by
> 2500 or so lines of build system, even before you start on machine
> dependencies and compile time options. On the other hand the amount of
This was my concern as well.
> that build system you actually need to write is about 10 lines to
> start with. I normally start with just:
>
> configure.in:
> AC_INIT(hello.c)
> AM_INIT_AUTOMAKE(hello, 0.0.1)
> AM_CONFIG_HEADER(config.h)
>
> AC_PROG_INSTALL
> AC_PROG_CC
>
> AC_OUTPUT(Makefile)
>
> and Makefile.am:
> bin_PROGRAMS = hello
> hello_SOURCES = hello.c hello.h
>
> and a bootstrap command of:
> aclocal && autoheader && automake --foreign --add-missing && autoconf
Thanks for this! That got me started, and I now have a working project
compiled with the resulting makefile. Had to STFW to find out how to
check for ncurses, but that's half the fun ;)
Thanks again, I'll try to read up on this thing a bit, so I actually
know what it *does* after my last exam for the year on Thursday... :)
Stig
--
brautaset.org
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list