libdrawtext
view examples/nofreetype/Makefile @ 94:de6f37146601
- fixed glyphmap loading on windows (open glyphmap as binary)
- added installation post-build rules in visual studio project
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 07 Jun 2014 13:37:54 +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)