libdrawtext

annotate examples/simple/Makefile @ 24:bcac948880e3

Added tag release 0.2 for changeset 5beaab3df0cb
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Apr 2014 05:34:29 +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)