libdrawtext

annotate examples/nofreetype/Makefile @ 42:f067608d8a7c

- 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
rev   line source
nuclear@22 1 obj = simple-noft.o
nuclear@22 2 bin = simple-noft
nuclear@22 3
nuclear@22 4 CC = gcc
nuclear@22 5 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include
nuclear@22 6 LDFLAGS = -Wl,-rpath=. $(lib_so) $(libgl)
nuclear@22 7
nuclear@22 8 font = serif.ttf
nuclear@22 9
nuclear@22 10 ifeq ($(shell uname -s), Darwin)
nuclear@22 11 libgl = -framework OpenGL -framework GLUT
nuclear@22 12 lib_so = libdrawtext-noft.dylib
nuclear@22 13 else
nuclear@22 14 libgl = -lGL -lGLU -lglut
nuclear@29 15 lib_so = libdrawtext-noft.so.0.2
nuclear@22 16 lib_soname = libdrawtext-noft.so.0
nuclear@22 17 endif
nuclear@22 18
nuclear@22 19 $(bin): $(obj) $(lib_so) $(lib_soname)
nuclear@22 20 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@22 21
nuclear@22 22 $(lib_so): ../../$(lib_so)
nuclear@22 23 rm -f $@
nuclear@22 24 ln -s $< $@
nuclear@22 25
nuclear@22 26 $(lib_soname): ../../$(lib_so)
nuclear@22 27 rm -f $@
nuclear@22 28 ln -s $< $@
nuclear@22 29
nuclear@22 30 .PHONY: clean
nuclear@22 31 clean:
nuclear@22 32 rm -f $(obj) $(bin) $(lib_so)