Re: Making a Makefile



On Thu, 2002-11-21 at 03:06, Kevin Mahoney wrote:

Hi,
I am new to this list and makefiles.  From the online documentation I was 
able to compile a simple 1 file program using:


$ g++ -Wall -g helloworld.cpp -o helloworld `pkg-config --cflags gtk+-2.0` 
`pkg-config --libs gtk+-2.0`

I need help creating a makefile.  No big deal for this example but it will 
become necessary for larger programs.

For larger applications I suggest that you use automake. It is a set of
scripts (used by most larger applications these days) that will generate
all the Makefile and configure scripts for you.

Finding information about automake should not be very hard (try google)
and/or checkout other applications that use Gtk+-2.0 for specific
issues.

You could checkout one of my projects (however, the automake stuff has
been "ported" to use Gtk+-2.0, maybe it would be a better idea to
checkout a set of automake-related files of a project that was not
"ported" to but "started in" Gtk+-2.0)

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gcm/gcm-2/

Checkout the *.am file(s) in each (sub)dir and the configure.in file

-- 
Philip van Hoof aka freax (http://www.freax.eu.org)
irc: irc.openprojects.net mailto:me at freax dot org
Go not to the Elves for counsel, for they will say both no and yes.




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