libresman

annotate examples/imgthumbs/Makefile @ 1:469ce01809bc

rudimentary imgthumbs "example program". doesn't use libresman yet
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 31 Jan 2014 03:17:24 +0200
parents
children 026cdd1737ff
rev   line source
nuclear@1 1 src = $(wildcard src/*.c)
nuclear@1 2 obj = $(src:.c=.o)
nuclear@1 3 bin = imgthumbs
nuclear@1 4
nuclear@1 5 CFLAGS = -pedantic -Wall -g -I../../src
nuclear@1 6 LDFLAGS = $(libgl) -limago
nuclear@1 7
nuclear@1 8 ifeq ($(shell uname -s), Darwin)
nuclear@1 9 libgl = -framework OpenGL -framework GLUT
nuclear@1 10 else
nuclear@1 11 libgl = -lGL -lGLU -lglut
nuclear@1 12 endif
nuclear@1 13
nuclear@1 14 $(bin): $(obj)
nuclear@1 15 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@1 16
nuclear@1 17 .PHONY: clean
nuclear@1 18 clean:
nuclear@1 19 rm -f $(obj) $(bin)