libdrawtext

annotate examples/simple/Makefile @ 53:8e93efcd23ae

added simple example
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 15 Sep 2011 13:21:35 +0300
parents
children 9d44f6b0591f
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 lib_so = libdrawtext.so
nuclear@1 9 font = serif.ttf
nuclear@1 10
nuclear@1 11 ifeq ($(shell uname -s), Darwin)
nuclear@1 12 libgl = -framework OpenGL -framework GLUT
nuclear@1 13 else
nuclear@1 14 libgl = -lGL -lGLU -lglut
nuclear@1 15 endif
nuclear@1 16
nuclear@1 17 $(bin): $(obj) $(lib_so) $(font)
nuclear@1 18 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@1 19
nuclear@1 20 $(lib_so): ../../libdrawtext.so.0.0
nuclear@1 21 rm -f $@
nuclear@1 22 ln -s $< $@
nuclear@1 23
nuclear@1 24 $(font): ../fonts/FreeSerif.ttf
nuclear@1 25 rm -f $@
nuclear@1 26 ln -s $< $@
nuclear@1 27
nuclear@1 28 .PHONY: clean
nuclear@1 29 clean:
nuclear@1 30 rm -f $(obj) $(bin) $(lib_so)