libdrawtext
annotate examples/simple/Makefile @ 63:0c60394f6737
fixed to work on freebsd
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Wed, 05 Oct 2011 02:27:08 +0300 |
parents | 9d44f6b0591f |
children | 03699346d59f |
rev | line source |
---|---|
nuclear@1 | 1 obj = simple.o |
nuclear@1 | 2 bin = simple |
nuclear@1 | 3 |
nuclear@1 | 4 CC = gcc |
nuclear@11 | 5 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include |
nuclear@11 | 6 LDFLAGS = -L. -L/usr/local/lib -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) |