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