# Simple makefile for command line OpenGL projects on Macs, Linux, or Cygwin # The MAC OSX systems tested were in JD 1618. # How can I get resizable windows on Macs? # You can also use Xcode on Macs. # My Linux system runs Ubuntu 6.06 LTS # g++, mesa, and freeglut packages installed with all packages updated. # Cygwin ("unix on windows") has opengl package installed. # For example to compile on Linux in source directory enter: # make CubeLINUX # Mike Barnes 7/30/07 # Libraries LIBSMAC := -framework Cocoa -framework OpenGL -framework GLUT LIBSLINUX := -lglut LIBSCYGWIN := -lglut32 -lglu32 -lopengl32 # targets cubeMac: cube.cpp g++ -o cube cube.cpp $(LIBSMAC) cubeLinux: cube.cpp g++ -o cube cube.cpp $(LIBSLINUX) cubeCygwin: cube.cpp g++ -o cube.exe cube.cpp $(LIBSCYGWIN) clean: rm -r cube cube.exe