make problem



Hi,
I have written a very simple program consisting of a 
single file lino.c. I compiledwith these flags-
        gcc lino.c -o lino `gnome-config --cflags 
--libs gnomeui`

I then wrote a makefile for it.
**********************************************
all: lino
CC = gcc
CFLAGS = -O `gnome-config --cflags --libs gnomeui`

lino: lino.o
        $(CC) -o lino lino.o

lino.o: lino.c
        $(CC) -c lino.c

clean:
        -rm lino.o
************************************************
When I try to make I am getting a *lot* of error 
messages like

In file included from lino.c:10:
/usr/include/gnome.h:12:26: gnomesupport.h: No such 
file or directory
/usr/include/gnome.h:14:21: gtk/gtk.h: No such file or 
directory
In file included from /usr/include/gdk_imlib.h:5,
                 from /usr/include/gnome.h:15,
                 from lino.c:10:
/usr/include/gdk_imlib_types.h:1:21: gdk/gdk.h: No such 
file or directory
In file included from 
/usr/include/libgnome/libgnome.h:24,
                 from /usr/include/gnome.h:16,
                 from lino.c:10:In file included from 
lino.c:10:
.........................
.........................

What is wrong with the makefile? 

Dinuj

 




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