#############################################################################
# function:  Makefile for OpenGl en GLUT library
#            Version for studs.
# status:    22-jan-2007, wlm.
# usage:     If necessary modify the definitions in the following part of
#            this file.
#            To compile C (prog.c) or FORTRAN (prog.f) program:
#              make prog
#############################################################################

# Global directories.
INCDIR  = /usr/include/
LIBDIR  = /usr/lib

# FORTRAN compiler.
COMPFOR = g77

# C compiler: gcc or cc may be used.
COMPCC  = gcc

# X11 include file and library directories.
INCFLAG = -I$(INCDIR)
XLIBS   = -L$(LIBDIR) -lX11 -lXi -lXmu -lglut -lGL -lGLU

#############################################################################

# Compile C program.
.c:
	$(COMPCC) $< $(INCFLAG) $(XLIBS) -o $@

# Compile FORTRAN program.
.f:
	$(COMPFOR) $< $(INCFLAG) $(XLIBS) -o $@

#############################################################################

