我正在尝试在MacBook上编译OpenGL程序,但无法弄清楚如何转换这个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