Re: GTK+1.1.6 and testgtk
On Wed, 9 Dec 1998, Andreas Tille wrote:
> On 9 Dec 1998, Ben Gertzfield wrote:
> > If you can figure out *exactly* what files testgtk.c depends on, I
> > will include them in /usr/doc/libgtk1.1.x-doc/testgtk/ .
> Here is a Makefile for testgtk which lists all necessary files.
> It is UNTESTET (because I have the sources for 1.1.5 on my
> harddisk but the *.debs for 1.1.3 installed (and will not update
> because of problems with Imlib!!).
> Please try this and I would be happy if this and the necessary
> files would be included in the next release.
> Hope this helps and thank you for packaging the fine GTK packages.
Sorry I had the attempt to restore the original testgtk.c after
"sed"-ing it to get the includes right. PLease try the following:
# Makefile to build testgtk
# Written by Andreas Tille <firstname.lastname@example.org>
# Wed Dec 9 19:56:24 CET 1998
PIXMAPS= 3DRings.xpm FilesQueue.xpm Modeller.xpm circles.xbm test.xpm
CFLAGS=-c -g -O2 -Wall `gtk-config --cflags`
$(CC) $(LDFLAGS) -o $@ $^
$(NAME).o: $(NAME).c $(PIXMAPS)
sed "s/#include \"\.\.\/gdk\([^\"]*\)\"/#include <gdk\1>/" $(NAME).c | \
sed "s/#include \"gtk.h\"/#include <gtk\/gtk.h>/" > $(NAME)_.c
$(CC) $(CFLAGS) -o $@ $(NAME)_.c
rm -rf *.o *~