gtk Makefile error


I try to execute the following makefile in gnome, i get errors.


CC = gcc

example:  example.c
      $(CC) `gtk-config --cflags` examples.c -o example `gtk-config --libs`

      rm -f *.o example

********end of makefile

i get errors like "CC:" is not found ro recognized, "clean:" is not found or recogized. ...

But when i compile it with gcc -Wall...  it works ok.

what is wrong?. what is the a good typical Makefile out there for a gtk compilation?.


Get Your Private, Free E-mail from MSN Hotmail at

Share information about yourself, create your own public profile at

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