libresman

annotate examples/imgthumbs/Makefile @ 9:03f3de659c32

threadpool: forgot to free the job after running the work callback
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 04 Feb 2014 05:42:31 +0200
parents 469ce01809bc
children bebc065a941f
rev   line source
nuclear@2 1 # change PREFIX to install elsewhere (default: /usr/local)
nuclear@2 2 PREFIX = /usr/local
nuclear@2 3
nuclear@1 4 src = $(wildcard src/*.c)
nuclear@1 5 obj = $(src:.c=.o)
nuclear@1 6 bin = imgthumbs
nuclear@1 7
nuclear@1 8 CFLAGS = -pedantic -Wall -g -I../../src
nuclear@1 9 LDFLAGS = $(libgl) -limago
nuclear@1 10
nuclear@1 11 ifeq ($(shell uname -s), Darwin)
nuclear@2 12 libgl = -framework OpenGL -framework GLUT -lGLEW
nuclear@1 13 else
nuclear@2 14 libgl = -lGL -lGLU -lglut -lGLEW
nuclear@1 15 endif
nuclear@1 16
nuclear@1 17 $(bin): $(obj)
nuclear@1 18 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@1 19
nuclear@1 20 .PHONY: clean
nuclear@1 21 clean:
nuclear@1 22 rm -f $(obj) $(bin)
nuclear@2 23
nuclear@2 24 .PHONY: install
nuclear@2 25 install:
nuclear@2 26 mkdir -p $(DESTDIR)$(PREFIX)/bin
nuclear@2 27 cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
nuclear@2 28
nuclear@2 29 .PHONY: uninstall
nuclear@2 30 uninstall:
nuclear@2 31 rm -f $(DESTDIR)$(PREFIX)/bin/$(bin)