
###################################################################
# Makefile for shell1.c
###################################################################

# include directories for linux, sun, sgi, and os-x

# note that if you try to compile a glut-based application on red-hat 9
# (at least as of summer 03) you will need to install an older version of
# glut on your system, or rebuild it yourself. For more info on this you
# can type glut XFreeDeviceList into google and you will get a bunch of links
# to various solutions

INCLUDE_DIR 	=  -I/usr/local/X11/include
#sun INCLUDE_DIR	= -I/usr/local/glut-3.7/include/GL
#SGI O2 INCLUDE_DIR 	= -I/usr/include/GL
#OS-X INCLUDE_DIR 	= -I/System/Library/Frameworks/GLUT.framework/Headers

LIBRARY_DIR 	= -L./. -L/usr/local/X11/lib -L/usr/X11/lib -L/usr/X11R6/lib -L/usr/lib

LIBRARIES 	= -lglut -lm -lGLU -lGL -lXmu -lXext -lXt -lX11
#OS-X LIBRARIES 	= -framework GLUT -framework OpenGL -lobjc

COMPILER_FLAGS 	= -O

COMPILER 	= gcc

OBJ_FILES 	= shell1.o
EXEC 		= shell1

$(EXEC):	$(OBJ_FILES)
		$(COMPILER) $(COMPILER_FLAGS) -o $(EXEC) $(OBJ_FILES) \
			$(LIBRARY_DIR) $(LIBRARIES)
#OS-X needs this too		/Developer/Tools/Rez -t APPL -o shell1 mac.r

shell1.o:	shell1.c
		$(COMPILER) $(COMPILER_FLAGS) $(INCLUDE_DIR) -c shell1.c

clean:
		\rm -f $(OBJ_FILES) $(EXEC)
