libdrawtext

view examples/nofreetype/Makefile @ 75:47f2f73026fc

release 0.2
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Apr 2014 05:34:22 +0300
parents
children 03699346d59f
line source
1 obj = simple-noft.o
2 bin = simple-noft
4 CC = gcc
5 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include
6 LDFLAGS = -Wl,-rpath=. $(lib_so) $(libgl)
8 font = serif.ttf
10 ifeq ($(shell uname -s), Darwin)
11 libgl = -framework OpenGL -framework GLUT
12 lib_so = libdrawtext-noft.dylib
13 else
14 libgl = -lGL -lGLU -lglut
15 lib_so = libdrawtext-noft.so.0.0
16 lib_soname = libdrawtext-noft.so.0
17 endif
19 $(bin): $(obj) $(lib_so) $(lib_soname)
20 $(CC) -o $@ $(obj) $(LDFLAGS)
22 $(lib_so): ../../$(lib_so)
23 rm -f $@
24 ln -s $< $@
26 $(lib_soname): ../../$(lib_so)
27 rm -f $@
28 ln -s $< $@
30 .PHONY: clean
31 clean:
32 rm -f $(obj) $(bin) $(lib_so)