nuclear@3: obj = unicode.o nuclear@3: bin = unicode nuclear@3: nuclear@3: CC = gcc nuclear@3: CFLAGS = -pedantic -Wall -g -I../../src nuclear@3: LDFLAGS = -L. -ldrawtext $(libgl) nuclear@3: nuclear@3: lib_so = libdrawtext.so nuclear@3: fonts = serif.ttf klingon.ttf nuclear@3: nuclear@3: ifeq ($(shell uname -s), Darwin) nuclear@3: libgl = -framework OpenGL -framework GLUT nuclear@3: else nuclear@3: libgl = -lGL -lGLU -lglut nuclear@3: endif nuclear@3: nuclear@3: $(bin): $(obj) $(lib_so) $(fonts) nuclear@3: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@3: nuclear@3: $(lib_so): ../../libdrawtext.so.0.0 nuclear@3: rm -f $@ nuclear@3: ln -s $< $@ nuclear@3: nuclear@3: serif.ttf: ../fonts/FreeSerif.ttf nuclear@3: rm -f $@ nuclear@3: ln -s $< $@ nuclear@3: nuclear@3: klingon.ttf: ../fonts/klingon.ttf nuclear@3: rm -f $@ nuclear@3: ln -s $< $@ nuclear@3: nuclear@3: .PHONY: clean nuclear@3: clean: nuclear@3: rm -f $(obj) $(bin) $(lib_so)