# Include the master CGAL makefile which defines lots of stuff.  Then
# set the CUSTOM_* variables which allow us to specify some additional
# compiler/linker flags that are needed for GLUT and OpenGL
#
include $(CGAL_MAKEFILE)
OSTYPE := $(shell uname -s)
ifeq ($(OSTYPE),SunOS)
# settings for the CS department Suns
CUSTOM_LIBPATH =  -L/usr/local/lib 
else 
# settings for my Linux-mandrake computer
CUSTOM_LIBPATH = -L/usr/local/lib -L/usr/X11R6/lib 
endif
# these are the same for both OSes (and so is the rest of the file)
CUSTOM_CXXFLAGS = -I/usr/local/include
CUSTOM_LDFLAGS = -lglut -lGLU -lGL -lXmu -lX11 

################
# these are set for the implicit rules of GNU make
#
CXXFLAGS  = $(CGAL_CXXFLAGS) $(LONG_NAME_PROBLEM_CXXFLAGS) $(DEBUG_OPT)
LDFLAGS   = $(CGAL_LIBPATH)
LOADLIBES = $(LONG_NAME_PROBLEM_LDFLAGS) $(CGAL_LDFLAGS)
# need this so that the gnu compiler does the linking
CC=g++

################
# The implicit rules know how to make assign2 from assign2.cc and any
# other (object) files listed here as dependencies.  If you need to
# add an additional file for code, just add the object file name to
# this line.
#
simsonar:	graphics.o simulator.o utilities.o world.o

clean:
	rm -rf *.o simsonar

# This target creates the dependencies that you see below the "# DO
# NOT DELETE" line at the end of this file.  They are useful because
# if you change a header file, then "make" will automatically know
# that it then needs to recompile any files that use that header file.
# If you put all your code in existing files, then you shouldn't need
# to run this.
dep:
	makedepend -Y simsonar.cc graphics.cc simulator.cc \
		utilities.cc world.cc 

# DO NOT DELETE

