libdrawtext
view examples/simple/Makefile @ 8:87798d469b81
forgot to change the hello world message back to normal
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sun, 18 Sep 2011 14:18:25 +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)