Re: MakeFile for GTK2
- From: TP Muller <tpm01 aber ac uk>
- To: Pablo Fischer <exilion yifan net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: MakeFile for GTK2
- Date: Mon, 22 Jul 2002 05:39:31 +0100
On Monday 22 July 2002 05:15, Pablo Fischer wrote:
But... I receive a lot lot of messages (anyway.. the app its compiled)
with each *.c file, like this:
gcc -Wall -I/usr/local/include/mysql `pkg-config --cflags gtk+-2.0`
`pkg-config --libs gtk+-2.0` -c BuskaSoftware.c -o ./BuskaSoftware.o
gcc: -lgtk-x11-2.0: linker input file unused since linking not done
gcc: -lgdk-x11-2.0: linker input file unused since linking not done
<snip rest>
The reason for this is the `pkg-config --libs gtk+-2.0` in ECFLAGS - you don't
need the --libs stuff for the compiling of the individual object files, only
the --cflags stuff. You only need the --libs stuff when you take the object
files and link them together (with the libraries) into your final program
binary.
The `pkg-config --libs gtk+-2.0` should go into LIBS (don't know if you still
need the `gtk-config --libs` there as well then), then you can change
all: $(OBJS)
gcc -o BuskaSoft $(OBJS) $(LIBS) $(ECFLAGS)
into
all: $(OBJS)
gcc -o BuskaSoft $(OBJS) $(LIBS)
SOMEBODY knows of a MakeFile for gtk2?
Maybe you should have a look at a couple of Makefiles from small projects?
cheers
-Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]