nuclear@4: obj = scnviewgl.o nuclear@4: bin = scnviewgl nuclear@4: nuclear@4: CFLAGS = -pedantic -Wall -g -I../src nuclear@4: LDFLAGS = -L.. -lscenefile $(libgl) -lm nuclear@4: nuclear@4: ifeq ($(shell uname -s), Darwin) nuclear@4: libgl = -framework OpenGL -framework GLUT nuclear@4: else nuclear@4: libgl = -lGL -lGLU -lglut nuclear@4: endif nuclear@4: nuclear@4: $(bin): $(obj) nuclear@4: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@4: nuclear@4: .PHONY: clean nuclear@4: clean: nuclear@4: rm -f $(obj) $(bin)