[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] linking libraries in C
On Wednesday 23 Jan 2002 3:25 am, you wrote:
> First scan the source code for occurences #include <*>, look up the
> required libs in a database and then write output in Makefile format.
>
> Even I could do that. And I might.
Lot's of things e.g. SDL, GTK+ come with little scripts to add to your
command line e.g.:
will@dogfox:~$ gtk-config --libs
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi
-lXext -lX11 -lm
As to whether it is worth writing teh script you mentioned, I'm not sure. The
pain of changing the Makefile is pretty minimal when compared to the pain of
writing the code in the first place. :)
___________________________________________________________________
Sheffield Linux User's Group - http://www.sheflug.co.uk .
To unsubscribe from this list send mail to
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.