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

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 <tille@physik.uni-halle.de>
# Wed Dec  9 19:56:24 CET 1998
NAME=testgtk

PIXMAPS= 3DRings.xpm FilesQueue.xpm Modeller.xpm circles.xbm test.xpm
MAN=$(NAME).1
SRC=$(NAME).c
RES=$(NAME)rc $(NAME)rc2

CFLAGS=-c -g -O2 -Wall `gtk-config --cflags`
LDFLAGS=`gtk-config --libs`

$(NAME): $(NAME).o
	$(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 $(NAME)_.c

clean:
	rm -rf *.o *~




Reply to: