nuclear@3: obj = unicode.o nuclear@3: bin = unicode nuclear@3: nuclear@3: CC = gcc nuclear@11: CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include nuclear@11: LDFLAGS = -L. -L/usr/local/lib -ldrawtext $(libgl) nuclear@3: nuclear@4: fonts = serif.ttf cjk.ttf klingon.ttf nuclear@3: nuclear@3: ifeq ($(shell uname -s), Darwin) nuclear@3: libgl = -framework OpenGL -framework GLUT nuclear@9: lib_so = libdrawtext.dylib nuclear@3: else nuclear@3: libgl = -lGL -lGLU -lglut nuclear@9: lib_so = libdrawtext.so.0.0 nuclear@3: endif nuclear@3: nuclear@3: $(bin): $(obj) $(lib_so) $(fonts) nuclear@3: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@3: nuclear@9: $(lib_so): ../../$(lib_so) nuclear@3: rm -f $@ nuclear@3: ln -s $< $@ nuclear@3: nuclear@4: serif.ttf: ../fonts/linux-libertine.ttf nuclear@4: rm -f $@ nuclear@4: ln -s $< $@ nuclear@4: nuclear@4: cjk.ttf: ../fonts/sazanami-mincho.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)