gnome-config ---> my Makefile
- From: Javi <javi hardlogic es>
- To: gtk-list redhat com
- Subject: gnome-config ---> my Makefile
- Date: Wed, 27 Oct 1999 11:10:08 +0200
Hi again, my Makefile:
--------------------------------------------
# Options
CFLAGS = -Wall -O2
GTKCFLAGS = `gnome-config --cflags`
GTKLIBS = `gnome-config --libs`
# Files
SCR = hello.c menu.c app.c
OBJ = hello.o menu.o app.o
# Final executable
PROGRAMA = gnome-hello
# Rules
all: $(PROGRAM)
$(PROGRAM): $(OBJ)
$(CC) $(CFLAGS) -o $@ $(GTKLIBS) $(OBJ)
hello.o: hello.c
$(CC) --version
$(CC) $(CFLAGS) $(GTKCFLAGS) -c hello.c
menu.o: menu.c menu.h
$(CC) $(CFLAGS) $(GTKCFLAGS) -c menu.c
app.o: app.c app.h
$(CC) $(CFLAGS) $(GTKCFLAGS) -c app.c
clean:
$(RM) $(OBJ) $(PROGRAM)
-----------------------------------------------
Output error:
gcc --version
egcs-2.91.66
gcc -Wall -O2 `gnome-config --cflags` -c hello.c
In file included from hello.c:31:
/usr/include/gnome.h:4: gnomesupport.h: Don't exist file or directory
In file included from /usr/include/gdk/gdktypes.h:33,
from /usr/include/gdk/gdk.h:31,
from /usr/include/gtk/gtk.h:31,
from /usr/include/gnome.h:6,
from rptar.c:31:
/usr/include/glib.h:66: glibconfig.h: Don't exist file or directory
make: *** [hello.o] Error 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]