nuclear@1: src = $(wildcard src/*.c) nuclear@1: obj = $(src:.c=.o) nuclear@1: bin = imgthumbs nuclear@1: nuclear@1: CFLAGS = -pedantic -Wall -g -I../../src nuclear@1: LDFLAGS = $(libgl) -limago nuclear@1: nuclear@1: ifeq ($(shell uname -s), Darwin) nuclear@1: libgl = -framework OpenGL -framework GLUT nuclear@1: else nuclear@1: libgl = -lGL -lGLU -lglut nuclear@1: endif nuclear@1: nuclear@1: $(bin): $(obj) nuclear@1: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@1: nuclear@1: .PHONY: clean nuclear@1: clean: nuclear@1: rm -f $(obj) $(bin)