libdrawtext

annotate examples/nofreetype/Makefile @ 78:39e6bec277b5

updated the revision number in the library filename
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Apr 2014 05:45:11 +0300
parents
children 03699346d59f
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@22 15 lib_so = libdrawtext-noft.so.0.0
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)