libdrawtext

view examples/simple/Makefile @ 7:10cfb642d0b8

added dtx_char_at_pt (not tested)
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 18 Sep 2011 01:30:30 +0300
parents
children 9d44f6b0591f
line source
1 obj = simple.o
2 bin = simple
4 CC = gcc
5 CFLAGS = -pedantic -Wall -g -I../../src
6 LDFLAGS = -L. -ldrawtext $(libgl)
8 lib_so = libdrawtext.so
9 font = serif.ttf
11 ifeq ($(shell uname -s), Darwin)
12 libgl = -framework OpenGL -framework GLUT
13 else
14 libgl = -lGL -lGLU -lglut
15 endif
17 $(bin): $(obj) $(lib_so) $(font)
18 $(CC) -o $@ $(obj) $(LDFLAGS)
20 $(lib_so): ../../libdrawtext.so.0.0
21 rm -f $@
22 ln -s $< $@
24 $(font): ../fonts/FreeSerif.ttf
25 rm -f $@
26 ln -s $< $@
28 .PHONY: clean
29 clean:
30 rm -f $(obj) $(bin) $(lib_so)