libdrawtext
annotate 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 |
rev | line source |
---|---|
nuclear@1 | 1 obj = simple.o |
nuclear@1 | 2 bin = simple |
nuclear@1 | 3 |
nuclear@1 | 4 CC = gcc |
nuclear@1 | 5 CFLAGS = -pedantic -Wall -g -I../../src |
nuclear@1 | 6 LDFLAGS = -L. -ldrawtext $(libgl) |
nuclear@1 | 7 |
nuclear@1 | 8 font = serif.ttf |
nuclear@1 | 9 |
nuclear@1 | 10 ifeq ($(shell uname -s), Darwin) |
nuclear@1 | 11 libgl = -framework OpenGL -framework GLUT |
nuclear@9 | 12 lib_so = libdrawtext.dylib |
nuclear@1 | 13 else |
nuclear@1 | 14 libgl = -lGL -lGLU -lglut |
nuclear@9 | 15 lib_so = libdrawtext.so.0.0 |
nuclear@1 | 16 endif |
nuclear@1 | 17 |
nuclear@1 | 18 $(bin): $(obj) $(lib_so) $(font) |
nuclear@1 | 19 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@1 | 20 |
nuclear@9 | 21 $(lib_so): ../../$(lib_so) |
nuclear@1 | 22 rm -f $@ |
nuclear@1 | 23 ln -s $< $@ |
nuclear@1 | 24 |
nuclear@9 | 25 $(font): ../fonts/linux-libertine.ttf |
nuclear@1 | 26 rm -f $@ |
nuclear@1 | 27 ln -s $< $@ |
nuclear@1 | 28 |
nuclear@1 | 29 .PHONY: clean |
nuclear@1 | 30 clean: |
nuclear@1 | 31 rm -f $(obj) $(bin) $(lib_so) |