[GtkGLExt] Re: Help please: with simple example ...



Ok I made a little progress ... but now i am having a problem linking
... this shouldn't be to hard to resolve ... 

If anyone has any suggestions on this it would be great :-)

Still Digging :-)
Jim

ALL=program program1
OBJFILES=main.o
TESTS=test1


GTKGLEXT_INCLUDESS= -I/usr/local/include/gtkglext-1.0/
-I/usr/local/lib/gtkglext-1.0/include/

INCLUDE=-I./ $(GTKGLEXT_INCLUDESS)
#INCLUDE=-I/usr/include/gtk-2.0/

COMPILEFLAGS=-Wall -g $(INCLUDE) `pkg-config --cflags gtk+-2.0`
LINKFLAGS=-Wall -g $(INCLUDE) `pkg-config --cflags --libs gtk+-2.0`

%.o: %.cc
	g++ $(COMPILEFLAGS) -c $<


all: $(ALL)

program: $(OBJFILES)
	g++ $(LINKFLAGS) $(OBJFILES)  -lpthread -o program 

program1: gearscopy.o
	g++ $(LINKFLAGS) gearscopy.o  -lpthread -o program

clean:
	rm -f $(ALL)
	rm -f $(OBJFILES)

test: $(TESTS) 

test1:
	./program

On Sun, 2004-02-22 at 22:50, James Don wrote:
> Hi there ...
> 
> I can compile code with gtk-2.0 ... 
> 
> However I am having troubles finding a simple example of a build call
> for gtkglext code ... my make file is below 
> 
> Any help would be great ... thanks in advance ... i will keep
> digging/googleing for now on my own ...
> 
> Jim
> 
> ALL=program program1
> OBJFILES=main.o
> TESTS=test1
> 
> INCLUDE=-I./ -I/usr/local/include/gtkglext-1.0/
> #INCLUDE=-I/usr/include/gtk-2.0/
> 
> COMPILEFLAGS=-Wall -g $(INCLUDE) `pkg-config --cflags gtk+-2.0`
> LINKFLAGS=-Wall -g $(INCLUDE) `pkg-config --cflags --libs gtk+-2.0`
> 
> %.o: %.cc
> 	g++ $(COMPILEFLAGS) -c $<
> 
> 
> all: $(ALL)
> 
> program: $(OBJFILES)
> 	g++ $(LINKFLAGS) $(OBJFILES)  -lpthread -o program 
> 
> program1: gearscopy.o
> 	g++ $(LINKFLAGS) gearscopy.o  -lpthread -o program
> 
> clean:
> 	rm -f $(ALL)
> 	rm -f $(OBJFILES)
> 
> test: $(TESTS) 
> 
> test1:
> 	./program
-- 
James Don <jimdon sympatico ca>
gomba




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