
INC='-I/usr/X11R6/include'
#LIB='-L/usr/X11R6/lib -lGL -lGLU -lglut -lXmu -lX11 -lXi'
LIB='-L/usr/X11R6/lib -lGL -lGLU -lXmu -lX11 -lXi'

mv ../../include/GL ../../include/GLx

makecint -mk Makefile -dl gl.dll $INC -h TOP.h -l $LIB 
# if above does't work, use following line instead
# makecint -p -mk Makefile -dl gl.dll $INC -h TOP.h -l $LIB 
make clean
make 

mv ../../include/GLx ../../include/GL

mv gl.dll $CINTSYSDIR/include/GL/gl.dll
make clean
rm Makefile
