libresman

diff examples/imgthumbs/Makefile @ 11:bebc065a941f

doesn't work yet
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 07 Feb 2014 07:50:02 +0200
parents 026cdd1737ff
children 6b9974a8bdae
line diff
     1.1 --- a/examples/imgthumbs/Makefile	Wed Feb 05 02:01:49 2014 +0200
     1.2 +++ b/examples/imgthumbs/Makefile	Fri Feb 07 07:50:02 2014 +0200
     1.3 @@ -6,7 +6,7 @@
     1.4  bin = imgthumbs
     1.5  
     1.6  CFLAGS = -pedantic -Wall -g -I../../src
     1.7 -LDFLAGS = $(libgl) -limago
     1.8 +LDFLAGS = $(libgl) -limago $(resman) -lpthread
     1.9  
    1.10  ifeq ($(shell uname -s), Darwin)
    1.11  	libgl = -framework OpenGL -framework GLUT -lGLEW
    1.12 @@ -14,9 +14,15 @@
    1.13  	libgl = -lGL -lGLU -lglut -lGLEW
    1.14  endif
    1.15  
    1.16 -$(bin): $(obj)
    1.17 +resman = ../../libresman.a
    1.18 +
    1.19 +$(bin): $(obj) resman
    1.20  	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.21  
    1.22 +.PHONY: resman
    1.23 +resman:
    1.24 +	$(MAKE) -C ../..
    1.25 +
    1.26  .PHONY: clean
    1.27  clean:
    1.28  	rm -f $(obj) $(bin)