libdrawtext
diff examples/simple/Makefile @ 61:b03c0dcd0405
fixed for macosx
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 20 Sep 2011 15:16:35 +0300 |
parents | daa47eeca303 |
children | 805936da8d6b |
line diff
1.1 --- a/examples/simple/Makefile Sun Sep 18 14:18:25 2011 +0300 1.2 +++ b/examples/simple/Makefile Tue Sep 20 15:16:35 2011 +0300 1.3 @@ -5,23 +5,24 @@ 1.4 CFLAGS = -pedantic -Wall -g -I../../src 1.5 LDFLAGS = -L. -ldrawtext $(libgl) 1.6 1.7 -lib_so = libdrawtext.so 1.8 font = serif.ttf 1.9 1.10 ifeq ($(shell uname -s), Darwin) 1.11 libgl = -framework OpenGL -framework GLUT 1.12 + lib_so = libdrawtext.dylib 1.13 else 1.14 libgl = -lGL -lGLU -lglut 1.15 + lib_so = libdrawtext.so.0.0 1.16 endif 1.17 1.18 $(bin): $(obj) $(lib_so) $(font) 1.19 $(CC) -o $@ $(obj) $(LDFLAGS) 1.20 1.21 -$(lib_so): ../../libdrawtext.so.0.0 1.22 +$(lib_so): ../../$(lib_so) 1.23 rm -f $@ 1.24 ln -s $< $@ 1.25 1.26 -$(font): ../fonts/FreeSerif.ttf 1.27 +$(font): ../fonts/linux-libertine.ttf 1.28 rm -f $@ 1.29 ln -s $< $@ 1.30