If you cannot use the Netbeans makefile, please create a new makefile with the following:
TARGET = rollercoaster
LIBS = -lglut -lGLU -lGL -lm -lftgl
CC = gcc
CFLAGS = -g -Wall -I/usr/include/FTGL -I/usr/include/freetype2
.PHONY: default run clean
default: run all: default
OBJECTS =
.objectFiles/%.o: %.c
.PRECIOUS:
run: $(TARGET) ./rollercoaster
clean: -rm -f *.o -rm -f .objectFiles -rm -f $(TARGET)