libdrawtext
view examples/nofreetype/Makefile @ 87:1dce395c2a3f
added github mirror info in the readme
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 17 Apr 2014 06:57:15 +0300 |
parents | df6d52b36bd6 |
children |
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.2
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)