I'm trying to compile a OpenGL program on my MacBook and can't figure out how to convert this makefile.
CFLAGS= -I/usr/X11R6/include -I/usr/local/include
LDFLAGS= -L/usr/X11R6/lib -L/usr/local/lib -lGL -lGLU -lm -lglut
BINARIES=q2
all: $(BINARIES)
clean:
-rm *.o $(BINARIES)
q2 : q2.o
g++ $(LDFLAGS) $^ -o q2
q2.o: q2.cpp
g++ -c $(CFLAGS) q2.cpp
depend:
makedepend *.cpp