# Makefile written by Scott D. Anderson # November 2007 # OSTYPE is not set by default on Mac OS X or on Linux. Should end up # being "linux" and "darwin," respectively ifndef OSTYPE OSTYPE = $(shell uname -s|awk '{print tolower($$0)}') endif ifeq ($(OSTYPE),linux) CFLAGS = -g -I/usr/X11R6/include/ CXXFLAGS = $(CFLAGS) LDLIBS = -L/usr/X11R6/lib -lglut -lGL -lGLU -lXmu -lXi -lX11 -lm endif # the -DMAC coordinates with the ifdef at the top of tw-fake.h so that the # correct OpenGL header files are included depending on Mac versus Linux. ifeq ($(OSTYPE),darwin) CFLAGS = -g -I/usr/X11R6/include/ -DMAC CXXFLAGS = $(CFLAGS) LDLIBS = -lm -framework OpenGL -framework cocoa -framework glut endif