MakeFile for GTK2



Ok.. last time Rich Gautier helped me with the creation of a MakeFile..
now I have another question :(:

How can I make a MakeFile for gtk2?.. I have this:

PREFIX  = /usr/local
SQLINC  = /usr/local/include/mysql
SQLLIB  = /usr/local/lib/mysql
LIBS    = -L/usr/lib -L/usr/local/lib -L$(SQLLIB) \
          -lmysqlclient -lm `gtk-config --libs`
          
ECFLAGS = $(CFLAGS) -Wall -I$(SQLINC) `pkg-config --cflags gtk+-2.0`
`pkg-config --libs gtk+-2.0`

OBJS    = Agregar.o Buscar.o Configuracion.o BuskaSoftware.o

all: $(OBJS)
        gcc -o BuskaSoft $(OBJS) $(LIBS) $(ECFLAGS)


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
gcc: -latk-1.0: linker input file unused since linking not done
gcc: -lgdk_pixbuf-2.0: linker input file unused since linking not done
gcc: -lm: linker input file unused since linking not done
gcc: -lpangoxft-1.0: linker input file unused since linking not done
gcc: -lpangox-1.0: linker input file unused since linking not done
gcc: -lpango-1.0: linker input file unused since linking not done
gcc: -lgobject-2.0: linker input file unused since linking not done
gcc: -lgmodule-2.0: linker input file unused since linking not done
gcc: -ldl: linker input file unused since linking not done
gcc: -lglib-2.0: linker input file unused since linking not done


Also.. when I compile a program with:
gcc -Wall -g $1 -o $2 `pkg-config --cflags gtk+-2.0` `pkg-config --libs
gtk+-2.0`

All its clean..

SOMEBODY knows of a MakeFile for gtk2?.. do you know something Rich?

Thanks




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