libresman

view 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
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = imgthumbs
5 CFLAGS = -pedantic -Wall -g -I../../src
6 LDFLAGS = $(libgl) -limago
8 ifeq ($(shell uname -s), Darwin)
9 libgl = -framework OpenGL -framework GLUT
10 else
11 libgl = -lGL -lGLU -lglut
12 endif
14 $(bin): $(obj)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)