#include < stdlib.h > #include < stdio.h > #include < gnome.h > int main( int argc, char * argv[]) ... { GtkWidget *app; gnome_program_init("testgnome1","1.0",LIBGNOMEUI_MODULE,argc,argv,NULL); app = gnome_app_new("testgnome1","the window title"); gtk_widget_show(app); gtk_main(); return 0;} all: myappCC = gccINCLUDE = .CFLAGS = `pkg - config -- cflags -- libs gtk +- 2.0 `CFLAGS2 = `pkg - config -- cflags gtk +- 2.0 `myapp: testGtk1.o $(CC) - o myapp testGtk1.o - I$(INCLUDE) $(CFLAGS)testGtk1.o: testGtk1.c $(CC) - c testGtk1.c - I$(INCLUDE) $(CFLAGS2)clean: - rm * .o