Hmmmm, gcc doesn't "create a makefile installation". gcc is a compiler. Still not exactly sure what you are getting at but it sounds like what you might be asking for is "how do I create a Makefile so I can type 'make' and it will compile/link my program with the necessary libraries?". If your question is how to create a Makefile you might want to look here:
http://www.gnu.org/manual/make-3.79.1/html_mono/make.htmlA simple example of a Makefile for your program might look like this:
If you copy the above code into a file called "Makefile" in the same directory as your source. Change the "myglprog" to whatever you want to resulting program to be named then when you type "make" it will compile/link the main.c program with the GL/glut libraries into a program called "myglprog". If you type "make clean" it will erase the "myglprog" program.
NOTE: The whitespace in my sample might copy into your source as spaces, if they do you need to make sure you change that whitespace to a "tab" rather than spaces. It should be a single TAB in front of the line that start with "gcc ... ..." and the line that starts with "rm ... ...". It will not work if you leave them as spaces.
[ September 30, 2002: Message edited by: void main ]